{"info":{"_postman_id":"52734776-c67f-466a-b69a-6a8cb7444a9b","name":"TemNoBairro","description":"<html><head></head><body><p>Backend do projeto Tem no bairro</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10890607","collectionId":"52734776-c67f-466a-b69a-6a8cb7444a9b","publishedId":"SzfAz777","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-06T18:13:18.000Z"},"item":[{"name":"Seller","item":[{"name":"Get all sellers","id":"13846615-bec6-40a5-9e92-9362c14e9ca4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/seller","description":"<p>Get all sellers in database</p>\n","urlObject":{"protocol":"https","path":["api","v1","seller"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"13846615-bec6-40a5-9e92-9362c14e9ca4"},{"name":"Get a seller","id":"d5d66686-3bd4-4b5b-809e-df3828e9038b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/seller/27","description":"<p>Gets a seller by the param id</p>\n","urlObject":{"protocol":"https","path":["api","v1","seller","27"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d5d66686-3bd4-4b5b-809e-df3828e9038b"},{"name":"Delete a seller","id":"70a9c980-94b2-4920-ac07-ac6103a63fb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/seller/32","description":"<p>Deletes a seller given the respective id</p>\n","urlObject":{"protocol":"https","path":["api","v1","seller","32"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"70a9c980-94b2-4920-ac07-ac6103a63fb4"},{"name":"Update seller","id":"48917bb3-489f-4da2-8950-eacef9b6a820","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"name\": \"Felipe Breno\" \n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/seller/2","description":"<p>Patch a seller</p>\n","urlObject":{"protocol":"https","path":["api","v1","seller","2"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"48917bb3-489f-4da2-8950-eacef9b6a820"}],"id":"663d63b6-57bb-4639-a538-61bb55198cb0","description":"<p>Possible requests in the seller route</p>\n","event":[{"listen":"prerequest","script":{"id":"7ec3c4d0-c2b9-4f5d-9a9c-ed730c5991bd","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"40eaa44a-3896-43eb-bb9b-8f1783cc7ace","type":"text/javascript","exec":[""]}}],"_postman_id":"663d63b6-57bb-4639-a538-61bb55198cb0"},{"name":"Commerce","item":[{"name":"Get All Commerces","id":"85542291-683e-4731-b369-19f61ff32473","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerce/2","description":"<p>Get all commerces in database</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerce","2"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"85542291-683e-4731-b369-19f61ff32473"},{"name":"Get a Commerce","id":"1144cfae-2dca-40dc-b3c0-613d0981aab1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerceGet/22","description":"<p>Get a commerce with a given id param</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerceGet","22"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1144cfae-2dca-40dc-b3c0-613d0981aab1"},{"name":"Get Commerces By City","id":"aac2bf4b-d794-4ce0-8d1f-593d6016f1f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerceGet/city/Crato","urlObject":{"protocol":"https","path":["api","v1","commerceGet","city","Crato"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"aac2bf4b-d794-4ce0-8d1f-593d6016f1f3"},{"name":"Get Commerces By Neighborhood","id":"d8f88bf3-b524-4b3f-8963-cceb03a5b5de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerceGet/neighborhood/antonio vieira","description":"<p>Get the commerces from a given neighborhood</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerceGet","neighborhood","antonio vieira"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"d8f88bf3-b524-4b3f-8963-cceb03a5b5de"},{"name":"Create a Commerce","id":"3dc57741-0a67-4592-bae8-b129ed37cd49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n        \"id_seller\": 27,\n        \"name\": \"Venda 1\",\n        \"category\": \"Supplier\",\n        \"zipcode\": 63040795,\n        \"street\": \"Teste da silva\",\n        \"number\": \"923\",\n        \"neighborhood\": \"antonio vieira\",\n        \"complement\": null,\n        \"city\": \"Juazeiro do Norte\",\n        \"state\": \"CE\",\n        \"open_hours\": \"asdasd\",\n        \"open_days\": [\n            \"Segunda\",\n            \"Terça\",\n            \"Quarta\"\n        ]\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerce","description":"<p>Creates a commerce with request body</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerce"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3dc57741-0a67-4592-bae8-b129ed37cd49"},{"name":"Delete a Commerce","id":"8ec0bfea-f2d7-4cb4-9a7d-d62006620e7f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerce/1","description":"<p>Deletes a commerce with a given id param</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerce","1"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"8ec0bfea-f2d7-4cb4-9a7d-d62006620e7f"},{"name":"Update a Commerce","id":"f9e5d889-c5c1-4698-95e5-a3f090b4941d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\n\t\"zipcode\": 63045\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/commerce/2","description":"<p>Patch a commerce</p>\n","urlObject":{"protocol":"https","path":["api","v1","commerce","2"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"f9e5d889-c5c1-4698-95e5-a3f090b4941d"}],"id":"72e4ead0-7573-42ba-9a33-9eafcda86ffb","_postman_id":"72e4ead0-7573-42ba-9a33-9eafcda86ffb","description":""},{"name":"Login","item":[{"name":"Login","id":"6392ac59-65e3-45fa-8832-8539638de557","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"felipebreno106@gmail.com\",\n\t\"password\": \"Felpsbren0#\"\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/login","description":"<p>Login do usuario seller</p>\n","urlObject":{"protocol":"https","path":["api","v1","login"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"6392ac59-65e3-45fa-8832-8539638de557"}],"id":"59daffa8-8b93-4405-aeea-c1362ea814b3","_postman_id":"59daffa8-8b93-4405-aeea-c1362ea814b3","description":""},{"name":"Register","item":[{"name":"Register","id":"3362c9be-5939-4d60-8319-76f4cb318943","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n\t\"name\": \"Felipe Breno de Almeida Fideles\",\r\n    \"email\": \"felipebreno106@gmail.com\",\r\n    \"phone\": \"88999194962\",\r\n    \"password\": \"Felpsbren0#\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/register","description":"<p>Registro do usuario seller</p>\n","urlObject":{"protocol":"https","path":["api","v1","register"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3362c9be-5939-4d60-8319-76f4cb318943"}],"id":"a3211c66-ba9a-456d-ae4d-9e044f92d73a","_postman_id":"a3211c66-ba9a-456d-ae4d-9e044f92d73a","description":""},{"name":"Product","item":[{"name":"Create a Product","id":"1121ce2a-4d67-4aea-b5b2-fad56784584a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"id_commerce\": \"27\",\r\n    \"name\": \"Arroz Branco Tipo 1\",\r\n    \"available\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/product","urlObject":{"protocol":"https","path":["api","v1","product"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"1121ce2a-4d67-4aea-b5b2-fad56784584a"},{"name":"Update a Product","id":"213ce8bb-0f7f-48e9-8abb-7cea96d8942f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"available\": false\r\n}","options":{"raw":{"language":"json"}}},"url":"https://temnobairro-backend.herokuapp.com/api/v1/product/1","urlObject":{"protocol":"https","path":["api","v1","product","1"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"213ce8bb-0f7f-48e9-8abb-7cea96d8942f"},{"name":"Delete a Product","id":"3b383c79-2f7f-4502-9238-b3703c23499e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"https://temnobairro-backend.herokuapp.com/api/v1/product/1","urlObject":{"protocol":"https","path":["api","v1","product","1"],"host":["temnobairro-backend","herokuapp","com"],"query":[],"variable":[]}},"response":[],"_postman_id":"3b383c79-2f7f-4502-9238-b3703c23499e"}],"id":"3f82d6f0-acba-454e-ae4f-b57645fe9712","_postman_id":"3f82d6f0-acba-454e-ae4f-b57645fe9712","description":""}]}