{"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\/pt\/postman-collections-for-sync-gateway-administration\/","title":{"rendered":"Postman Collections para administra\u00e7\u00e3o do Sync Gateway"},"content":{"rendered":"<p><span style=\"font-weight: 400\">Os clientes baseados na Web podem administrar, monitorar e interagir com o Couchbase Sync Gateway usando um <\/span><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/rest-api-access.html\"><span style=\"font-weight: 400\">Interface RESTful<\/span><\/a><span style=\"font-weight: 400\">. Com o <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/new-platforms-support-and-advanced-administration-with-couchbase-mobile-3\/\"><span style=\"font-weight: 400\">Lan\u00e7amento do Sync Gateway 3.0<\/span><\/a><span style=\"font-weight: 400\">A administra\u00e7\u00e3o do banco de dados \u00e9 feita exclusivamente por meio do <\/span><i><span style=\"font-weight: 400\">administrador <\/span><\/i><span style=\"font-weight: 400\">Ponto de extremidade REST. <\/span><a href=\"https:\/\/www.getpostman.com\/\"><span style=\"font-weight: 400\">Carteiro<\/span><\/a><span style=\"font-weight: 400\"> \u00e9 uma ferramenta de teste, desenvolvimento e documenta\u00e7\u00e3o de API que permite testar e usar esses pontos de extremidade.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Esta postagem do blog mostra como usar o <\/span><a href=\"https:\/\/www.postman.com\/product\/api-client\/\"><span style=\"font-weight: 400\">Cliente da API do Postman<\/span><\/a><span style=\"font-weight: 400\"> para configurar, administrar e interagir com o Sync Gateway por meio da interface REST.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Cole\u00e7\u00f5es Postman para o Sync Gateway<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Um carteiro <\/span><i><span style=\"font-weight: 400\">Cole\u00e7\u00e3o <\/span><\/i><span style=\"font-weight: 400\">\u00e9 um grupo de solicita\u00e7\u00f5es salvas organizadas em pastas e subpastas. Voc\u00ea pode usar as cole\u00e7\u00f5es como ponto de partida e personaliz\u00e1-las de acordo com seu ambiente e suas necessidades.\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Produzimos um conjunto de refer\u00eancia de <\/span><a href=\"https:\/\/learning.postman.com\/docs\/getting-started\/introduction\/\"><span style=\"font-weight: 400\">Carteiro<\/span><\/a><span style=\"font-weight: 400\"> e os arquivos de defini\u00e7\u00e3o de vari\u00e1veis de ambiente correspondentes para a interface REST do Sync Gateway 3.0. Esses arquivos est\u00e3o dispon\u00edveis em <\/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\"> e projetado para que voc\u00ea comece a trabalhar rapidamente com as etapas a seguir.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Primeiro, clone o reposit\u00f3rio<\/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\">O reposit\u00f3rio tamb\u00e9m cont\u00e9m um <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> e uma cole\u00e7\u00e3o personalizada para o aplicativo Travel Sample, conforme discutiremos um pouco mais adiante.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Agora vamos explorar os outros conte\u00fados do reposit\u00f3rio clonado. H\u00e1 tr\u00eas arquivos JSON da Postman Collection com o sufixo <\/span><i><span style=\"font-weight: 400\">postman_collection.json <\/span><\/i><span style=\"font-weight: 400\">inclu\u00eddo e um arquivo de configura\u00e7\u00f5es do Postman Environment, conforme descrito nesta tabela:<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Arquivo \/ link do Github<\/b><\/td>\n<td><b>Interface da API usada \/ Link dos documentos<\/b><\/td>\n<td><b>Finalidade<\/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-3.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\">Interface de administra\u00e7\u00e3o do Sync Gateway<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Solicita\u00e7\u00f5es de gerenciamento de banco de dados, administra\u00e7\u00e3o, controles de acesso e gerenciamento de usu\u00e1rios finais.<\/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-3.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\">Interface p\u00fablica do Sync Gateway<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Permite que os usu\u00e1rios finais leiam e gravem dados do aplicativo.<\/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-3.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\">Interface Sync Gateway Metrics<\/span><\/a><span style=\"font-weight: 400\">\u00a0<\/span><\/td>\n<td><span style=\"font-weight: 400\">Permite o acesso a estat\u00edsticas em n\u00edvel de cluster no Prometheus e no formato JSON personalizado.<\/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\">Ambiente do Sync-Gateway-3.0<\/span><\/a><\/td>\n<td colspan=\"2\"><span style=\"font-weight: 400\">Arquivo Environment Definitions que define as vari\u00e1veis. As vari\u00e1veis ter\u00e3o de ser personalizadas com valores correspondentes ao seu ambiente.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"font-weight: 400\">Usando o cliente Postman<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Fa\u00e7a o download do <\/span><a href=\"https:\/\/www.getpostman.com\/\"><span style=\"font-weight: 400\">Cliente carteiro<\/span><\/a><span style=\"font-weight: 400\"> gratuitamente para sua plataforma.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Siga as instru\u00e7\u00f5es detalhadas nesta se\u00e7\u00e3o <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/querying-couchbase-sync-gateway-with-postman\/\"><span style=\"font-weight: 400\">postagem introdut\u00f3ria<\/span><\/a><span style=\"font-weight: 400\"> para importar as cole\u00e7\u00f5es e os arquivos de ambiente para o Postman.\u00a0<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Atualize as configura\u00e7\u00f5es do arquivo de ambiente de acordo com sua implementa\u00e7\u00e3o e comece a executar solicita\u00e7\u00f5es no Sync Gateway.<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">No final, sua configura\u00e7\u00e3o deve ser semelhante \u00e0 seguinte captura de tela:<\/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>Administrar o Sync Gateway por meio da API REST: Exemplo de passo a passo<\/b><\/h4>\n<p><span style=\"font-weight: 400\">Uma vez inicializado e conectado ao cluster do Couchbase Server, o Sync Gateway \u00e9 gerenciado por meio do ponto de extremidade REST. Agora, vamos examinar o processo com um exemplo concreto.<\/span><\/p>\n<p><span style=\"font-weight: 400\">O reposit\u00f3rio do GitHub cont\u00e9m uma vers\u00e3o personalizada das cole\u00e7\u00f5es Postman para gerenciar um Gateway de sincroniza\u00e7\u00e3o apoiado por um <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/manage-settings\/install-sample-buckets.html\"><span style=\"font-weight: 400\">Balde de amostra de viagem<\/span><\/a><span style=\"font-weight: 400\">. As seguintes cole\u00e7\u00f5es est\u00e3o localizadas no <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> pasta.<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td><b>Arquivo \/ link do Github<\/b><\/td>\n<td><b>Finalidade<\/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-3.0-TravelSample-Admin-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Solicita\u00e7\u00f5es para criar o Sync Gateway <\/span><i><span style=\"font-weight: 400\">amostra de viagem <\/span><\/i><span style=\"font-weight: 400\">configurar e gerenciar o banco de dados e criar usu\u00e1rios do Sync Gateway. Todas as solicita\u00e7\u00f5es dessa cole\u00e7\u00e3o s\u00e3o autenticadas.<\/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-3.0-TravelSample-Public-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Crie, atualize e acesse documentos a partir do <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> banco de dados. Todas as solicita\u00e7\u00f5es nessa cole\u00e7\u00e3o s\u00e3o autenticadas.<\/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-3.0-TravelSample-Metrics-API<\/span><\/a><\/td>\n<td><span style=\"font-weight: 400\">Recupera estat\u00edsticas relacionadas ao cluster do Sync Gateway. Todas as solicita\u00e7\u00f5es dessa cole\u00e7\u00e3o s\u00e3o autenticadas.<\/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\">O arquivo de ambiente personalizado.<\/span><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4><span style=\"font-weight: 400\">Visualiza\u00e7\u00e3o dos resultados do teste<\/span><\/h4>\n<p><span style=\"font-weight: 400\">A maioria das solicita\u00e7\u00f5es nas cole\u00e7\u00f5es inclui testes simples para verificar o sucesso da solicita\u00e7\u00e3o. Esta captura de tela mostra a guia Testes que inclui o c\u00f3digo de teste e a janela do console Resultados do teste na parte inferior.<\/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>Encadeamento de solicita\u00e7\u00f5es<\/b><\/p>\n<p><span style=\"font-weight: 400\">O encadeamento de solicita\u00e7\u00f5es pega o resultado de uma solicita\u00e7\u00e3o e o usa como entrada para uma solicita\u00e7\u00e3o subsequente. Isso \u00e9 feito por meio da atualiza\u00e7\u00e3o din\u00e2mica das vari\u00e1veis de ambiente com os resultados da execu\u00e7\u00e3o da solicita\u00e7\u00e3o e elimina a necessidade de editar manualmente as solicita\u00e7\u00f5es.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Por exemplo, uma nova revis\u00e3o de documento \u00e9 feita quando voc\u00ea cria um documento. A revis\u00e3o <\/span><i><span style=\"font-weight: 400\">ID da revis\u00e3o <\/span><\/i><span style=\"font-weight: 400\">do novo documento \u00e9 retornado por meio do <\/span><i><span style=\"font-weight: 400\">_rev<\/span><\/i><span style=\"font-weight: 400\"> campo. O teste associado \u00e0 solicita\u00e7\u00e3o extrai o campo <\/span><i><span style=\"font-weight: 400\">_rev<\/span><\/i><span style=\"font-weight: 400\"> e define o valor <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> vari\u00e1vel de ambiente.<\/span><\/p>\n<p><span style=\"font-weight: 400\">A captura de tela abaixo mostra o c\u00f3digo que define a vari\u00e1vel de ambiente e o JSON de sa\u00edda do Body preenchido.<\/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\">Uma solicita\u00e7\u00e3o de atualiza\u00e7\u00e3o subsequente para o documento pode recuperar o <\/span><i><span style=\"font-weight: 400\">revisionId <\/span><\/i><span style=\"font-weight: 400\">do documento a ser atualizado a partir do <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> vari\u00e1vel de ambiente que foi preenchida pela solicita\u00e7\u00e3o anterior.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Esta captura de tela mostra uma visualiza\u00e7\u00e3o de mouseover do valor do <\/span><i><span style=\"font-weight: 400\">rev<\/span><\/i><span style=\"font-weight: 400\"> vari\u00e1vel:<\/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\">Instala\u00e7\u00e3o do Couchbase e do Sync Gateway com o Docker<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Para poder executar a cole\u00e7\u00e3o, voc\u00ea precisa de um ambiente com o Couchbase Server e o Sync Gateway. Implement\u00e1-los em cont\u00eaineres do Docker \u00e9 a op\u00e7\u00e3o mais simples. Temos imagens pr\u00e9-constru\u00eddas que t\u00eam tudo pr\u00e9-configurado para voc\u00ea.<\/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\"> deve estar instalado em seu computador. No Windows, talvez voc\u00ea precise de privil\u00e9gios de administrador. Certifique-se de que voc\u00ea tenha mem\u00f3ria e n\u00facleos suficientes alocados para o Docker. Recomenda-se pelo menos 3 GB de RAM.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Configura\u00e7\u00e3o de uma rede Docker<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Crie uma rede docker chamada <\/span><i><span style=\"font-weight: 400\">oficina <\/span><\/i><span style=\"font-weight: 400\">executando estes comandos do Docker<\/span><\/p>\n<pre>docker network ls \r\ndocker network create -d bridge workshop<\/pre>\n<p><span style=\"font-weight: 400\">Tenho uma imagem personalizada do Docker<\/span> <span style=\"font-weight: 400\">do Couchbase Server que voc\u00ea pode usar chamado:<\/span><\/p>\n<pre class=\"\">priyacouch\/couchbase-server-travelsample:7.x-dev<\/pre>\n<p><span style=\"font-weight: 400\">A imagem vem pr\u00e9-configurada com o <\/span><a href=\"https:\/\/docs.couchbase.com\/server\/current\/manage\/manage-settings\/install-sample-buckets.html\"><span style=\"font-weight: 400\">amostra de viagem<\/span><\/a><span style=\"font-weight: 400\"> e tr\u00eas usu\u00e1rios RBAC:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><b>administrador<\/b><span style=\"font-weight: 400\"> - que o Sync Gateway usa para se conectar ao Couchbase Server<\/span><\/li>\n<li style=\"font-weight: 400\"><b>cluster sgw<\/b><span style=\"font-weight: 400\"> - para opera\u00e7\u00f5es em n\u00edvel de cluster via Sync Gateway <\/span><i><span style=\"font-weight: 400\">administrador<\/span><\/i><span style=\"font-weight: 400\">\/<\/span><i><span style=\"font-weight: 400\">m\u00e9tricas <\/span><\/i><span style=\"font-weight: 400\">Ponto de extremidade REST<\/span><\/li>\n<li style=\"font-weight: 400\"><b>sgw-admin<\/b><span style=\"font-weight: 400\"> - para opera\u00e7\u00f5es administrativas no n\u00edvel do banco de dados do Sync Gateway por meio do ponto de extremidade REST admin\/metrics do Sync Gateway<\/span><\/li>\n<\/ul>\n<p><span style=\"font-weight: 400\">Implemente o servidor usando os seguintes comandos do Docker:<\/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\">Teste a instala\u00e7\u00e3o do servidor Couchbase<\/span><\/h4>\n<p><span style=\"font-weight: 400\">O servidor levar\u00e1 alguns minutos para ser implantado e totalmente inicializado. Seja paciente, mas voc\u00ea pode usar este comando para verificar o status:<\/span><\/p>\n<pre class=\"\">docker logs -f cb-server<\/pre>\n<p><span style=\"font-weight: 400\">Voc\u00ea dever\u00e1 ver o seguinte quando a configura\u00e7\u00e3o estiver conclu\u00edda:<\/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\">Abra o URL da interface do usu\u00e1rio da Web do Couchbase em um navegador da Web:<\/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\">Na tela de login, fa\u00e7a login como <\/span><i><span style=\"font-weight: 400\">Administrador<\/span><\/i><span style=\"font-weight: 400\"> com senha: <\/span><i><span style=\"font-weight: 400\">senha<\/span><\/i><span style=\"font-weight: 400\">.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Ir para o <\/span><i><span style=\"font-weight: 400\">Baldes<\/span><\/i><span style=\"font-weight: 400\"> e confirme que o <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> \u00e9 carregado. Esse compartimento cont\u00e9m os dados de amostra. Voc\u00ea pode ver que o compartimento existe e que h\u00e1 muitos documentos carregados nesta captura de tela:<\/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\">Ir para o <\/span><i><span style=\"font-weight: 400\">Seguran\u00e7a<\/span><\/i><span style=\"font-weight: 400\"> e confirme que nossos tr\u00eas usu\u00e1rios foram criados, conforme mostrado abaixo:<\/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\">Instalar e testar o Sync Gateway\u00a0<\/span><\/h4>\n<p><span style=\"font-weight: 400\">O Sync Gateway precisa ser inicializado com um arquivo de configura\u00e7\u00e3o de inicializa\u00e7\u00e3o. O arquivo <\/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\"> est\u00e1 dispon\u00edvel no arquivo <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> do reposit\u00f3rio clonado.<\/span><\/p>\n<p><span style=\"font-weight: 400\">V\u00e1 para a pasta que cont\u00e9m o arquivo de configura\u00e7\u00e3o baixado e execute os tr\u00eas comandos a seguir para interromper todas as inst\u00e2ncias em execu\u00e7\u00e3o do 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>Agora, para iniciar o Sync Gateway usando o Docker, execute os seguintes comandos, dependendo do seu sistema operacional. Observe que os comandos s\u00e3o uma linha longa, mostrada aqui em v\u00e1rias linhas para facilitar a leitura:<\/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>M\u00e1quina n\u00e3o-Windows<\/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>Teste a instala\u00e7\u00e3o do Sync Gateway<\/strong><\/p>\n<p>Voc\u00ea pode confirmar que o Sync Gateway est\u00e1 em funcionamento verificando as mensagens de registro com o Docker:<\/p>\n<pre class=\"\">docker logs -f sync-gateway<\/pre>\n<p>Voc\u00ea ver\u00e1 v\u00e1rias mensagens de registro e nenhuma delas deve ser um erro.<\/p>\n<p>Para confirmar que o Sync Gateway est\u00e1 em execu\u00e7\u00e3o, v\u00e1 para <em>https:\/\/localhost:4984<\/em> em um navegador da Web.<br \/>\nVoc\u00ea dever\u00e1 ver uma mensagem semelhante a esta:<\/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\">Usando o Postman<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Inicie o cliente da API do Postman e importe todos os tr\u00eas <\/span><i><span style=\"font-weight: 400\">amostra de viagem<\/span><\/i><span style=\"font-weight: 400\"> e o arquivo de ambiente correspondente, por exemplo, <\/span><i><span style=\"font-weight: 400\">Sync-Gateway-3.0-TravelSample-Environment<\/span><\/i><span style=\"font-weight: 400\">. Passe algum tempo explorando o arquivo de ambiente.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Todas as solicita\u00e7\u00f5es usam o usu\u00e1rio relevante para autoriza\u00e7\u00e3o. No entanto, voc\u00ea precisar\u00e1 fornecer uma senha ao executar as solicita\u00e7\u00f5es. Os usu\u00e1rios s\u00e3o configurados com uma senha de <\/span><i><span style=\"font-weight: 400\">senha<\/span><\/i><span style=\"font-weight: 400\">. Portanto, certifique-se de configurar o <\/span><i><span style=\"font-weight: 400\">Cabe\u00e7alho de autoriza\u00e7\u00e3o<\/span><\/i><span style=\"font-weight: 400\"> de suas solicita\u00e7\u00f5es com a senha correta.<\/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\">Teste de sanidade<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Primeiro, vamos fazer um teste de sanidade para garantir que as comunica\u00e7\u00f5es estejam funcionando de modo geral. Execute o <\/span><i><span style=\"font-weight: 400\">Obter informa\u00e7\u00f5es do gateway de sincroniza\u00e7\u00e3o<\/span><\/i><span style=\"font-weight: 400\"> solicita\u00e7\u00e3o do <\/span><i><span style=\"font-weight: 400\">API do administrador <\/span><\/i><span style=\"font-weight: 400\">cobran\u00e7a. Voc\u00ea dever\u00e1 ver os detalhes do Sync Gateway na resposta. A captura de tela abaixo mostra a resposta na se\u00e7\u00e3o <\/span><i><span style=\"font-weight: 400\">Corpo <\/span><\/i><span style=\"font-weight: 400\">na parte inferior da tela.<\/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\">Criar e configurar o banco de dados de amostra de viagens no Sync Gateway<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Dependendo se fizermos uma solicita\u00e7\u00e3o no n\u00edvel do cluster ou no n\u00edvel do banco de dados, o usu\u00e1rio especificado no <\/span><i><span style=\"font-weight: 400\">Autoriza\u00e7\u00e3o <\/span><\/i><span style=\"font-weight: 400\">O cabe\u00e7alho pode ser <\/span><i><span style=\"font-weight: 400\">{{clusteradmin}}<\/span><\/i><span style=\"font-weight: 400\"> ou <\/span><i><span style=\"font-weight: 400\">{{dbadmin}<\/span><\/i><span style=\"font-weight: 400\">} respectivamente. Use a senha de \"<\/span><i><span style=\"font-weight: 400\">senha<\/span><\/i><span style=\"font-weight: 400\">\" para todas as solicita\u00e7\u00f5es.<\/span><\/p>\n<p><span style=\"font-weight: 400\">A administra\u00e7\u00e3o do banco de dados do Sync Gateway, incluindo a cria\u00e7\u00e3o do banco de dados, \u00e9 feita por meio do ponto de extremidade REST do admin e requer um banco de dados do Sync Gateway para funcionar. Para criar um, execute o comando <\/span><i><span style=\"font-weight: 400\">Criar um banco de dados do Sync Gateway<\/span><\/i><span style=\"font-weight: 400\"> solicita\u00e7\u00e3o do <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Admin AP<\/span><\/i><span style=\"font-weight: 400\">Eu coleciono como mostrado abaixo na anima\u00e7\u00e3o da captura de tela.<\/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\">Depois que o banco de dados do Sync Gateway for criado, voc\u00ea poder\u00e1 executar outras opera\u00e7\u00f5es no banco de dados, como criar uma fun\u00e7\u00e3o de sincroniza\u00e7\u00e3o, definir filtros de importa\u00e7\u00e3o etc.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Cria\u00e7\u00e3o de um usu\u00e1rio do Sync Gateway<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Antes de come\u00e7ar a interagir com o banco de dados do Sync Gateway por meio do ponto de extremidade REST p\u00fablico, voc\u00ea ter\u00e1 que criar um arquivo <\/span><a href=\"https:\/\/docs.couchbase.com\/sync-gateway\/3.0\/users.html\"><span style=\"font-weight: 400\">usu\u00e1rio do gateway de sincroniza\u00e7\u00e3o<\/span><\/a><span style=\"font-weight: 400\">. Para isso, execute o <\/span><i><span style=\"font-weight: 400\">Criar um novo usu\u00e1rio<\/span><\/i><span style=\"font-weight: 400\"> solicita\u00e7\u00e3o do <\/span><i><span style=\"font-weight: 400\">API de administra\u00e7\u00e3o do Sync Gateway 3.0 TravelSample<\/span><\/i><span style=\"font-weight: 400\"> conforme mostrado abaixo. Isso criar\u00e1 um usu\u00e1rio chamado <\/span><i><span style=\"font-weight: 400\">demonstra\u00e7\u00e3o<\/span><\/i><span style=\"font-weight: 400\"> com a senha de <\/span><i><span style=\"font-weight: 400\">senha<\/span><\/i><span style=\"font-weight: 400\">. Depois que um usu\u00e1rio \u00e9 criado, voc\u00ea pode usar o ponto de extremidade REST p\u00fablico para interagir com o banco de dados.<\/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\">Acesso aos dados<\/span><\/h5>\n<p><span style=\"font-weight: 400\">O acesso aos documentos no banco de dados e a modifica\u00e7\u00e3o deles podem ser feitos por meio da API REST do administrador ou da API REST p\u00fablica. Neste exemplo, usamos a interface p\u00fablica. Todas as solicita\u00e7\u00f5es s\u00e3o executadas usando a interface <\/span><i><span style=\"font-weight: 400\">{{username}}<\/span><\/i><span style=\"font-weight: 400\"> usu\u00e1rio que foi criado por meio do <\/span><i><span style=\"font-weight: 400\">Criar um novo usu\u00e1rio<\/span><\/i><span style=\"font-weight: 400\"> discutida anteriormente. Use a senha de <\/span><i><span style=\"font-weight: 400\">senha<\/span><\/i><span style=\"font-weight: 400\"> para solicita\u00e7\u00f5es.<\/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\">O <\/span><i><span style=\"font-weight: 400\">amostra de viagem <\/span><\/i><span style=\"font-weight: 400\">\u00e9 pr\u00e9-carregado com dados de amostra. Portanto, voc\u00ea pode recuperar qualquer documento no bucket de amostra usando o comando <\/span><i><span style=\"font-weight: 400\">Obter documento<\/span><\/i><span style=\"font-weight: 400\"> solicita\u00e7\u00e3o do <\/span><i><span style=\"font-weight: 400\">Sync Gateway 3.0 TravelSample Public AP<\/span><\/i><span style=\"font-weight: 400\">Eu coleciono. Substituir <\/span><i><span style=\"font-weight: 400\">novo documento<\/span><\/i><span style=\"font-weight: 400\"> com <\/span><i><span style=\"font-weight: 400\">doc<\/span><\/i><span style=\"font-weight: 400\"> na solicita\u00e7\u00e3o para recuperar um documento existente do bucket.<\/span><\/p>\n<p><span style=\"font-weight: 400\">Voc\u00ea pode criar um novo documento e edit\u00e1-lo executando solicita\u00e7\u00f5es do <\/span><i><span style=\"font-weight: 400\">API p\u00fablica do Sync Gateway 3.0 TravelSample<\/span><\/i><span style=\"font-weight: 400\"> conforme mostrado abaixo.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Monitoramento<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Por fim, voc\u00ea pode monitorar o Sync Gateway executando o comando <\/span><i><span style=\"font-weight: 400\">Depura\u00e7\u00e3o\/monitoramento de estat\u00edsticas de tempo de execu\u00e7\u00e3o no formato Prometheus<\/span><\/i><span style=\"font-weight: 400\"> solicita\u00e7\u00e3o do <\/span><i><span style=\"font-weight: 400\">API de m\u00e9tricas do TravelSample do Sync Gateway 3.0<\/span><\/i><span style=\"font-weight: 400\"> como mostrado abaixo.<\/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\">Pr\u00f3ximas etapas<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Familiarize-se com as outras APIs REST executando as outras solicita\u00e7\u00f5es e personalizando-as conforme necess\u00e1rio.<\/span><\/p>\n<p><span style=\"font-weight: 400\">As cole\u00e7\u00f5es Postman neste reposit\u00f3rio s\u00e3o compartilhadas como uma conveni\u00eancia para administradores e desenvolvedores come\u00e7arem a usar o Sync Gateway. Ele n\u00e3o \u00e9 oficialmente suportado pelo Couchbase e, como tal, n\u00e3o h\u00e1 garantias de que as cole\u00e7\u00f5es permanecer\u00e3o atualizadas com a evolu\u00e7\u00e3o da API REST. Para isso, contribui\u00e7\u00f5es para manter as cole\u00e7\u00f5es atualizadas s\u00e3o bem-vindas!\u00a0<\/span><\/p>\n<p><span style=\"font-weight: 400\">Se tiver d\u00favidas ou coment\u00e1rios, deixe um coment\u00e1rio abaixo ou entre em contato comigo pelo Twitter <\/span><a href=\"https:\/\/twitter.com\/rajagp\"><span style=\"font-weight: 400\">@rajagp<\/span><\/a><span style=\"font-weight: 400\"> ou envie-me um e-mail <\/span><span style=\"font-weight: 400\">priya.rajagopal@couchbase.com<\/span><span style=\"font-weight: 400\">.  O <\/span><a href=\"https:\/\/www.couchbase.com\/blog\/pt\/forums\/\"><span style=\"font-weight: 400\">F\u00f3runs do Couchbase<\/span><\/a><span style=\"font-weight: 400\"> s\u00e3o outro bom lugar para entrar em contato com perguntas.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Agradecimentos<\/span><\/h4>\n<p><span style=\"font-weight: 400\">Gostaria de agradecer a <\/span><a href=\"https:\/\/github.com\/IsaacLambat\"><span style=\"font-weight: 400\">Isaac Lambat<\/span><\/a><span style=\"font-weight: 400\">engenheiro da equipe do Sync Gateway, por sua contribui\u00e7\u00e3o para esta publica\u00e7\u00e3o do blog.<\/span><\/p>\n<h4><span style=\"font-weight: 400\">Recursos<\/span><\/h4>\n<ul>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/www.postman.com\/product\/api-client\/\"><span style=\"font-weight: 400\">Site do cliente da API do Postman<\/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\">Arquivos Postman no Github para o 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\">Documenta\u00e7\u00e3o de amostra do Couchbase Travel<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><a href=\"https:\/\/docs.docker.com\/get-docker\/\"><span style=\"font-weight: 400\">Site de download do Docker<\/span><\/a><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Comece a usar <\/span><a href=\"https:\/\/cloud.couchbase.com\"><span style=\"font-weight: 400\">Couchbase Capella<\/span><\/a><span style=\"font-weight: 400\"> - na nuvem, com uma avalia\u00e7\u00e3o gratuita (n\u00e3o \u00e9 necess\u00e1rio cart\u00e3o de cr\u00e9dito)<\/span><\/li>\n<\/ul>","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>","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.9 (Yoast SEO v25.9) - 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\/pt\/postman-collections-for-sync-gateway-administration\/\" \/>\n<meta property=\"og:locale\" content=\"pt_BR\" \/>\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\/pt\/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 minutos\" \/>\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\":\"pt-BR\",\"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\":\"pt-BR\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@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\":\"pt-BR\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/www.couchbase.com\/blog\/#organization\",\"name\":\"The Couchbase Blog\",\"url\":\"https:\/\/www.couchbase.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"pt-BR\",\"@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\":\"pt-BR\",\"@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\/pt\/author\/priya-rajagopalcouchbase-com\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Postman Collections for Sync Gateway Administration - The Couchbase Blog","description":"Esta postagem do blog mostra como usar o cliente da API Postman para configurar, administrar e interagir com o Sync Gateway por meio da interface REST.","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\/pt\/postman-collections-for-sync-gateway-administration\/","og_locale":"pt_BR","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\/pt\/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 minutos"},"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":"pt-BR","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":"Esta postagem do blog mostra como usar o cliente da API Postman para configurar, administrar e interagir com o Sync Gateway por meio da interface REST.","breadcrumb":{"@id":"https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/#breadcrumb"},"inLanguage":"pt-BR","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.couchbase.com\/blog\/postman-collections-for-sync-gateway-administration\/"]}]},{"@type":"ImageObject","inLanguage":"pt-BR","@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":"Blog do Couchbase","description":"Couchbase, o banco de dados NoSQL","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":"pt-BR"},{"@type":"Organization","@id":"https:\/\/www.couchbase.com\/blog\/#organization","name":"Blog do Couchbase","url":"https:\/\/www.couchbase.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"pt-BR","@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, Diretora S\u00eanior, Gerenciamento de Produtos","image":{"@type":"ImageObject","inLanguage":"pt-BR","@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 \u00e9 diretora s\u00eanior de gerenciamento de produtos da Couchbase, respons\u00e1vel pelas plataformas de desenvolvedor para a nuvem e a borda. Ela desenvolve software profissionalmente h\u00e1 mais de 20 anos em v\u00e1rios cargos t\u00e9cnicos e de lideran\u00e7a de produtos, com mais de 10 anos de foco em tecnologias m\u00f3veis. Como delegada de padr\u00f5es de IPTV da TISPAN, ela foi uma das principais colaboradoras das especifica\u00e7\u00f5es de padr\u00f5es de IPTV. Ela tem 22 patentes nas \u00e1reas de rede e seguran\u00e7a de plataforma.","sameAs":["https:\/\/x.com\/rajagp"],"url":"https:\/\/www.couchbase.com\/blog\/pt\/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 \u00e9 diretora s\u00eanior de gerenciamento de produtos da Couchbase, respons\u00e1vel pelas plataformas de desenvolvedor para a nuvem e a borda. Ela desenvolve software profissionalmente h\u00e1 mais de 20 anos em v\u00e1rios cargos t\u00e9cnicos e de lideran\u00e7a de produtos, com mais de 10 anos de foco em tecnologias m\u00f3veis. Como delegada de padr\u00f5es de IPTV da TISPAN, ela foi uma das principais colaboradoras das especifica\u00e7\u00f5es de padr\u00f5es de IPTV. Ela tem 22 patentes nas \u00e1reas de rede e seguran\u00e7a de plataforma."}],"_links":{"self":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/12845","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/users\/1423"}],"replies":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/comments?post=12845"}],"version-history":[{"count":0,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/posts\/12845\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media\/12541"}],"wp:attachment":[{"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/media?parent=12845"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/categories?post=12845"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/tags?post=12845"},{"taxonomy":"author","embeddable":true,"href":"https:\/\/www.couchbase.com\/blog\/pt\/wp-json\/wp\/v2\/ppma_author?post=12845"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}