{"info":{"_postman_id":"40a267d3-276b-401c-ac1e-8674b711b6c9","name":"LaBook","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>What does your API do?</p>\n<h1 id=\"overview\">Overview</h1>\n<p>Things that the developers should know about</p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>What is the preferred way of using the API?</p>\n<h1 id=\"error-codes\">Error Codes</h1>\n<p>What errors and status codes can a user expect?</p>\n<h1 id=\"rate-limit\">Rate limit</h1>\n<p>Is there a limit to the number of requests an user can send?</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"},{"content":"Error Codes","slug":"error-codes"},{"content":"Rate limit","slug":"rate-limit"}],"owner":"15825773","collectionId":"40a267d3-276b-401c-ac1e-8674b711b6c9","publishedId":"TzzGFshT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303","highlight":"EF5B25"},"publishDate":"2021-08-25T12:46:46.000Z"},"item":[{"name":"PostById","id":"7562e879-ee32-44ca-aadc-96bac20790a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRlNzM1NzM5LWUzNmItNDFjNS1hYzI5LWIxODAwODY0ZDcxMyIsImlhdCI6MTYyOTg5NTI5NSwiZXhwIjoxNjI5ODk4ODk1fQ.o-Heswwg1RKYtlYEPxBaMb79_LEcHyXFyEZNkHc6jGQ","type":"text"}],"url":"https://labook-projeto.herokuapp.com/posts/df8efafb-b441-49be-ad1b-e76b304703de?","description":"<p>Este endpoint busca um post por seu <code>id</code></p>\n","urlObject":{"protocol":"https","path":["posts","df8efafb-b441-49be-ad1b-e76b304703de"],"host":["labook-projeto","herokuapp","com"],"query":[{"key":"","value":null}],"variable":[]}},"response":[{"id":"a39e5b5f-b15c-442f-9e19-98a3f7e812a3","name":"PostById","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRlNzM1NzM5LWUzNmItNDFjNS1hYzI5LWIxODAwODY0ZDcxMyIsImlhdCI6MTYyOTc0MTUyMSwiZXhwIjoxNjI5NzQ1MTIxfQ.TIpPgb_3rw_eW_YntJo6XHNE7QR89laxN3Vjwrubk9k","type":"text"}],"url":{"raw":"https://labook-projeto.herokuapp.com/posts/df8efafb-b441-49be-ad1b-e76b304703de?","protocol":"https","host":["labook-projeto","herokuapp","com"],"path":["posts","df8efafb-b441-49be-ad1b-e76b304703de"],"query":[{"key":"","value":null}]}},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Post has been found successfully!\",\r\n    \"post\": {\r\n        \"id\": \"df8efafb-b441-49be-ad1b-e76b304703de\",\r\n        \"photo\": \"url 2\",\r\n        \"description\": \"post carlos\",\r\n        \"type\": \"normal\",\r\n        \"authorId\": \"2021-08-23T03:27:40.000Z\"\r\n    }\r\n}"}],"_postman_id":"7562e879-ee32-44ca-aadc-96bac20790a3"},{"name":"Login","id":"81632533-9c9a-46bf-990d-96687f44f93e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ana@labenu.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/users/login","description":"<p>Este endpoint loga um usuário do sistema.</p>\n","urlObject":{"protocol":"https","path":["users","login"],"host":["labook-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"6fc09d04-5a9c-4a1c-8dd4-846b55bc46f0","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ana@labenu.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/users/login"},"status":"OK","code":200,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n  \"message\": \"User logged successfully!\",\r\n  \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRlNzM1NzM5LWUzNmItNDFjNS1hYzI5LWIxODAwODY0ZDcxMyIsImlhdCI6MTYyOTg5NTI5NSwiZXhwIjoxNjI5ODk4ODk1fQ.o-Heswwg1RKYtlYEPxBaMb79_LEcHyXFyEZNkHc6jGQ\"\r\n}"}],"_postman_id":"81632533-9c9a-46bf-990d-96687f44f93e"},{"name":"SignUp","id":"8c3ef7f1-4b2b-49e3-b7a9-414ecc9d541b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"novoNome\",\r\n    \"email\": \"novoemail@labenu.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/users/signup","description":"<p>Este endpoint cria um novo usuário no sistema.</p>\n","urlObject":{"protocol":"https","path":["users","signup"],"host":["labook-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"5c6d03b5-9ed7-436a-8393-81ca72ca0e0b","name":"SignUp","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"teste2345\",\r\n    \"email\": \"teste456sa@labenu.com\",\r\n    \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/users/signup"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"User registred successfully!\",\r\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImY4ZmZhNWVmLWZkYTktNGEyZi1iNzNlLTk4OTJmNzY5Mjg2NyIsImlhdCI6MTYyOTg5NTM3MCwiZXhwIjoxNjI5ODk4OTcwfQ.jB3Lu6BZALVs8MPFDjH3OPNE6Czfx4Nn3zYQuCvLP1g\"\r\n}"}],"_postman_id":"8c3ef7f1-4b2b-49e3-b7a9-414ecc9d541b"},{"name":"Create NewPost","id":"744388c4-1b00-43bd-a1f6-65cfebcbac5f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6ImY4ZmZhNWVmLWZkYTktNGEyZi1iNzNlLTk4OTJmNzY5Mjg2NyIsImlhdCI6MTYyOTg5NTM3MCwiZXhwIjoxNjI5ODk4OTcwfQ.jB3Lu6BZALVs8MPFDjH3OPNE6Czfx4Nn3zYQuCvLP1g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"photo\": \"novaFoto\",\r\n    \"description\": \"novo post\",\r\n    \"type\": \"event\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/posts/create","description":"<p>Este endpoint cria um novo post por usuário.</p>\n","urlObject":{"protocol":"https","path":["posts","create"],"host":["labook-projeto","herokuapp","com"],"query":[],"variable":[]}},"response":[{"id":"015303f8-8bfd-4b8d-bbad-e6b21497416c","name":"Create NewPost","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjRlNzM1NzM5LWUzNmItNDFjNS1hYzI5LWIxODAwODY0ZDcxMyIsImlhdCI6MTYyOTc0MTUyMSwiZXhwIjoxNjI5NzQ1MTIxfQ.TIpPgb_3rw_eW_YntJo6XHNE7QR89laxN3Vjwrubk9k","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"photo\": \"url2\",\r\n    \"description\": \"novo post2\",\r\n    \"type\": \"teste\"\r\n}","options":{"raw":{"language":"json"}}},"url":"https://labook-projeto.herokuapp.com/posts/create"},"status":"Created","code":201,"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\r\n    \"message\": \"Post created successfully!\"\r\n}"}],"_postman_id":"744388c4-1b00-43bd-a1f6-65cfebcbac5f"}]}