![]() The test associated with the request then extracts the _rev value and sets the rev environment variable. The revisionID of the new document is returned via the _rev field. This is accomplished by dynamically updating the environment variables with the results of request execution and removes the need to manually edit requests.įor instance, a new document revision is made when you create a document. Request Chaining takes the output of a request and uses it as input to a subsequent request. This screenshot shows the Tests tab that includes the test code and the Test Results console window at the bottom. Most of the requests in the collections include simple tests to verify the success of the request. Sync-Gateway-3.0-TravelSample-Environment All requests in this collection are authenticated. Retrieve stats related to Sync Gateway cluster. Sync-Gateway–3.0-TravelSample-Metrics-API All requests in this collection are authenticated.Ĭreate, update and access documents from the travel-sample database. Requests to create Sync Gateway travel-sample database, configure and manage the database and to create Sync Gateway users. ![]() The following collections are located in the travel-sample folder. The GitHub repository contains a custom version of the Postman collections for managing a Sync Gateway backed by a Travel Sample bucket. We’ll now walk through the process with a concrete example. Once bootstrapped and connected to the Couchbase Server cluster, Sync Gateway is managed via the REST endpoint. Update the environment file settings per your deployment and start executing requests against Sync Gateway.Īt the end of it, your setup should look something like the following screenshot:Īdminister Sync Gateway via REST API: Example Walkthrough.Follow the instructions detailed in this introductory post to import the collections and environment files into Postman.Download the Postman client for free for your platform. ![]() The variables will have to be customized with values corresponding to your environment. Requests for database management, administration, access controls and end-user management.Īllows end users to read and write application data.Īllows access to cluster-level stats in Prometheus and custom JSON format.Įnvironment Definitions file that defines the variables. There are three Postman Collection JSON files with the suffix postman_collection.json included and a Postman Environment settings file as described in this table: File / Github link Now let’s explore the other contents of the cloned repo. The repository also contains a travel-sample folder and a custom collection for the Travel Sample application, as we discuss a little later. Https : ///couchbaselabs/Couchbase-Sync-Gateway-Postman-Collection.git ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |