{"id":12845,"date":"2022-03-07T11:03:12","date_gmt":"2022-03-07T19:03:12","guid":{"rendered":"https:\/\/www.couchbase.com\/blog\/?p=12845"},"modified":"2023-05-23T00:55:27","modified_gmt":"2023-05-23T07:55:27","slug":"postman-collections-for-sync-gateway-administration","status":"publish","type":"post","link":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/","title":{"rendered":"Postman Collections for Sync Gateway Administration"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Web-based clients can administer, monitor and interact with Couchbase Sync Gateway using a <\/span><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/rest-api-access.html\"><span style=\"font-weight: 400\">RESTful interface<\/span><\/a><span style=\"font-weight: 400\">. With the <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/new-platforms-support-and-advanced-administration-with-couchbase-mobile-3\/\"><span style=\"font-weight: 400\">Sync Gateway 3.0 release<\/span><\/a><span style=\"font-weight: 400\">, database administration is done exclusively through the <\/span><i><span style=\"font-weight: 400\">admin <\/span><\/i><span style=\"font-weight: 400\">REST endpoint. <\/span><a href=\"https:\/\/www.getpostman.com\/\"><span style=\"font-weight: 400\">Postman<\/span><\/a><span style=\"font-weight: 400\"> is an API test, development and documentation tool that allows you to test and use these endpoints.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This blog post shows you how to use the <\/span><a href=\"https:\/\/www.postman.com\/product\/api-client\/\"><span style=\"font-weight: 400\">Postman API client<\/span><\/a><span style=\"font-weight: 400\"> to configure, administer, and interact with Sync Gateway via the REST interface.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Postman Collections for Sync Gateway<\/span><\/h4>\n<p><span style=\"font-weight: 400\">A Postman <\/span><i><span style=\"font-weight: 400\">Collection <\/span><\/i><span style=\"font-weight: 400\">is a group of saved requests organized in folders and subfolders. You can use collections as a starting point and customize them to your environment and needs.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">We have produced a reference set of <\/span><a href=\"https:\/\/learning.postman.com\/docs\/getting-started\/introduction\/\"><span style=\"font-weight: 400\">Postman<\/span><\/a><span style=\"font-weight: 400\"> collections and corresponding environment variable definition files for the REST interface of Sync Gateway 3.0. These files are available on <\/span><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\"><span style=\"font-weight: 400\">Github<\/span><\/a><span style=\"font-weight: 400\"> and designed to get you up and running quickly with the following steps.<\/span><\/p>\n<p><span style=\"font-weight: 400\">First, clone the repository<\/span><\/p>\n<pre class=\"\">git clone \r\nhttps:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection.git<\/pre>\n<p><span style=\"font-weight: 400\">The repository also contains a <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> folder and a custom collection for the Travel Sample application, as we discuss a little later.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Now let\u2019s explore the other contents of the cloned repo. There are three Postman Collection JSON files with the suffix <\/span><i><span style=\"font-weight: 400\">postman_collection.json <\/span><\/i><span style=\"font-weight: 400\">included and a Postman Environment settings file as described in this table:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>File \/ Github link<\/b><\/td>\n<td><b>API interface used \/ Docs link<\/b><\/td>\n<td><b>Purpose<\/b><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/raw.githubusercontent.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/master\/Sync-Gateway-3.0-Admin-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-Admin-API<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/td>\n<td><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/rest-api-admin.html\"><span style=\"font-weight: 400\">Sync Gateway Admin interface<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Requests for database management, administration, access controls and end-user management.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/raw.githubusercontent.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/master\/Sync-Gateway-3.0-Public-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-Public-API<\/span><\/a><\/td>\n<td><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/rest-api.html\"><span style=\"font-weight: 400\">Sync Gateway Public interface<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Allows end users to read and write application data.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/raw.githubusercontent.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/master\/Sync-Gateway-3.0-Metrics-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-Metrics-API<\/span><\/a><\/td>\n<td><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/rest-api-metrics.html\"><span style=\"font-weight: 400\">Sync Gateway Metrics interface<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Allows access to cluster-level stats in Prometheus and custom JSON format.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/raw.githubusercontent.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/master\/Sync-Gateway-3.0-Environment.postman_environment.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-Environment<\/span><\/a><\/td>\n<td colspan=\"2\"><span style=\"font-weight: 400\">Environment Definitions file that defines the variables. The variables will have to be customized with values corresponding to your environment.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"font-weight: 400\">Using the Postman Client<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Download the <\/span><a href=\"https:\/\/www.getpostman.com\/\"><span style=\"font-weight: 400\">Postman client<\/span><\/a><span style=\"font-weight: 400\"> for free for your platform.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Follow the instructions detailed in this <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/querying-couchbase-sync-gateway-with-postman\/\"><span style=\"font-weight: 400\">introductory post<\/span><\/a><span style=\"font-weight: 400\"> to import the collections and environment files into Postman.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Update the environment file settings per your deployment and start executing requests against Sync Gateway.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">At the end of it, your setup should look something like the following screenshot:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12846 size-full\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/03\/postman.png\" alt=\"\" width=\"700\" height=\"286\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/postman.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/postman-300x123.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/postman-20x8.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><b>Administer Sync Gateway via REST API: Example Walkthrough<\/b><\/h4>\n<p><span style=\"font-weight: 400\">Once bootstrapped and connected to the Couchbase Server cluster, Sync Gateway is managed via the REST endpoint. We&#8217;ll now walk through the process with a concrete example.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The GitHub repository contains a custom version of the Postman collections for managing a Sync Gateway backed by a <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/manage-settings\/install-sample-buckets.html\"><span style=\"font-weight: 400\">Travel Sample bucket<\/span><\/a><span style=\"font-weight: 400\">. The following collections are located in the <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> folder.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>File \/ Github link<\/b><\/td>\n<td><b>Purpose<\/b><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/blob\/master\/travel-sample\/Sync-Gateway-3.0-TravelSample-Admin-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-TravelSample-Admin-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Requests to create Sync Gateway <\/span><i><span style=\"font-weight: 400\">travel-sample <\/span><\/i><span style=\"font-weight: 400\">database, configure and manage the database and to create Sync Gateway users. All requests in this collection are authenticated.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/blob\/master\/travel-sample\/Sync-Gateway-3.0-TravelSample-Public-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-TravelSample-Public-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Create, update and access documents from the <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> database. All requests in this collection are authenticated.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/blob\/master\/travel-sample\/Sync-Gateway-3.0-TravelSample-Metrics-API.postman_collection.json\"><span style=\"font-weight: 400\">Sync-Gateway\u20133.0-TravelSample-Metrics-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Retrieve stats related to Sync Gateway cluster. All requests in this collection are authenticated.<\/span><\/td>\n<\/tr>\n<tr>\n<td><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/blob\/master\/travel-sample\/Sync-Gateway-3.0-TravelSample-Environment.postman_environment.json\"><span style=\"font-weight: 400\">Sync-Gateway-3.0-TravelSample-Environment<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">The customized environment file.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"font-weight: 400\">Viewing Test Results<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Most of the requests in the collections include simple tests to verify the success of the request. This screenshot shows the Tests tab that includes the test code and the Test Results console window at the bottom.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12762 size-full\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/viewtestresults.png\" alt=\"Viewing Test Results\" width=\"700\" height=\"373\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/viewtestresults.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/viewtestresults-300x160.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/viewtestresults-20x11.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><b>Request Chaining<\/b><\/p>\n<p><span style=\"font-weight: 400\">Request Chaining takes the output of a request and uses it as input to a subsequent request. This is accomplished by dynamically updating the environment variables with the results of request execution and removes the need to manually edit requests.<\/span><\/p>\n<p><span style=\"font-weight: 400\">For instance, a new document revision is made when you create a document. The <\/span><i><span style=\"font-weight: 400\">revisionID <\/span><\/i><span style=\"font-weight: 400\">of the new document is returned via the <\/span><i><span style=\"font-weight: 400\">_rev<\/span><\/i><span style=\"font-weight: 400\"> field. The test associated with the request then extracts the <\/span><i><span style=\"font-weight: 400\">_rev<\/span><\/i><span style=\"font-weight: 400\"> value and sets the <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> environment variable.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The screenshot below shows the code that sets the environment variable and the output JSON of the populated Body.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12763 size-full\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/postman.png\" alt=\"\" width=\"700\" height=\"451\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/postman.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/postman-300x193.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/postman-20x13.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><span style=\"font-weight: 400\">A subsequent update request to the document can retrieve the <\/span><i><span style=\"font-weight: 400\">revisionId <\/span><\/i><span style=\"font-weight: 400\">of the document to be updated from the <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> environment variable that was populated by the previous request.<\/span><\/p>\n<p><span style=\"font-weight: 400\">This screenshot shows a mouseover preview of the value of the <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> variable:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12848 size-full\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/03\/createorupdatedocument.png\" alt=\"\" width=\"700\" height=\"304\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/createorupdatedocument.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/createorupdatedocument-300x130.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/03\/createorupdatedocument-20x9.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span style=\"font-weight: 400\">Installing Couchbase &amp; Sync Gateway with Docker<\/span><\/h4>\n<p><span style=\"font-weight: 400\">To be able to run the collection, you need an environment with Couchbase Server and Sync Gateway. Deploying them in Docker containers is the simplest option. We have pre-built images that have everything pre-configured for you.<\/span><\/p>\n<p><a href=\"https:\/\/docs.docker.com\/get-docker\/\"><span style=\"font-weight: 400\">Docker<\/span><\/a><span style=\"font-weight: 400\"> must be installed on your machine. On Windows, you may need administrator privileges. Ensure that you have sufficient memory and cores allocated to Docker. At least 3GB of RAM is recommended.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Setting up a Docker Network<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Create a docker network named <\/span><i><span style=\"font-weight: 400\">workshop <\/span><\/i><span style=\"font-weight: 400\">by running these Docker commands<\/span><\/p>\n<pre>docker network ls \r\ndocker network create -d bridge workshop<\/pre>\n<p><span style=\"font-weight: 400\">I have a custom Docker image<\/span> <span style=\"font-weight: 400\">of Couchbase Server that you can use called:<\/span><\/p>\n<pre class=\"\">priyacouch\/couchbase-server-travelsample:7.x-dev<\/pre>\n<p><span style=\"font-weight: 400\">The image comes pre-configured with the <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/manage-settings\/install-sample-buckets.html\"><span style=\"font-weight: 400\">travel-sample<\/span><\/a><span style=\"font-weight: 400\"> bucket and three RBAC users:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><b>admin<\/b><span style=\"font-weight: 400\"> &#8211; that Sync Gateway uses to connect to Couchbase Server<\/span><\/li>\n<li style=\"font-weight: 400\"><b>sgw-cluster<\/b><span style=\"font-weight: 400\"> &#8211; for cluster-level operations via Sync Gateway <\/span><i><span style=\"font-weight: 400\">admin<\/span><\/i><span style=\"font-weight: 400\">\/<\/span><i><span style=\"font-weight: 400\">metrics <\/span><\/i><span style=\"font-weight: 400\">REST endpoint<\/span><\/li>\n<li style=\"font-weight: 400\"><b>sgw-admin<\/b><span style=\"font-weight: 400\"> &#8211; for Sync Gateway database-level administrative operations via Sync Gateway admin\/metrics REST endpoint<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Deploy the server using following Docker commands:<\/span><\/p>\n<pre class=\"\">docker stop cb-server\r\ndocker rm cb-server\r\n\r\ndocker run -d --name cb-server --network workshop -p \r\n8091-8094:8091-8094 -p 11210:11210 \r\npriyacouch\/couchbase-server-travelsample:7.x-dev<\/pre>\n<h4><span style=\"font-weight: 400\">Test Couchbase Server Installation<\/span><\/h4>\n<p><span style=\"font-weight: 400\">The server would take a few minutes to deploy and fully initialize. Be patient, but you can use this command to check the status:<\/span><\/p>\n<pre class=\"\">docker logs -f cb-server<\/pre>\n<p><span style=\"font-weight: 400\">You should see the following once setup is complete:<\/span><\/p>\n<pre>100 50 0 0 100 50 0 4166 --:--:-- --:--:-- --:--:-- 4545\r\n* Closing connection 0\r\nSUCCESS: Bucket created\r\nSUCCESS: User admin set\r\n\/entrypoint.sh couchbase-server<\/pre>\n<p><span style=\"font-weight: 400\">Open the Couchbase Web UI URL in a web browser:<\/span> <a href=\"https:\/\/localhost:8091\"><span style=\"font-weight: 400\">https:\/\/localhost:8091<\/span><\/a><i><span style=\"font-weight: 400\">\u00a0<\/span><\/i><\/p>\n<p><span style=\"font-weight: 400\">On the login screen, sign in as <\/span><i><span style=\"font-weight: 400\">Administrator<\/span><\/i><span style=\"font-weight: 400\"> with password: <\/span><i><span style=\"font-weight: 400\">password<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Go to the <\/span><i><span style=\"font-weight: 400\">Buckets<\/span><\/i><span style=\"font-weight: 400\"> menu and confirm that the <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> bucket is loaded. This bucket contains the sample data. You can see the bucket exists and there are many documents loaded in this screenshot:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-12764 size-full\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/travelsamplebuckets.png\" alt=\"\" width=\"700\" height=\"132\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/travelsamplebuckets.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/travelsamplebuckets-300x57.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/travelsamplebuckets-20x4.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<p><span style=\"font-weight: 400\">Go to the <\/span><i><span style=\"font-weight: 400\">Security<\/span><\/i><span style=\"font-weight: 400\"> menu and confirm that our three users are created, as shown below:<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12765\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/security.png\" alt=\"\" width=\"700\" height=\"183\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/security.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/security-300x78.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/security-20x5.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span style=\"font-weight: 400\">Install &amp; Test Sync Gateway\u00a0<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Sync Gateway needs to be bootstrapped with a startup configuration file. The <\/span><a href=\"https:\/\/raw.githubusercontent.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\/master\/travel-sample\/sync-gateway-config-travelsample-bootstrap.json\"><span style=\"font-weight: 400\">sync-gateway-config-travelsample-bootstrap.json<\/span><\/a><span style=\"font-weight: 400\"> file is available in the <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> folder of the cloned repository.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Switch to the folder that contains the downloaded config file and run the following three commands to stop any running instances of Sync Gateway:<\/span><\/p>\n<pre class=\"\">cd \/path\/to\/cloned\/repo\/travel-sample\r\ndocker stop sync-gateway\r\ndocker rm sync-gateway<\/pre>\n<p>Now, to start Sync Gateway using Docker, run the following commands depending on your operating system. Note the commands are one long line, shown here in multiple lines for readability:<\/p>\n<p><strong>Windows<\/strong><\/p>\n<pre>docker run -p 4984-4986:4984-4986 --network workshop --name sync-gateway -d -v \r\n%cd%\/sync-gateway-config-travelsample-bootstrap.json:\/etc\/sync_gateway\/sync_gateway.json \r\ncouchbase\/sync-gateway:3.0.0-enterprise \/etc\/sync_gateway\/sync_gateway.json<\/pre>\n<p><strong>Non-Windows Machine<\/strong><\/p>\n<pre class=\"\">docker run -p 4984-4986:4984-4986 --network workshop --name sync-gateway -d -v \r\n`pwd`\/sync-gateway-config-travelsample-bootstrap.json:\/etc\/sync_gateway\/sync_gateway.json \r\ncouchbase\/sync-gateway:3.0.0-enterprise \/etc\/sync_gateway\/sync_gateway.json<\/pre>\n<p><strong>Test Sync Gateway Installation<\/strong><\/p>\n<p>You can confirm that Sync Gateway is up and running by verifying the log messages with Docker:<\/p>\n<pre class=\"\">docker logs -f sync-gateway<\/pre>\n<p>You will see a bunch of log messages and none of them should be errors.<\/p>\n<p>To confirm that Sync Gateway is running, go to <em>https:\/\/localhost:4984<\/em> in a web browser.<br \/>\nYou should see a message similar to this:<\/p>\n<pre class=\"\">{\"couchdb\":\"Welcome\",\"vendor\":{\"name\":\"Couchbase SyncGateway\", \r\n\"version\":\"3.0\"}, \"version\":\"Couchbase Sync Gateway\/ \r\n{version-maintenance}(145;e3f46be) EE\"}<\/pre>\n<h4><span style=\"font-weight: 400\">Using Postman<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Launch the Postman API client and import all the three <\/span><i><span style=\"font-weight: 400\">travel-sample<\/span><\/i><span style=\"font-weight: 400\"> collections and the corresponding environment file, e.g., <\/span><i><span style=\"font-weight: 400\">Sync-Gateway-3.0-TravelSample-Environment<\/span><\/i><span style=\"font-weight: 400\">. Spend some time exploring the environment file.<\/span><\/p>\n<p><span style=\"font-weight: 400\">All the requests use the relevant user for authorization. However, you will need to provide a password when running the requests. The users are set up with a password of <\/span><i><span style=\"font-weight: 400\">password<\/span><\/i><span style=\"font-weight: 400\">. So make sure you configure the <\/span><i><span style=\"font-weight: 400\">Authorization header<\/span><\/i><span style=\"font-weight: 400\"> of your requests with the right password.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12766\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/authorization.png\" alt=\"\" width=\"700\" height=\"168\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/authorization.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/authorization-300x72.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/authorization-20x5.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span style=\"font-weight: 400\">Sanity Test<\/span><\/h4>\n<p><span style=\"font-weight: 400\">First, let\u2019s do a sanity test to ensure communications are generally working. Run the <\/span><i><span style=\"font-weight: 400\">Get Sync Gateway Info<\/span><\/i><span style=\"font-weight: 400\"> request from the <\/span><i><span style=\"font-weight: 400\">Admin API <\/span><\/i><span style=\"font-weight: 400\">collection. You should see details of Sync Gateway in the response. The screenshot below shows response in the <\/span><i><span style=\"font-weight: 400\">Body <\/span><\/i><span style=\"font-weight: 400\">window at the bottom of the screen.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12767\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/sanitytest.png\" alt=\"\" width=\"700\" height=\"337\" srcset=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/sanitytest.png 700w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/sanitytest-300x144.png 300w, https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2022\/02\/sanitytest-20x10.png 20w\" sizes=\"auto, (max-width: 700px) 100vw, 700px\" \/><\/p>\n<h4><span style=\"font-weight: 400\">Create &amp; Configure Travel Sample Database on Sync Gateway<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Depending on whether we make a cluster-level request or a database-level request, the user specified in the <\/span><i><span style=\"font-weight: 400\">Authorization <\/span><\/i><span style=\"font-weight: 400\">header may be <\/span><i><span style=\"font-weight: 400\">{{clusteradmin}}<\/span><\/i><span style=\"font-weight: 400\"> or <\/span><i><span style=\"font-weight: 400\">{{dbadmin}<\/span><\/i><span style=\"font-weight: 400\">} respectively. Use the password of &#8220;<\/span><i><span style=\"font-weight: 400\">password<\/span><\/i><span style=\"font-weight: 400\">&#8221; for all requests.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Sync Gateway database administration, including database creation, is handled via the admin REST endpoint and requires a Sync Gateway database to work. To create one, run the <\/span><i><span style=\"font-weight: 400\">Create a Sync Gateway Database<\/span><\/i><span style=\"font-weight: 400\"> request from the <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Admin AP<\/span><\/i><span style=\"font-weight: 400\">I collection as shown below in the screenshot animation.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12850\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/03\/Create-Configure-Travel-Sample-Database-on-Sync-Gateway.gif\" alt=\"\" width=\"1509\" height=\"925\" \/><\/p>\n<p><span style=\"font-weight: 400\">Once the Sync Gateway database is created, you can run other operations on the database like creating a sync function, setting import filters, etc.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Creating a Sync Gateway user<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Before you can start interacting with the Sync Gateway database via the public REST endpoint, you will have to create a <\/span><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/users.html\"><span style=\"font-weight: 400\">sync gateway user<\/span><\/a><span style=\"font-weight: 400\">. For this, run the <\/span><i><span style=\"font-weight: 400\">Create a new user<\/span><\/i><span style=\"font-weight: 400\"> request from the <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Admin API<\/span><\/i><span style=\"font-weight: 400\"> collection as shown below. This will create a user named <\/span><i><span style=\"font-weight: 400\">demo<\/span><\/i><span style=\"font-weight: 400\"> with the password of <\/span><i><span style=\"font-weight: 400\">password<\/span><\/i><span style=\"font-weight: 400\">. Once a user is created, you can use the public REST endpoint to interact with the database.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12768\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/02\/animation.gif\" alt=\"Sync Gateway 3.0\" width=\"1509\" height=\"925\" \/><\/p>\n<h5><span style=\"font-weight: 400\">Data Access<\/span><\/h5>\n<p><span style=\"font-weight: 400\">Accessing documents in the database and modifying them can be done via either the admin REST API or the public REST API. In this example, we use the public interface. All requests are executed using the <\/span><i><span style=\"font-weight: 400\">{{username}}<\/span><\/i><span style=\"font-weight: 400\"> user that was created via the <\/span><i><span style=\"font-weight: 400\">Create a new user<\/span><\/i><span style=\"font-weight: 400\"> request discussed earlier. Use the password of <\/span><i><span style=\"font-weight: 400\">password<\/span><\/i><span style=\"font-weight: 400\"> for requests.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12851\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/03\/Data-Access.gif\" alt=\"\" width=\"1600\" height=\"924\" \/><\/p>\n<p><span style=\"font-weight: 400\">The <\/span><i><span style=\"font-weight: 400\">travel-sample <\/span><\/i><span style=\"font-weight: 400\">bucket is preloaded with sample data. So you can retrieve any document in the sample bucket using the <\/span><i><span style=\"font-weight: 400\">Get Document<\/span><\/i><span style=\"font-weight: 400\"> request from the <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Public AP<\/span><\/i><span style=\"font-weight: 400\">I collection. Replace <\/span><i><span style=\"font-weight: 400\">newdoc<\/span><\/i><span style=\"font-weight: 400\"> with <\/span><i><span style=\"font-weight: 400\">doc<\/span><\/i><span style=\"font-weight: 400\"> in the request to retrieve an existing document from the bucket.<\/span><\/p>\n<p><span style=\"font-weight: 400\">You can create a new document and edit it by running requests from the <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Public API<\/span><\/i><span style=\"font-weight: 400\"> collection as shown below.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Monitoring<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Finally, you can monitor Sync Gateway by running the <\/span><i><span style=\"font-weight: 400\">Debugging\/monitoring runtime stats in Prometheus format<\/span><\/i><span style=\"font-weight: 400\"> request from the <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Metrics API<\/span><\/i><span style=\"font-weight: 400\"> as shown below.<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-12852\" src=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2022\/03\/Monitoring.gif\" alt=\"\" width=\"1511\" height=\"1011\" \/><\/p>\n<h4><span style=\"font-weight: 400\">Next Steps<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Familiarize yourself with the other REST APIs by running through the other requests and customizing the requests as needed.<\/span><\/p>\n<p><span style=\"font-weight: 400\">The Postman collections in this repo are shared as a convenience for administrators and developers to get started with Sync Gateway. It is not officially supported by Couchbase and as such, there are no guarantees that the Collections will remain up-to-date with the evolution of the REST API. To that end, contributions to keep the collections up-to-date are welcome!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">If you have questions or feedback, please leave a comment below or feel free to reach out to me at Twitter <\/span><a href=\"https:\/\/twitter.com\/rajagp\"><span style=\"font-weight: 400\">@rajagp<\/span><\/a><span style=\"font-weight: 400\"> or email me <\/span><span style=\"font-weight: 400\">priya.rajagopal@couchbase.com<\/span><span style=\"font-weight: 400\">.\u00a0 The <\/span><a href=\"https:\/\/www.couchbase.com\/forums\/\"><span style=\"font-weight: 400\">Couchbase Forums<\/span><\/a><span style=\"font-weight: 400\"> are another good place to reach out with questions.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Acknowledgements<\/span><\/h4>\n<p><span style=\"font-weight: 400\">I would like to thank <\/span><a href=\"https:\/\/github.com\/IsaacLambat\"><span style=\"font-weight: 400\">Isaac Lambat<\/span><\/a><span style=\"font-weight: 400\">, Engineer on the Sync Gateway team, for his input on this blog post.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Resources<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/www.postman.com\/product\/api-client\/\"><span style=\"font-weight: 400\">Postman API client website<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/github.com\/couchbaselabs\/Couchbase-Sync-Gateway-Postman-Collection\"><span style=\"font-weight: 400\">Postman files on Github for Couchbase Sync Gateway<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/manage-settings\/install-sample-buckets.html\"><span style=\"font-weight: 400\">Couchbase Travel Sample documentation<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/docs.docker.com\/get-docker\/\"><span style=\"font-weight: 400\">Docker download site<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Get started on <\/span><a href=\"https:\/\/cloud.couchbase.com\"><span style=\"font-weight: 400\">Couchbase Capella<\/span><\/a><span style=\"font-weight: 400\"> &#8211; in the cloud, with a free trial (no credit card required)<\/span><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Web-based clients can administer, monitor and interact with Couchbase Sync Gateway using a RESTful interface. With the Sync Gateway 3.0 release, database administration is done exclusively through the admin REST endpoint. Postman is an API test, development and documentation tool [&hellip;]<\/p>\n","protected":false},"author":1423,"featured_media":12541,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"inline_featured_image":false,"footnotes":""},"categories":[1810,2366],"tags":[1950],"ppma_author":[8948],"class_list":["post-12845","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-couchbase-mobile","category-sync-gateway","tag-rest-api"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v25.8 (Yoast SEO v25.8) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Postman Collections for Sync Gateway Administration - The Couchbase Blog<\/title>\n<meta name=\"description\" content=\"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Postman Collections for Sync Gateway Administration\" \/>\n<meta property=\"og:description\" content=\"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\" \/>\n<meta property=\"og:site_name\" content=\"The Couchbase Blog\" \/>\n<meta property=\"article:published_time\" content=\"2022-03-07T19:03:12+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-05-23T07:55:27+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/11\/shutterstock_1937208235-scaled.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"2560\" \/>\n\t<meta property=\"og:image:height\" content=\"1401\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Priya Rajagopal, Senior Director, Product Management\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@rajagp\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Priya Rajagopal, Senior Director, Product Management\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"11 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\"},\"author\":{\"name\":\"Priya Rajagopal, Senior Director, Product Management\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c2da90e57717ee4970c48a87a131ac2c\"},\"headline\":\"Postman Collections for Sync Gateway Administration\",\"datePublished\":\"2022-03-07T19:03:12+00:00\",\"dateModified\":\"2023-05-23T07:55:27+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\"},\"wordCount\":1752,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg\",\"keywords\":[\"REST API\"],\"articleSection\":[\"Couchbase Mobile\",\"Sync Gateway\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\",\"name\":\"Postman Collections for Sync Gateway Administration - The Couchbase Blog\",\"isPartOf\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg\",\"datePublished\":\"2022-03-07T19:03:12+00:00\",\"dateModified\":\"2023-05-23T07:55:27+00:00\",\"description\":\"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.\",\"breadcrumb\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg\",\"width\":2560,\"height\":1401,\"caption\":\"Multimodel solves database sprawl\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.couchbase.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Postman Collections for Sync Gateway Administration\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#website\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"name\":\"The Couchbase Blog\",\"description\":\"Couchbase, the NoSQL Database\",\"publisher\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"contentUrl\":\"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png\",\"width\":218,\"height\":34,\"caption\":\"The Couchbase Blog\"},\"image\":{\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c2da90e57717ee4970c48a87a131ac2c\",\"name\":\"Priya Rajagopal, Senior Director, Product Management\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/4b50a54778b979d8c345b036ab138734\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/acfb2349788955262cd069497a9e7bdb0e97c26326f2e55811e7c1174e9ef1be?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/acfb2349788955262cd069497a9e7bdb0e97c26326f2e55811e7c1174e9ef1be?s=96&d=mm&r=g\",\"caption\":\"Priya Rajagopal, Senior Director, Product Management\"},\"description\":\"Priya Rajagopal is a Senior Director of Product Management at Couchbase responsible for developer platforms for the cloud and the edge. She has been professionally developing software for over 20 years in several technical and product leadership positions, with 10+ years focused on mobile technologies. As a TISPAN IPTV standards delegate, she was a key contributor to the IPTV standards specifications. She has 22 patents in the areas of networking and platform security.\",\"sameAs\":[\"https:\/\/x.com\/rajagp\"],\"url\":\"https:\/\/www.couchbase.com\/blog\/author\/priya-rajagopalcouchbase-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Postman Collections for Sync Gateway Administration - The Couchbase Blog","description":"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/","og_locale":"en_US","og_type":"article","og_title":"Postman Collections for Sync Gateway Administration","og_description":"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.","og_url":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/","og_site_name":"The Couchbase Blog","article_published_time":"2022-03-07T19:03:12+00:00","article_modified_time":"2023-05-23T07:55:27+00:00","og_image":[{"width":2560,"height":1401,"url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2021\/11\/shutterstock_1937208235-scaled.jpg","type":"image\/jpeg"}],"author":"Priya Rajagopal, Senior Director, Product Management","twitter_card":"summary_large_image","twitter_creator":"@rajagp","twitter_misc":{"Written by":"Priya Rajagopal, Senior Director, Product Management","Est. reading time":"11 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#article","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/"},"author":{"name":"Priya Rajagopal, Senior Director, Product Management","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c2da90e57717ee4970c48a87a131ac2c"},"headline":"Postman Collections for Sync Gateway Administration","datePublished":"2022-03-07T19:03:12+00:00","dateModified":"2023-05-23T07:55:27+00:00","mainEntityOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/"},"wordCount":1752,"commentCount":0,"publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg","keywords":["REST API"],"articleSection":["Couchbase Mobile","Sync Gateway"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/","url":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/","name":"Postman Collections for Sync Gateway Administration - The Couchbase Blog","isPartOf":{"@id":"https:\/\/www.couchbase.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage"},"thumbnailUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg","datePublished":"2022-03-07T19:03:12+00:00","dateModified":"2023-05-23T07:55:27+00:00","description":"This blog post shows you how to use the Postman API client to configure, administer, and interact with Sync Gateway via the REST interface.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#primaryimage","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/sites\/1\/2021\/11\/shutterstock_1937208235-scaled.jpg","width":2560,"height":1401,"caption":"Multimodel solves database sprawl"},{"@type":"BreadcrumbList","@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.couchbase.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Postman Collections for Sync Gateway Administration"}]},{"@type":"WebSite","@id":"https:\/\/www.couchbase.com\/blog\/#website","url":"https:\/\/www.couchbase.com\/blog\/","name":"The Couchbase Blog","description":"Couchbase, the NoSQL Database","publisher":{"@id":"https:\/\/www.couchbase.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.couchbase.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"The Couchbase Blog","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","contentUrl":"https:\/\/www.couchbase.com\/blog\/wp-content\/uploads\/2023\/04\/admin-logo.png","width":218,"height":34,"caption":"The Couchbase Blog"},"image":{"@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/c2da90e57717ee4970c48a87a131ac2c","name":"Priya Rajagopal, Senior Director, Product Management","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.couchbase.com\/blog\/#\/schema\/person\/image\/4b50a54778b979d8c345b036ab138734","url":"https:\/\/secure.gravatar.com\/avatar\/acfb2349788955262cd069497a9e7bdb0e97c26326f2e55811e7c1174e9ef1be?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/acfb2349788955262cd069497a9e7bdb0e97c26326f2e55811e7c1174e9ef1be?s=96&d=mm&r=g","caption":"Priya Rajagopal, Senior Director, Product Management"},"description":"Priya Rajagopal is a Senior Director of Product Management at Couchbase responsible for developer platforms for the cloud and the edge. She has been professionally developing software for over 20 years in several technical and product leadership positions, with 10+ years focused on mobile technologies. As a TISPAN IPTV standards delegate, she was a key contributor to the IPTV standards specifications. She has 22 patents in the areas of networking and platform security.","sameAs":["https:\/\/x.com\/rajagp"],"url":"https:\/\/www.couchbase.com\/blog\/author\/priya-rajagopalcouchbase-com\/"}]}},"authors":[{"term_id":8948,"user_id":1423,"is_guest":0,"slug":"priya-rajagopalcouchbase-com","display_name":"Priya Rajagopal, Senior Director, Product Management","avatar_url":"https:\/\/secure.gravatar.com\/avatar\/acfb2349788955262cd069497a9e7bdb0e97c26326f2e55811e7c1174e9ef1be?s=96&d=mm&r=g","author_category":"","last_name":"Rajagopal, Senior Director, Product Management","first_name":"Priya","job_title":"","user_url":"","description":"Priya Rajagopal is a Senior Director of Product Management at Couchbase responsible for developer platforms for the cloud and the edge. She has been professionally developing software for over 20 years in several technical and product leadership positions, with 10+ years focused on mobile technologies. As a TISPAN IPTV standards delegate, she was a key contributor to the IPTV standards specifications. She has 22 patents in the areas of networking and platform security."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/12845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/users\/1423"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/comments?post=12845"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/posts\/12845\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media\/12541"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/media?parent=12845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/categories?post=12845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/tags?post=12845"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/wp-json\/wp\/v2\/ppma_author?post=12845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}