The Postman request:
Request configuration
a.- Headers
Standard headers, nothing to update here.
b.- Body
Values that are used for this demo (selected as Postman type RAW):
Key | Value | Notes |
---|---|---|
fileReference | "{{file-reference}}" | optional reference used by the service consumer to identify the file |
fileFormatCategory | "{{file-format}}" | Can be pdf,zip,xml (for the current test b.1.2.- request to delete it will by zip) |
fileChecksum | "{{file-checksum}}" | mandatory checksum of the file to upload for validation purpose. Please check here to see how to generate it, then update the Postman environment |
c.- Pre-request script
This script automatically generates a general reference and updates the Postman environment with it.
d.- Tests script
The following script is executed after the request is sent, to evaluate the response and also to set up environment variables (if they are needed for following requests)
Expected response
e.- Body
We can see there the normal JSON response with the fileId and fileUploadUrl that is being provided by the system for the upload of the file we want to register in DAS
f.- Headers
Normal headers.
g.- Test results
This depends on the test we set up in the test script