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 with JSON format):
Key | Value | Notes |
---|---|---|
operationCategory | "registration" | the type of category of the operation we are trying to perform |
documentKindCategory | "{{document-kind}}" | Document type, from "design, patent, trademark, utility model", for this example "patent" |
documentNumber | "{{priority-number}}" | priority number generated before |
documentDate | "{{priority-date}}" | priority date generated before |
dasAccessCode | "{{access-code}}" | 4 digit access code (from Postman environment) |
applicationCategory | "{{application-category}}" | Document type, from "design, patent, trademark, utility model", for this example "patent" |
applicationNumber | "{{application-number}}" | application number generated before |
applicationFilingDate | "{{application-date}}" | application date generated before |
"{{email}}" | email for communications | |
fileId | "{{file-id}}" | fileId obtained during b.1.1.2.- obtain fileId and a presigned URL to upload a big size document file (POST) |
}
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
Here is the json response with the details of the registered record. Particularly the request AckId and the status of the request(for this operation, "registration - recorded")
f.- Headers
Normal headers.
g.- Test results
This depends on the test we set up in the test script