What is this about?
How to perform the post of a new feed to the service using Postman application.
Created by Pedro Ondiviela · last update June 11, 2020
How to perform the post of a new feed to the service using Postman application.
To ease things a little bit you can use Postman as a method to deliver the new feed to the service.
First you need to set up a POST request pointing to:
INDEX_SERVICE_URL/services/jobs/submit/INDEX_TOKEN/FEED_ID
Where INDEX_SERVICE_URL could be:
The INDEX_TOKEN is the one obtained from Jenkins when adding your index to the index platform.
The FEED_ID is the name of your feed.
Upload your feed to the request using the Body → form-data option, and then on the Key param setting File as the choice:
The Header should be automatically populated as Postman analyses the file to extract its type, in case it doesn’t happen here is the header Postman uses for an XML catalog:
Finally just send the request and you will see the output in the console with the result.
If you want to verify your test you can go to:
https://preindex.empathybroker.com/services/jobs/INDEX_TOKEN