{"info":{"_postman_id":"035e09a8-2ef0-45df-bceb-7ed3f54f85fb","name":"Connectour","description":"<html><head></head><body><h2 id=\"introduction\">Introduction</h2>\n<p>API destinada para conectar secretarias de turismo do Estado.</p>\n<h2 id=\"overview\">Overview</h2>\n<p>A API - ConnecTour vem para facilitar a comunicação entre as Secretarias de Turismo de municípios de um mesmo Estado para que as informações sobre seus atrativos sejam disponibilizadas e atualizadas entre os profissionais dos Centros de Atendimento ao Turista.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"20977005","collectionId":"035e09a8-2ef0-45df-bceb-7ed3f54f85fb","publishedId":"UzXRRvEB","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-07-29T16:29:41.000Z"},"item":[{"name":"createUser","id":"769e4ac9-27a0-4742-96c9-e7e445463ec3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{   \"name\": \"Eliza\",\r\n    \"surname\": \"Pimentel\",\r\n    \"userName\": \"elizapimentel\",\r\n    \"county\": \"Olinda\",\r\n    \"role\": \"admin\",\r\n    \"registrationNumber\": 55441,\r\n    \"password\": \"1111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8090/user/signup","description":"<p><a href=\"https://connectour.herokuapp.com/user/signup\">https://connectour.herokuapp.com/user/signup</a></p>\n","urlObject":{"port":"8090","path":["user","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"769e4ac9-27a0-4742-96c9-e7e445463ec3"},{"name":"login","id":"397d8e62-8aa7-41e9-9272-c69a39dec994","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmUzNDA1N2QyNzA1ZjM0ZmUxZjQ1NzIiLCJpYXQiOjE2NTkwNjAzMTEsImV4cCI6MTY1OTE0NjcxMX0.h752inEq-tSu1kuraFb6UVwPhMdxRy2x04xk-56fi6M","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userName\": \"elizapimentel\",\r\n    \"password\": \"1111\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://connectour.herokuapp.com/user/login","description":"<p><a href=\"https://connectour.herokuapp.com/user/login\">https://connectour.herokuapp.com/user/login</a></p>\n","urlObject":{"protocol":"https","path":["user","login"],"host":["connectour","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"397d8e62-8aa7-41e9-9272-c69a39dec994"},{"name":"getAllUsers","id":"f568f168-5c9f-4d6e-a56e-f7782a29e680","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODZkYzg2N2E5ODNhYjEzYjRjZmMiLCJpYXQiOjE2NTkxNDM5MDcsImV4cCI6MTY1OTIzMDMwN30.Do8cPnh7hyA459cS1COT97Ligiyk0F3c92-VFll9aY4","type":"text"}],"url":"localhost:8090/user/all","description":"<p><a href=\"https://connectour.herokuapp.com/user/all\">https://connectour.herokuapp.com/user/all</a></p>\n","urlObject":{"port":"8090","path":["user","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f568f168-5c9f-4d6e-a56e-f7782a29e680"},{"name":"get reg number","id":"94f4f3c4-6347-4a9e-b7d2-6d9ad4829435","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODI1Mzg2N2E5ODNhYjEzYjRjZTgiLCJpYXQiOjE2NTkxNDI3NjUsImV4cCI6MTY1OTIyOTE2NX0.2KWpxpVU8_VHEVp9B_DI1hEm0BcPnIw92VYPluBp-9s","type":"text"}],"url":"localhost:8090/user/regnumber?regNumber=55441","description":"<p><a href=\"https://connectour.herokuapp.com/user/regnumber\">https://connectour.herokuapp.com/user/regnumber</a></p>\n","urlObject":{"port":"8090","path":["user","regnumber"],"host":["localhost"],"query":[{"key":"regNumber","value":"55441"}],"variable":[]}},"response":[],"_postman_id":"94f4f3c4-6347-4a9e-b7d2-6d9ad4829435"},{"name":"update user","id":"132c67e7-4d00-4d19-b71a-08ddc1805052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODI1Mzg2N2E5ODNhYjEzYjRjZTgiLCJpYXQiOjE2NTkxNDI3NjUsImV4cCI6MTY1OTIyOTE2NX0.2KWpxpVU8_VHEVp9B_DI1hEm0BcPnIw92VYPluBp-9s","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"name\": \"Eliza\",\r\n        \"surname\": \"Pimentel Pereira\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"localhost:8090/user/update/62e48253867a983ab13b4ce8","description":"<p><a href=\"https://connectour.herokuapp.com/user/update/:id\">https://connectour.herokuapp.com/user/update/:id</a></p>\n","urlObject":{"port":"8090","path":["user","update","62e48253867a983ab13b4ce8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"132c67e7-4d00-4d19-b71a-08ddc1805052"},{"name":"update password","id":"cfee5eb7-53ce-4907-a599-9b1ca72f8e91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODI1Mzg2N2E5ODNhYjEzYjRjZTgiLCJpYXQiOjE2NTkxNDI3NjUsImV4cCI6MTY1OTIyOTE2NX0.2KWpxpVU8_VHEVp9B_DI1hEm0BcPnIw92VYPluBp-9s","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userName\": \"elizapimentel\",\r\n    \"password\": \"2222\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8090/user/updatePassword/62e48253867a983ab13b4ce8","description":"<p>StartFragment</p>\n<p><a href=\"https://connectour.herokuapp.com/user/updatePassword/:id\">https://connectour.herokuapp.com/user/updatePassword/:id</a></p>\n<p>EndFragment</p>\n","urlObject":{"port":"8090","path":["user","updatePassword","62e48253867a983ab13b4ce8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cfee5eb7-53ce-4907-a599-9b1ca72f8e91"},{"name":"delete user","id":"d8012063-7136-4f98-9139-e62fad046296","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODI1Mzg2N2E5ODNhYjEzYjRjZTgiLCJpYXQiOjE2NTkxNDI3NjUsImV4cCI6MTY1OTIyOTE2NX0.2KWpxpVU8_VHEVp9B_DI1hEm0BcPnIw92VYPluBp-9s","type":"text"}],"url":"localhost:8090/user/delete/62e48253867a983ab13b4ce8","description":"<p><a href=\"https://connectour.herokuapp.com/user/delete/:id\">https://connectour.herokuapp.com/user/delete/:id</a></p>\n","urlObject":{"port":"8090","path":["user","delete","62e48253867a983ab13b4ce8"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8012063-7136-4f98-9139-e62fad046296"},{"name":"create post","id":"1f708579-1847-41e4-9a00-d57aa9ef027c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmUzNDA1N2QyNzA1ZjM0ZmUxZjQ1NzIiLCJpYXQiOjE2NTkwNjAzNjgsImV4cCI6MTY1OTE0Njc2OH0.4zAWEIo_ohj2hVTFOAqmqYDDvGd1NqqjhDRj-fAXOlw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"city\": \"Petrolina\",\r\n        \"attractionName\": \"Museu Ana das Carrancas\",\r\n        \"opening_hours\": \r\n            {\r\n               \"days\": \"seg - sex\",\r\n               \"starts\": \"09:00\",\r\n               \"ends\": \"17:00\"\r\n            }\r\n        ,\r\n        \"address\": \"R. Martiniano Cândido Silva - COHAB Massangano\",\r\n        \"description\": \"Centro de artesanato em homenagem a Ana das Carrancas\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"localhost:8090/post/create","description":"<p><a href=\"https://connectour.herokuapp.com/post/create\">https://connectour.herokuapp.com/post/create</a></p>\n","urlObject":{"port":"8090","path":["post","create"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f708579-1847-41e4-9a00-d57aa9ef027c"},{"name":"all post","id":"0c56ecb1-50b1-445a-ad24-c9dc533a5054","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmU0ODZkYzg2N2E5ODNhYjEzYjRjZmMiLCJpYXQiOjE2NTkxNDQxMzMsImV4cCI6MTY1OTIzMDUzM30.JgAdf4yrnPVMdPOc-1x3-31adlxBGmfYaBkKm6g-4UA","type":"text"}],"url":"localhost:8090/post/all","description":"<p><a href=\"https://connectour.herokuapp.com/post/all\">https://connectour.herokuapp.com/post/all</a></p>\n","urlObject":{"port":"8090","path":["post","all"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"0c56ecb1-50b1-445a-ad24-c9dc533a5054"},{"name":"get by attractions name","id":"0174a49e-d57f-4cf6-8b48-f7e12b299f40","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmUzNDA1N2QyNzA1ZjM0ZmUxZjQ1NzIiLCJpYXQiOjE2NTkwNjAzNjgsImV4cCI6MTY1OTE0Njc2OH0.4zAWEIo_ohj2hVTFOAqmqYDDvGd1NqqjhDRj-fAXOlw","type":"text"}],"url":"localhost:8090/post/name?attractionName=paç","description":"<p>procurar atrativo por nome e/ou município</p>\n","urlObject":{"port":"8090","path":["post","name"],"host":["localhost"],"query":[{"key":"attractionName","value":"paç"}],"variable":[]}},"response":[],"_postman_id":"0174a49e-d57f-4cf6-8b48-f7e12b299f40"},{"name":"update post","id":"70c84af9-961f-4ddf-bec1-30a575d99ddb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmUzNDA1N2QyNzA1ZjM0ZmUxZjQ1NzIiLCJpYXQiOjE2NTkwNjAzNjgsImV4cCI6MTY1OTE0Njc2OH0.4zAWEIo_ohj2hVTFOAqmqYDDvGd1NqqjhDRj-fAXOlw","type":"text"}],"body":{"mode":"raw","raw":"{\r\n        \"_id\": \"62e034cf96a0f2f4bf416555\",\r\n        \"city\": \"Caruaru\",\r\n        \"attractionName\": \"Casa Museu Mestre Vitalino\",\r\n        \"opening_hours\": [\r\n            {\r\n            \"days\": \"qui - sex\",\r\n            \"starts\": \"10:00\",\r\n            \"ends\": \"17:00\"\r\n        },\r\n        {\r\n            \"days\": \"sab - dom\",\r\n            \"starts\": \"10:00\",\r\n            \"ends\": \"18:00\"\r\n        }\r\n        ],\r\n        \"address\": \"Alto do Moura\",\r\n        \"description\": \"artesanatos\"\r\n    }","options":{"raw":{"language":"json"}}},"url":"localhost:8090/post/update/62e0388b96a0f2f4bf416567","description":"<p><a href=\"https://connectour.herokuapp.com/post/update/:id\">https://connectour.herokuapp.com/post/update/:id</a></p>\n","urlObject":{"port":"8090","path":["post","update","62e0388b96a0f2f4bf416567"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"70c84af9-961f-4ddf-bec1-30a575d99ddb"},{"name":"delete post","id":"41dea1d3-20fa-4126-a92b-b4af4dfd205c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"x-access-token","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MmUzNDA1N2QyNzA1ZjM0ZmUxZjQ1NzIiLCJpYXQiOjE2NTkwNjAzNjgsImV4cCI6MTY1OTE0Njc2OH0.4zAWEIo_ohj2hVTFOAqmqYDDvGd1NqqjhDRj-fAXOlw","type":"text"}],"url":"localhost:8090/post/delete/62e43c93bfaf72a6dda079d0","description":"<p><a href=\"https://connectour.herokuapp.com/post/delete/:id\">https://connectour.herokuapp.com/post/delete/:id</a></p>\n","urlObject":{"port":"8090","path":["post","delete","62e43c93bfaf72a6dda079d0"],"host":["localhost"],"query":[{"disabled":true,"key":"","value":""}],"variable":[]}},"response":[],"_postman_id":"41dea1d3-20fa-4126-a92b-b4af4dfd205c"}]}