

For POST or PUT operations, the MIME-encoding type for the body should be specified in the Content-type request header as well. For example, POST operations contain MIME-encoded objects that are passed as complex parameters. Optional HTTP request message body fields, to support the URI and HTTP operation. For example, an Authorization header that provides a bearer token containing client authorization information for the request. Optional additional header fields, as required by the specified URI and HTTP method.

Azure REST APIs support GET, HEAD, PUT, POST, and PATCH methods.
Postman rest api client how to#
The process described in the following blog entry is similar to the one used for Postman, but shows how to call an Azure REST API using curl.You might consider using curl in unattended scripts, for example in DevOps automation scenarios.Ĭalling Azure REST API via curl Components of a REST API request/responseĪ REST API request/response pair can be separated into five components:

You can read the full walk-through on Jon Gallant's blog here: Azure REST APIs with Postman How to call Azure REST APIs with curl
