Azure CosmosDB (14) using Postman access CosmosDB Windows Azure Platform series directory

  " Windows Azure Platform series of articles directory "

 

  Today, we study how to use Postman access Azure CosmosDB.

  CosmosDB API interfaces, can refer to: https://docs.microsoft.com/en-us/rest/api/cosmos-db/get-a-document

 

  1. First, we log https://portal.azure.cn , get url and keys

  

 

  2. Installation Postman, introduced the following two documents:

  (1) Environment Variables

  https://github.com/leizhang1984/Postman/blob/master/CosmosDB/DocumentDBOptions.postman_environment.json

  Value DocumentDBMasterKey modifications, modifications to the figure of the Primary Key

  Value DocumentDBHost modifications, modifications to CosmosDB the DNS Name

  

  (2) Introduction Collection

  https://github.com/leizhang1984/Postman/blob/master/CosmosDB/DocumentDB%20copy.postman_collection.json

  

  3. Open Postman, select DocumentDBOptions

    

 

  Collection API that can be accessed are:

  (1)List Databases

  (2)Get All Collections

  Modify the Name the DNS: HTTPS: // {{}} DocumentDBHost / DBS / [modified to herein DatabaseName] / colls

  (3)Get All Document

  (4)Query Collection MemberInfo

  (5)Get a Document

 

Guess you like

Origin www.cnblogs.com/threestone/p/11460134.html