The Postman collection was structured in a way to make it easier the understanding and follow up of all the steps that are involved in the registration of a new priority document:
The registration process, follows these steps:
Step | Action type | CURL request | Notes |
---|---|---|---|
1 | Generation of the authorization token | a.1.1.1.- getToken | |
2 | Retrieval of the file-id and pre-signed URL for the upload of a big sized document file | a.1.1.2.- obtain fileId and a presigned URL to upload a big size document file (POST) | |
2.1 | Retrieval of updated pre-signed URL for the already existing file-id | Optional step, only needed when the file upload gets delayed (so the previous URL is no longer valid). An updated URL is generated using the previously retrieved file-id | |
3 | Upload of the file | a.1.1.3.- File upload | PDF or ST.26 zip file |
4 | Check if the status of the uploaded file is OK | a.1.1.4.- Check the status of the file to see if is ready for registration | |
5 | Registration of the priority document in the system | h.1.1.5.- Registration process | Only possible after the file has been successfully uploaded by following the previous steps. |
6 | Retrieve the certificate for the registration | a.1.1.6.- GET Certificate retrieval |