Skip to content
One Collection of various apis that can be tested via postman
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
CosmosDB_postman_collection.json
CosmosDB_postman_environment.json
README.md
image.PNG

README.md

Cosmos DB api testing

This is a fork from this original repo. Main changes include:

  1. Updated to the latest API version of 2018-12-31.
  2. Focused more on document operations than database and collection operations.

To install:

  1. Import CosmosDBSQL.postman_collection.json to Postman collections.
  2. Import CosmosDBSQLEnv.postman_environment.json to Postman environment.

To Use:

  1. Replace DocumentDBHost and DocumentDBMasterKey in the environment with your Cosmos DB settings.

  2. Replace mydb, mycol, mydocid, mydocpartitionkey in the url or headers of the request with your values. Note that these values in the url must be hardcoded. They can't be environment variables, as they are used in the script to compute the auth key. For example: Alt text

  3. Replace request body with your document or query content.

  4. In the response header, you will see x-ms-request-charge, which is the Cosmos DB RU (Request Unit) incurred by the request.

You can’t perform that action at this time.