Testing Your APIM Code with Postman

When working with APIM, there are times when you will want to validate your code externally before giving it to an end user. Postman is a great tool that allows you to call APIM URLs in the same way a user would, allowing you to validate your results.

There are many features of Postman, I presume you know how to set it up and get started with it. For usage with APIM, if we want to call our “all” request, we will need to supply our Subscription ID (found under Subscriptions). Your subscription key is the identifier that allows you access to call your APIs externally from APIM.

Once you have this (assuming you have no other protocols in place), all you should need to do is copy the Test URL, assign any parameters you need, and click “Send”.

The following examples show me using the Ocp-Apim-Subscription-Key header to submit my “key” in the value box.

Once you click send, you should see the results of your API come back (assuming you have no other restrictions in place). In the even that I am submitting parameters to APIM I would follow the same structure and pattern I would have done in test suite.

In this case, adding the parameter at the end of the API.