Skip to content

One Collection of various apis that can be tested via postman

Notifications You must be signed in to change notification settings

sajeetharan/cosmosdb-api-test

Repository files navigation

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.

About

One Collection of various apis that can be tested via postman

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published