POST using Postman

Created by Pedro Ondiviela · last update June 11, 2020

What is this about?

How to perform the post of a new feed to the service using Postman application.

Step by step guide

  • Step 1

    To ease things a little bit you can use Postman as a method to deliver the new feed to the service.

  • Step 2

    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.

  • Step 3

    Upload your feed to the request using the Body → form-data option, and then on the Key param setting File as the choice:

  • Step 4

    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:

  • Step 5

    Finally just send the request and you will see the output in the console with the result.

  • Step 6

    If you want to verify your test you can go to:

    https://preindex.empathybroker.com/services/jobs/INDEX_TOKEN