{"info":{"_postman_id":"56d9d58e-49ef-450a-8f77-249376260dea","name":"Cookenu","description":"<html><head></head><body><p><strong>Rede social de receitas. Compartilhe suas melhores receitas com a Labenu.</strong></p>\n<p>As receitas são compartilhadas por todas as pessoas cadastradas, então atente-se ao que você está digitando para evitar problemas.</p>\n<p>Observação 1: <em>todos os endpoints são autenticados e necessitam de token, exceto o login e o signup.</em></p>\n<p>Observação 2: <em>a API se desliga depois de 15 minutos inativa e demora aproximadamente 30 segundos para reiniciar na primeira requisição.</em></p>\n<p><strong>BASE_URL =</strong> <a href=\"https://api-cookenu.onrender.com\"><strong>https://api-cookenu.onrender.com</strong></a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"21151478","collectionId":"56d9d58e-49ef-450a-8f77-249376260dea","publishedId":"2s8YzMZRju","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-05T12:08:03.000Z"},"item":[{"name":"Signup","id":"d159e23d-1de9-40fb-b4d9-2db1cc2d9464","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Fulana\",\r\n    \"email\": \"fulana@gmail.com\",\r\n    \"password\": \"fulana123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/user/signup","description":"<p><strong>Endpoint de cadastro de nova conta.</strong></p>\n","urlObject":{"path":["user","signup"],"host":["https://api-cookenu.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"a68fe3c1-091b-4d3a-9b28-0a7288cd78e9","name":"Signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Fulana\",\r\n    \"email\": \"fulana@gmail.com\",\r\n    \"password\": \"fulana123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/user/signup"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"263"},{"key":"ETag","value":"W/\"107-T8G6vA3xAaC3XHNRuRH5FrR7Nuw\""},{"key":"Date","value":"Mon, 05 Dec 2022 11:42:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Cadastro realizado com sucesso\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NDksImV4cCI6MTY3MDMyNjk0OX0.95QDI7ra_59UeK08DN99eE69-EkEb1DBzZITcSOe0hI\"\n}"}],"_postman_id":"d159e23d-1de9-40fb-b4d9-2db1cc2d9464"},{"name":"Login","id":"f7e17810-5cba-494d-bbca-a10423818eb2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"fulana@gmail.com\",\r\n    \"password\": \"fulana123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/user/login","description":"<p><strong>Endpoint de login.</strong></p>\n","urlObject":{"path":["user","login"],"host":["https://api-cookenu.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"f6eb9f08-0d84-4f0b-aa7c-0e405f43f752","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"fulana@gmail.com\",\r\n    \"password\": \"fulana123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/user/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"260"},{"key":"ETag","value":"W/\"104-dRmx5xitREvvT42VhCz/De9B8PQ\""},{"key":"Date","value":"Mon, 05 Dec 2022 11:42:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Login realizado com sucesso\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k\"\n}"}],"_postman_id":"f7e17810-5cba-494d-bbca-a10423818eb2"},{"name":"Get all recipes","id":"4d436a3c-1b1b-41f7-842b-bbcaa6db60b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"url":"https://api-cookenu.onrender.com/recipe/all","description":"<p><strong>Endpoint que retorna todas as receitas cadastradas no sistema (id, title e imageUrl). Seu foco é gerar a lista que será mapeada em cards no front-end.</strong></p>\n<p>Observação: esse endpoint só retorna id, title e imageUrl. Os detalhes mais específicos podem ser acessados no próximo endpoint (busca por detalhes).</p>\n","urlObject":{"path":["recipe","all"],"host":["https://api-cookenu.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"810b456c-db67-4222-abc8-e9be8fd6ffca","name":"Get all recipes","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"url":"https://api-cookenu.onrender.com/recipe/all"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"736"},{"key":"ETag","value":"W/\"2e0-p+Hh1koFXveQWWKZdEBUox7/qSg\""},{"key":"Date","value":"Mon, 05 Dec 2022 11:42:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"2d78c209-b285-405d-bd23-7793e4ed26b0\",\n        \"title\": \"Misto quente de forno\",\n        \"imageUrl\": \"https://comidinhasdochef.com/wp-content/uploads/2016/02/Misto-Quente-de-Forno.jpg\"\n    },\n    {\n        \"id\": \"5b75ce30-f858-4f00-83d1-e86249622523\",\n        \"title\": \"Caipirinha\",\n        \"imageUrl\": \"https://img.itdg.com.br/images/recipes/000/128/825/319875/319875_original.jpg\"\n    },\n    {\n        \"id\": \"8c014c69-7867-4582-a23e-bb56e21fe16b\",\n        \"title\": \"Picolé salada de frutas\",\n        \"imageUrl\": \"https://img.itdg.com.br/tdg/images/recipes/000/143/411/89302/89302_original.jpg?mode=crop&width=710&height=400\"\n    },\n    {\n        \"id\": \"a5d396b8-7e5c-4a45-9ac0-fed7dd517319\",\n        \"title\": \"Dadinho de tapioca\",\n        \"imageUrl\": \"https://www.mariareceita.com.br/wp-content/uploads/2022/03/receita-dadinho-tapioca-facil-original-1200x900.jpg\"\n    }\n]"}],"_postman_id":"4d436a3c-1b1b-41f7-842b-bbcaa6db60b2"},{"name":"Get recipe details by id","id":"2d3a0439-556e-4200-97e5-039d3574a078","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAzNDEwNDQsImV4cCI6MTY3MDQyNzQ0NH0.iIWommBuQhsQGjASvVDfQBOofkBIhIOlex6--TZ3vCY","type":"text"}],"url":"https://api-cookenu.onrender.com/recipe/:id","description":"<p><strong>Endpoint que retorna os detalhes de uma receita específica selecionada via id (path params).</strong></p>\n<p>Seu foco é ser utilizado na página de detalhes de cada receita no front-end.</p>\n","urlObject":{"path":["recipe",":id"],"host":["https://api-cookenu.onrender.com"],"query":[{"disabled":true,"key":"","value":""}],"variable":[{"type":"any","value":"a5d396b8-7e5c-4a45-9ac0-fed7dd517319","key":"id"}]}},"response":[{"id":"af5ba869-7b12-4c7d-ab3d-4c62743f1876","name":"Get recipe details by id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAzNDEwNDQsImV4cCI6MTY3MDQyNzQ0NH0.iIWommBuQhsQGjASvVDfQBOofkBIhIOlex6--TZ3vCY","type":"text"}],"url":{"raw":"https://api-cookenu.onrender.com/recipe/:id","host":["https://api-cookenu.onrender.com"],"path":["recipe",":id"],"query":[{"key":"","value":"","type":"text","disabled":true}],"variable":[{"key":"id","value":"a5d396b8-7e5c-4a45-9ac0-fed7dd517319"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Tue, 06 Dec 2022 15:37:41 GMT"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Connection","value":"keep-alive"},{"key":"CF-Ray","value":"77561aae788000e2-GRU"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"ETag","value":"W/\"3a4-sk45vdeX295jbNYTVcgkwUCRZog\""},{"key":"Vary","value":"Accept-Encoding"},{"key":"CF-Cache-Status","value":"DYNAMIC"},{"key":"x-powered-by","value":"Express"},{"key":"Server","value":"cloudflare"},{"key":"Content-Encoding","value":"br"},{"key":"alt-svc","value":"h3=\":443\"; ma=86400, h3-29=\":443\"; ma=86400"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": \"a5d396b8-7e5c-4a45-9ac0-fed7dd517319\",\n    \"title\": \"Dadinho de tapioca\",\n    \"description\": \"Aqueça o leite em uma panela. Quando o leite estiver bem quente, desligue o fogo, adicione o queijo coalho ralado e continue mexendo. Logo em seguida adicione a farinha de tapioca granulada e continue mexendo. Adicione o sal e pimenta a gosto. Pare de mexer quando todos os ingredientes estiverem bem misturados. Despeje em uma forma coberta com papel filme (pvc), cubra em cima também e leve para a geladeira por duas horas. Depois retire da geladeira, corte em quadradinhos (dadinhos) e frite aos poucos em óleo quente ou coloque no forno até dourar. Sirva em seguida acompanhado da geleia de pimenta agridoce.\",\n    \"createdAt\": \"01/12/2022\",\n    \"imageUrl\": \"https://www.mariareceita.com.br/wp-content/uploads/2022/03/receita-dadinho-tapioca-facil-original-1200x900.jpg\",\n    \"creatorId\": \"5a1b4ed5-6fab-4ca5-988f-5670467028ce\",\n    \"creatorName\": \"Astrodev\"\n}"}],"_postman_id":"2d3a0439-556e-4200-97e5-039d3574a078"},{"name":"Create recipe","id":"cc602f51-a25d-4011-9abf-6a8b7619812f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Mousse de Limão\",\r\n    \"description\": \"Coloque no liquidificador o creme de leite (com soro mesmo) e o leite condensado. Bata um pouco e depois vá acrescentando o suco do limão, aos poucos. Ele vai ficar bem consistente, leve à geladeira.\",\r\n    \"imageUrl\": \"https://img.itdg.com.br/tdg/images/recipes/000/001/621/38640/38640_original.jpg?mode=crop&width=710&height=400\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/recipe","description":"<p><strong>Endpoint de criação de receita.</strong></p>\n<p>Observação 1: o campo <em>description</em> é uma string, então toda descrição da receita precisa estar em um único parágrafo! Referencie o exemplo do body caso tenha dúvidas.</p>\n<p>Observação 2: tente utilizar links válidos nas imagens para evitar problemas no layout do front-end e teste-os antes de criar a receita.</p>\n","urlObject":{"path":["recipe"],"host":["https://api-cookenu.onrender.com"],"query":[],"variable":[]}},"response":[{"id":"11b15553-4235-4674-86c2-12be8883e3fd","name":"Create recipe","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Mousse de Limão\",\r\n    \"description\": \"Coloque no liquidificador o creme de leite (com soro mesmo) e o leite condensado. Bata um pouco e depois vá acrescentando o suco do limão, aos poucos. Ele vai ficar bem consistente, leve à geladeira.\",\r\n    \"imageUrl\": \"https://img.itdg.com.br/tdg/images/recipes/000/001/621/38640/38640_original.jpg?mode=crop&width=710&height=400\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://api-cookenu.onrender.com/recipe"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"40"},{"key":"ETag","value":"W/\"28-DIgt8mOmyDRvpxK0jli5kNYNfGQ\""},{"key":"Date","value":"Mon, 05 Dec 2022 11:43:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Receita criada com sucesso\"\n}"}],"_postman_id":"cc602f51-a25d-4011-9abf-6a8b7619812f"},{"name":"Delete recipe by id","id":"14fb1fd6-fd6f-4352-9b3d-e75af530d66b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"url":"https://api-cookenu.onrender.com/recipe/:id","description":"<p><strong>Endpoint de deletar receita por id (path params).</strong></p>\n<p>Somente a conta que criou a receita pode deletá-la, ou seja, você não irá conseguir deletar receitas de outras pessoas.</p>\n","urlObject":{"path":["recipe",":id"],"host":["https://api-cookenu.onrender.com"],"query":[],"variable":[{"type":"any","value":"0b5b1311-af6b-4227-a6d3-0b6d3c79f1b1","key":"id"}]}},"response":[{"id":"58e7880f-24ad-4dfd-b89e-8f38694d428d","name":"Delete recipe by id","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImRmYjlkN2QyLWJlMzgtNGQwNS05ZjE5LWNjNTcxMTUzNjYxYiIsIm5hbWUiOiJGdWxhbmEiLCJpYXQiOjE2NzAyNDA1NTMsImV4cCI6MTY3MDMyNjk1M30.s3mdWHVivzzrcffF-8Iw5kYPJK7C0XoOgIdFSfb298k","type":"text"}],"url":{"raw":"https://api-cookenu.onrender.com/recipe/:id","host":["https://api-cookenu.onrender.com"],"path":["recipe",":id"],"variable":[{"key":"id","value":"0b5b1311-af6b-4227-a6d3-0b6d3c79f1b1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"42"},{"key":"ETag","value":"W/\"2a-snCpVYtiUqjA4LWZWBirytwibgg\""},{"key":"Date","value":"Mon, 05 Dec 2022 11:49:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Receita deletada com sucesso\"\n}"}],"_postman_id":"14fb1fd6-fd6f-4352-9b3d-e75af530d66b"}],"event":[{"listen":"prerequest","script":{"id":"a89ccf40-88af-4e33-8894-ae20f51f43c3","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"67acdfea-ec98-4612-b4f7-1676f3a64a82","type":"text/javascript","exec":[""]}}],"variable":[{"key":"BASE_URL","value":"https://api-cookenu.onrender.com","type":"string"}]}