Configure Postman for Media Services REST API calls
This tutorial shows you how to configure Postman so it can be used to call Azure Media Services (AMS) REST APIs. The tutorial shows how to import environment and collection files into Postman. The collection contains grouped definitions of HTTP requests that call Azure Media Services (AMS) REST APIs. The environment file contains variables that are used by the collection.
This environment and collection is used in articles that show how to achieve various tasks with Azure Media Services REST APIs.
Install the Postman REST client to execute the REST APIs shown in some of the AMS REST tutorials.
We are using Postman but any REST tool would be suitable. Other alternatives are: Visual Studio Code with the REST plugin or Telerik Fiddler.
Configure the environment
- Create a .json file that contains the environment variables used in AMS tutorials. Name the file (for example, AzureMediaServices.postman_environment.json). Open the file and paste the code that defines the Postman environment from this code listing.
- Open the Postman.
On the right of the screen, select the Manage environment option.
- From the Manage environment dialog, click Import.
- Browse and select the AzureMediaServices.postman_environment.json file.
- The AzureMedia environment is added.
- Close the dialog.
Select the AzureMedia environment.
Configure the collection
- Create a .json file that contains the Postman collection with all the operations that are needed to upload a file to Media Services. Name the file (for example, AzureMediaServicesOperations.postman_collection.json). Open the file and paste the code that defines the Postman collection from this code listing.
- Click Import to import the collection file.
Choose the AzureMediaServicesOperations.postman_collection.json file.
Check out the upload assets article.