{"info":{"_postman_id":"45eb7d20-355c-4735-a797-f202f53c039a","name":"Cookenu","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18389352","collectionId":"45eb7d20-355c-4735-a797-f202f53c039a","publishedId":"UVktoYAD","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-03-02T20:20:11.000Z"},"item":[{"name":"Usuários","item":[{"name":"Criar usuário","id":"544e92e2-660a-444d-9ee5-fb51bbf84987","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Ricardo\",\r\n    \"email\": \"rlp.camara@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"role\": \"ADMIN\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/signup","description":"<p>Cria um novo usuário e as informações devem ser passadas via body.</p>\n<ul>\n<li><strong>password</strong> precisa ter, no mínimo, 6 caracteres</li>\n<li>as opções de <strong>role</strong> são: NORMAL e ADMIN</li>\n</ul>\n","urlObject":{"protocol":"https","path":["signup"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"ffc511c6-f0c3-487b-8001-2c2c01f4db56","name":"Criar usuário","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"Ricardo\",\r\n    \"email\": \"rlp.camara@gmail.com\",\r\n    \"password\": \"123456\",\r\n    \"role\": \"ADMIN\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/signup"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"259"},{"key":"Etag","value":"W/\"103-e3Y8Dqoa6CZ91cRKxE7tjeE63lo\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:21:41 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Usuário criado com sucesso\",\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0ODkwMSwiZXhwIjoxNjQ2MzM1MzAxfQ.9sYMqL6NV5sWh0x6ehuDG5IBHoKz7FkaFPUqsDfZ4gE\"\n}"}],"_postman_id":"544e92e2-660a-444d-9ee5-fb51bbf84987"},{"name":"Login","id":"cb751341-68bd-4e28-a590-0696abe37848","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rlp.camara@gmail.com\",\r\n    \"password\": \"61645\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/login","description":"<p>Login do usuário cadastrado. As informações devem ser passadas via body.</p>\n","urlObject":{"protocol":"https","path":["login"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"069f91b1-a75b-4ffb-a7ba-deffbad8cc13","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rlp.camara@gmail.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"219"},{"key":"Etag","value":"W/\"db-Xu+8/6j9f/VHmYW5AUMful6eOh4\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:26:48 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ\"\n}"}],"_postman_id":"cb751341-68bd-4e28-a590-0696abe37848"},{"name":"Pegar usuário pelo ID","id":"5a68b3fd-bdd7-486f-8808-8e05e87da9f0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/:id","description":"<p>Procura por um usuário através do <strong>id.</strong></p>\n<p>É necessário passar o <strong>id</strong> do usuário via path params e o <strong>token</strong> via headers.</p>\n","urlObject":{"protocol":"https","path":["user",":id"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"ffb1711d-09bf-45e1-9f26-0aa50762a0ef","key":"id"}]}},"response":[{"id":"5f801aff-8604-4637-9363-dd93f61c0251","name":"Pegar usuário pelo ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":{"raw":"https://desatinar-cookenu.herokuapp.com/user/:id","protocol":"https","host":["desatinar-cookenu","herokuapp","com"],"path":["user",":id"],"variable":[{"key":"id","value":"ffb1711d-09bf-45e1-9f26-0aa50762a0ef"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"102"},{"key":"Etag","value":"W/\"66-s3aCo/vXfXbXJxL2wHIPtDiFk2Q\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:30:08 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"ffb1711d-09bf-45e1-9f26-0aa50762a0ef\",\n        \"name\": \"Rodrigo Santos\",\n        \"email\": \"rodrigosdn@gmail.com\"\n    }\n]"}],"_postman_id":"5a68b3fd-bdd7-486f-8808-8e05e87da9f0"},{"name":"Pegar perfil do usuário","id":"0a344017-2b04-4f27-81dc-19c8831904c5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/profile","description":"<p>Retorna as informações não sensíveis salvas no banco (<strong>id</strong>, <strong>name</strong> e <strong>email</strong>). É necessário passar o <strong>token</strong> via headers.</p>\n","urlObject":{"protocol":"https","path":["user","profile"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"1a4f420f-e4eb-4143-9058-e4dd8f6ffa58","name":"Pegar perfil do usuário","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/profile"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"95"},{"key":"Etag","value":"W/\"5f-pX5nqpQ1TiZA7rXkf7UMUX7lV6Q\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:35:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": \"d41c27b6-81a6-404a-ae98-2b179557456e\",\n        \"name\": \"Ricardo\",\n        \"email\": \"rlp.camara@gmail.com\"\n    }\n]"}],"_postman_id":"0a344017-2b04-4f27-81dc-19c8831904c5"},{"name":"Seguir usuário","id":"00e109f3-4497-4870-9245-4415798692e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/follow","description":"<p>Segue um usuário cadastrado. É necessário passar o <strong>userId</strong> via body e o <strong>token</strong> via headers.</p>\n","urlObject":{"protocol":"https","path":["user","follow"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"3b2fabe0-98ff-49ce-a49f-1df1003cb50e","name":"Seguir usuário","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"userId\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/follow"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"35"},{"key":"Etag","value":"W/\"23-5nNLq63BvSz5LM7hfBV2ZEOsN74\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:56:28 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Seguindo com sucesso.\"\n}"}],"_postman_id":"00e109f3-4497-4870-9245-4415798692e3"},{"name":"Deixar de seguir usuário","id":"72652d3c-c9a3-45e1-b354-0c51964e7cdf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/unfollow","description":"<p>Deixa de seguir um usuário cadastrado. É necessário passar o <strong>id</strong> via body e o <strong>token</strong> via headers.</p>\n","urlObject":{"protocol":"https","path":["user","unfollow"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"68fd651d-d404-4b50-ae1e-6b35e422f72e","name":"Deixar de seguir usuário","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"id\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/unfollow"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"27"},{"key":"Etag","value":"W/\"1b-pbCRHsqJnORcisHae+sG/5M8G+M\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:59:19 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Unfollow feito com sucesso."}],"_postman_id":"72652d3c-c9a3-45e1-b354-0c51964e7cdf"},{"name":"Pegar feed do usuário","id":"3794ace3-0f49-420c-bc8d-f7d52f412a60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjQwNjkwMywiZXhwIjoxNjQ2NDkzMzAzfQ.eWAzoIM3OjfC9mHcmQHDog3UekGiJfMw0HsfRPDW5o4","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/feed","description":"<p>Retorna todas as receitas de quem o usuário segue. É necessário passar o <strong>token</strong> via headers.</p>\n","urlObject":{"protocol":"https","path":["user","feed"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"acfa5d7d-6629-41c4-b82b-51b2df4399c6","name":"Pegar feed do usuário","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjQwNjkwMywiZXhwIjoxNjQ2NDkzMzAzfQ.eWAzoIM3OjfC9mHcmQHDog3UekGiJfMw0HsfRPDW5o4","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/feed"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"895"},{"key":"Etag","value":"W/\"37f-UAPZwVZo0BheCB/aUmWi1/Rn1qE\""},{"key":"Date","value":"Fri, 04 Mar 2022 15:21:58 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"recipes\": [\n        {\n            \"id\": \"5b0f0b18-0b29-43f9-acdc-d8168c542e08\",\n            \"title\": \"Bolo de laranja\",\n            \"description\": \"Quem não adora uma fatia de bolo de laranja na hora do lanche? Com um cafezinho, então, fica difícil de resistir! Algumas receitas utilizam apenas o suco da laranja, mas se puder usar a casca da fruta também é melhor ainda, né? Assim evita o desperdício. \",\n            \"createdAt\": \"24/02/2022\",\n            \"userId\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\",\n            \"userName\": \"Rodrigo\"\n        },\n        {\n            \"id\": \"57871a62-2f4a-4c75-88e4-0cff845584f6\",\n            \"title\": \"Dadinho de tapioca\",\n            \"description\": \"Vinda do Nordeste para conquistar todo o Brasil, a tapioca é o ingrediente perfeito para fazer receitas diferentes e saborosas. Por não conter glúten, esse ingrediente se popularizou entre a galera fitness, e entre quem quer fugir um pouco do pão.\",\n            \"createdAt\": \"25/02/2022\",\n            \"userId\": \"9c14f9da-23dc-458b-a2f9-662c871f3d8d\",\n            \"userName\": \"Rodrigo\"\n        }\n    ]\n}"}],"_postman_id":"3794ace3-0f49-420c-bc8d-f7d52f412a60"},{"name":"Deletar usuário","id":"125f0651-35f7-4c7d-99e4-f816559db069","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/user/delete/:id","description":"<p>Deleta um usuário do banco de dados. O role <strong>ADMIN</strong> pode deletar qualquer usuário e o role <strong>NORMAL</strong> só pode deletar o próprio usuário.</p>\n<ul>\n<li>é necessário passar o <strong>token</strong> via headers</li>\n<li>o <strong>id</strong> do usuário deve ser passado via path params</li>\n</ul>\n","urlObject":{"protocol":"https","path":["user","delete",":id"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"0e69e610-5036-480c-a651-bab0e77e28d0","key":"id"}]}},"response":[{"id":"91ac8db6-ebf0-4c21-9f58-e895cb74a39a","name":"Deletar usuário","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":{"raw":"https://desatinar-cookenu.herokuapp.com/user/delete/:id","protocol":"https","host":["desatinar-cookenu","herokuapp","com"],"path":["user","delete",":id"],"variable":[{"key":"id","value":"0e69e610-5036-480c-a651-bab0e77e28d0"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"17"},{"key":"Etag","value":"W/\"11-FCK1zdmfTluzY+Jdc9wGkd/19Ms\""},{"key":"Date","value":"Wed, 02 Mar 2022 20:10:25 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Usuário deletado"}],"_postman_id":"125f0651-35f7-4c7d-99e4-f816559db069"},{"name":"Recuperar senha","id":"9cb75c4a-54a5-40cf-a64c-7a80bd9bda90","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rlp.camara@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/recover","description":"<p>Gera uma nova senha para o usuário e a mesma é enviada para o <strong>email</strong> cadastrado. Deve ser passado o <strong>email</strong> cadastrado via body</p>\n","urlObject":{"protocol":"https","path":["user","recover"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"447d60b0-aade-44f5-82ef-ddaa063351ad","name":"Recuperar senha","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"rlp.camara@gmail.com\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/user/recover"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"43"},{"key":"Etag","value":"W/\"2b-OBvjbxqIntMisdgZ+d+0IisgzX0\""},{"key":"Date","value":"Wed, 02 Mar 2022 20:13:45 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Nova senha enviada para o email cadastrado."}],"_postman_id":"9cb75c4a-54a5-40cf-a64c-7a80bd9bda90"}],"id":"ba5f59c9-597c-493e-a334-8159fd5645fc","_postman_id":"ba5f59c9-597c-493e-a334-8159fd5645fc","description":""},{"name":"Receitas","item":[{"name":"Criar receita","id":"0f56271a-8d1e-40f7-9a4f-8c464430d4fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Purê de batata\",\r\n    \"description\": \"O purê de batata é um ótimo acompanhamento para as suas refeições. Ele pede poucos ingredientes e é menos calórico do que uma batata frita. Mesmo sendo fácil de fazer, sempre tem aquelas perguntas que surgem quando preparamos algo. Qual batata é melhor para fazer purê? Como evitar que ele fique aguado? Aqui está a receita para ajudar a tirar estas e outras dúvidas e para mostrar truques e receitas de como fazer um purê de batata delicioso.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/recipe","description":"<p>Cria uma nova receita.</p>\n<ul>\n<li>informações <strong>title</strong> e <strong>description</strong> devem ser passadas via body.</li>\n<li>é necessário passar o <strong>token</strong> via headers.</li>\n</ul>\n","urlObject":{"protocol":"https","path":["recipe"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"0f610e3c-6061-4b22-87d4-d74f1a5c832c","name":"Criar receita","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Purê de batata\",\r\n    \"description\": \"O purê de batata é um ótimo acompanhamento para as suas refeições. Ele pede poucos ingredientes e é menos calórico do que uma batata frita. Mesmo sendo fácil de fazer, sempre tem aquelas perguntas que surgem quando preparamos algo. Qual batata é melhor para fazer purê? Como evitar que ele fique aguado? Aqui está a receita para ajudar a tirar estas e outras dúvidas e para mostrar truques e receitas de como fazer um purê de batata delicioso.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/recipe"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"41"},{"key":"Etag","value":"W/\"29-/wH2FnM9ZL0AKUWlxkjXPNBzRXQ\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:48:33 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"Receita criada com sucesso!\"\n}"}],"_postman_id":"0f56271a-8d1e-40f7-9a4f-8c464430d4fc"},{"name":"Pegar receita pelo ID","id":"df1b56de-9016-4bb6-81ff-2f50ba01cc39","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/recipe/:id","description":"<p>Procura uma receita pelo <strong>id.</strong></p>\n<ul>\n<li>o <strong>id</strong> deve ser passado via path params</li>\n<li>o <strong>token</strong> deve ser passado via headers</li>\n</ul>\n","urlObject":{"protocol":"https","path":["recipe",":id"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"57871a62-2f4a-4c75-88e4-0cff845584f6","key":"id"}]}},"response":[{"id":"f3202faa-c7d8-46b3-9bc5-bee9ce76ad5a","name":"Pegar receita pelo ID","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":{"raw":"https://desatinar-cookenu.herokuapp.com/recipe/:id","protocol":"https","host":["desatinar-cookenu","herokuapp","com"],"path":["recipe",":id"],"variable":[{"key":"id","value":"57871a62-2f4a-4c75-88e4-0cff845584f6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"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":"378"},{"key":"Etag","value":"W/\"17a-7QTYBTioKbMGAbzTpncriEJkeg8\""},{"key":"Date","value":"Wed, 02 Mar 2022 19:52:55 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"{\n    \"recipe\": {\n        \"id\": \"57871a62-2f4a-4c75-88e4-0cff845584f6\",\n        \"title\": \"Dadinho de tapioca\",\n        \"description\": \"Vinda do Nordeste para conquistar todo o Brasil, a tapioca é o ingrediente perfeito para fazer receitas diferentes e saborosas. Por não conter glúten, esse ingrediente se popularizou entre a galera fitness, e entre quem quer fugir um pouco do pão.\",\n        \"createdAt\": \"25/02/2022\"\n    }\n}"}],"_postman_id":"df1b56de-9016-4bb6-81ff-2f50ba01cc39"},{"name":"Editar receita","id":"6b9231d2-431e-463b-93ee-f9c7376465b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Sorvete de maracujá\",\r\n    \"description\": \"O sorvete de maracujá da receita a seguir utiliza ingredientes que ajudam a deixá-lo com bem pouca acidez.  A principal diferença entre essa receita e a de um sorvete caseiro é o emulsificante utilizado no seu preparo. É ele que garante a textura macia na boca. O seu nome comercial é Liga Neutra. Eu também acrescentei um pouco de creme de leite para cortar a acidez natural do suco de maracujá. A proteína do leite colabora para a sua maciez.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://desatinar-cookenu.herokuapp.com/recipe/edit/:id","description":"<p>Edita uma receita do banco de dados. O role <strong>ADMIN</strong> pode editar todas as receitas e o role <strong>NORMAL</strong> só pode editar as próprias receitas criadas.</p>\n<ul>\n<li>o <strong>title</strong> e o <strong>description</strong> devem ser passados via body</li>\n<li>é necessário passar o <strong>token</strong> via headers</li>\n<li>o <strong>id</strong> da receita deve ser passado via path params</li>\n</ul>\n","urlObject":{"protocol":"https","path":["recipe","edit",":id"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"8a1cc908-ba56-4ca5-9561-b39a168eb881","key":"id"}]}},"response":[{"id":"aa74bad6-85e4-4b4c-acf3-de14927bf438","name":"Editar receita","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"title\": \"Sorvete de maracujá\",\r\n    \"description\": \"O sorvete de maracujá da receita a seguir utiliza ingredientes que ajudam a deixá-lo com bem pouca acidez.  A principal diferença entre essa receita e a de um sorvete caseiro é o emulsificante utilizado no seu preparo. É ele que garante a textura macia na boca. O seu nome comercial é Liga Neutra. Eu também acrescentei um pouco de creme de leite para cortar a acidez natural do suco de maracujá. A proteína do leite colabora para a sua maciez.\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://desatinar-cookenu.herokuapp.com/recipe/edit/:id","protocol":"https","host":["desatinar-cookenu","herokuapp","com"],"path":["recipe","edit",":id"],"variable":[{"key":"id","value":"8a1cc908-ba56-4ca5-9561-b39a168eb881"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"29"},{"key":"Etag","value":"W/\"1d-SiPwtR0cMO0p8swDywz93735Jv8\""},{"key":"Date","value":"Wed, 02 Mar 2022 20:04:34 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Receita alterada com sucesso."}],"_postman_id":"6b9231d2-431e-463b-93ee-f9c7376465b1"},{"name":"Deletar receita","id":"1542b3fe-fc4e-4f57-b82f-3516d3a54350","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":"https://desatinar-cookenu.herokuapp.com/recipe/delete/:id","description":"<p>Deleta uma receita do banco de dados. O role <strong>ADMIN</strong> pode deletar todas as receitas e o role <strong>NORMAL</strong> só pode deletar as próprias receitas criadas.</p>\n<ul>\n<li>é necessário passar o <strong>token</strong> via headers</li>\n<li>o <strong>id</strong> da receita deve ser passado via path params</li>\n</ul>\n","urlObject":{"protocol":"https","path":["recipe","delete",":id"],"host":["desatinar-cookenu","herokuapp","com"],"query":[],"variable":[{"type":"any","value":"8a1cc908-ba56-4ca5-9561-b39a168eb881","key":"id"}]}},"response":[{"id":"54c4aafb-2e67-4425-84c3-bc07067a8887","name":"Deletar receita","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImQ0MWMyN2I2LTgxYTYtNDA0YS1hZTk4LTJiMTc5NTU3NDU2ZSIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY0NjI0OTIwOCwiZXhwIjoxNjQ2MzM1NjA4fQ.hkoxQDJDYMqYB23nk6NqEP2IT-JbConDge-byNQDnAQ","type":"text"}],"url":{"raw":"https://desatinar-cookenu.herokuapp.com/recipe/delete/:id","protocol":"https","host":["desatinar-cookenu","herokuapp","com"],"path":["recipe","delete",":id"],"variable":[{"key":"id","value":"8a1cc908-ba56-4ca5-9561-b39a168eb881"}]}},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"Server","value":"Cowboy"},{"key":"Connection","value":"keep-alive"},{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"17"},{"key":"Etag","value":"W/\"11-5vHY11gu2yZ/tF5mkkSyxTGqfLE\""},{"key":"Date","value":"Wed, 02 Mar 2022 20:07:54 GMT"},{"key":"Via","value":"1.1 vegur"}],"cookie":[],"responseTime":null,"body":"Receita deletada."}],"_postman_id":"1542b3fe-fc4e-4f57-b82f-3516d3a54350"}],"id":"fcd58597-6c41-4864-b7c5-6ae1082ea425","_postman_id":"fcd58597-6c41-4864-b7c5-6ae1082ea425","description":""}]}