KB00007089: Pre-request Information is Required in the Postman Application for the Ephesoft UploadBatch Web API
Issue:
Pre-request information is required in the Postman application for the Ephesoft UploadBatch web API.
Solution:
- Open the Postman application.
- In the POST field, enter a URL in the following format: http://<serverName/IP address>:<port>/dcma/rest/uploadBatch/<batchClassIdentifier>/<batchInstanceName>
Figure 1 below uses the following URL as an example: http://192.168.0.144:8080/dcma/rest/uploadBatch/BC10/Test1
Figure 1: POST Field Entry
- Select Basic Auth from the TYPE drop-down list.
- Enter the following credentials:
-
- Username: ephesoft
- Password: demo
Figure 2: Authorization Options
- Leave the fields in the Headers tab blank.
Figure 3: Headers Tab
- In the Body tab, create the following two keys:
a. Key 1 – File option: Ensure that you mapped where the TIF file is located:
Figure 4: Key 1
b. Key 2 – Test option: Ensure that you enter the correct DropFolder path according to your batch class Drop Folder path that has been defined in the Batch Class Management.
Figure 5: Key 2
Figure 6: Keys 1 and 2
- Leave the fields in the Pre-request Script tab blank.
Figure 7: Pre-request Script Tab
- Leave field in the Tests tab blank.
Figure 8: Tests Tab
- Click Send.
Figure 9: Click Send
- Verify that the Batch Instance is created successfully.
Figure 10: Batch Instance