{"info":{"_postman_id":"4e03a0ac-ba31-42fc-b900-95da5c812ebb","name":"Labook","description":"<html><head></head><body><p>StartFragment</p>\n<p>User management API, posts and interactions made on the social network Labook. It aims to promote connection and interaction between people. Those who register in the application will be able to create and like publications.</p>\n<p>EndFragment</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24460805","collectionId":"4e03a0ac-ba31-42fc-b900-95da5c812ebb","publishedId":"2s93CRJWGq","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-02-27T10:34:13.000Z"},"item":[{"name":"Users","item":[{"name":"All users","id":"23b82243-2a9b-4437-a41f-696f931d1116","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk5MTI5ZGMzLTk0YzctNDRlYS1iNWUwLTM0NGQ3NzRkZGQwMSIsIm5hbWUiOiJmdWxhbm8iLCJyb2xlIjoiTk9STUFMIiwiaWF0IjoxNjc3MjM5NDY3LCJleHAiOjE2NzczMjU4Njd9.onJ3WyIY3wjDYrbO_9qSYSYIfgon-82d1OFQQyCh9rI","type":"text"}],"url":"http://localhost:3003/users?q=","urlObject":{"protocol":"http","port":"3003","path":["users"],"host":["localhost"],"query":[{"key":"q","value":""}],"variable":[]}},"response":[{"id":"7d31233c-cc2b-4321-a98b-5d288f390252","name":"All users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMxNDgxMmI5LTYzOTItNDYwYS1hMDM1LThlOGI2NTBiYjcyOSIsIm5hbWUiOiJiaWdib3NzIiwicm9sZSI6IkFETUlOIiwiaWF0IjoxNjc3MjI4NzE1LCJleHAiOjE2NzczMTUxMTV9.PFPyp9uXLPz_YCYA1_y57Gp91_-2BZpbxCXiGS8dLB0","type":"text"}],"url":{"raw":"http://localhost:3003/users?q=","protocol":"http","host":["localhost"],"port":"3003","path":["users"],"query":[{"key":"q","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"23b82243-2a9b-4437-a41f-696f931d1116"},{"name":"Create user","id":"fac51166-80f2-48b2-9284-d3c81b30b645","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"ciclana\",\r\n    \"email\": \"ciclana@email.com\",\r\n    \"password\": \"Ciclana.123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users/signup","description":"<p>Public endpoint used to create a new user. Return a token JWT.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["users","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e599db8c-69fa-4cb9-a41b-7c306a201446","name":"Create user","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\": \"ciclana\",\r\n    \"email\": \"ciclana@email.com\",\r\n    \"password\": \"Ciclana.123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users/signup"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fac51166-80f2-48b2-9284-d3c81b30b645"},{"name":"Delete User","id":"8b161812-70ba-4f83-8ea4-5e26c56122ea","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMxNDgxMmI5LTYzOTItNDYwYS1hMDM1LThlOGI2NTBiYjcyOSIsIm5hbWUiOiJiaWdib3NzIiwicm9sZSI6IkFETUlOIiwiaWF0IjoxNjc3MjI3Njc4LCJleHAiOjE2NzczMTQwNzh9.kfnsxG8_T96rZlTtcyoy0kZae0LhO2Tvv_f0QsncHcY","type":"text"}],"url":"http://localhost:3003/users/:id","description":"<p>Protected endpoint used to delete a user. Only admin or owner user can complete the request.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"bbef0883-30c8-4d63-a381-71383574dc47","key":"id"}]}},"response":[{"id":"72f4eb40-25e0-4f76-a40f-66b82cc9799b","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjMxNDgxMmI5LTYzOTItNDYwYS1hMDM1LThlOGI2NTBiYjcyOSIsIm5hbWUiOiJiaWdib3NzIiwicm9sZSI6IkFETUlOIiwiaWF0IjoxNjc3MjI3Njc4LCJleHAiOjE2NzczMTQwNzh9.kfnsxG8_T96rZlTtcyoy0kZae0LhO2Tvv_f0QsncHcY","type":"text"}],"url":{"raw":"http://localhost:3003/users/:id","protocol":"http","host":["localhost"],"port":"3003","path":["users",":id"],"variable":[{"key":"id","value":"bbef0883-30c8-4d63-a381-71383574dc47"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"8b161812-70ba-4f83-8ea4-5e26c56122ea"}],"id":"37910069-10fc-4182-acfa-4f930295a353","description":"<p>Protected endpoint used to see all users. Only the admin user can complete the request.</p>\n","_postman_id":"37910069-10fc-4182-acfa-4f930295a353"},{"name":"Posts","item":[{"name":"All posts","id":"a0e5e145-5759-4364-b876-cc6aa3d18b4f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk5MTI5ZGMzLTk0YzctNDRlYS1iNWUwLTM0NGQ3NzRkZGQwMSIsIm5hbWUiOiJmdWxhbm8iLCJyb2xlIjoiTk9STUFMIiwiaWF0IjoxNjc3NDAyMjcwLCJleHAiOjE2Nzc0ODg2NzB9._ARmaUFX_FiT0GK_MFeAiVZK3JbvODyDc6NvGw54tSk","type":"text"}],"url":"http://localhost:3003/posts","description":"<p>Protected endpoint used to see all posts. Only users with a token can complete the request.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0aa0c8b5-d95b-4c11-8384-096396393e4c","name":"All posts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk5MTI5ZGMzLTk0YzctNDRlYS1iNWUwLTM0NGQ3NzRkZGQwMSIsIm5hbWUiOiJmdWxhbm8iLCJyb2xlIjoiTk9STUFMIiwiaWF0IjoxNjc3NDAyMjcwLCJleHAiOjE2Nzc0ODg2NzB9._ARmaUFX_FiT0GK_MFeAiVZK3JbvODyDc6NvGw54tSk","type":"text"}],"url":"http://localhost:3003/posts"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a0e5e145-5759-4364-b876-cc6aa3d18b4f"},{"name":"Create Post","id":"58c19fac-2245-435c-8074-e1b1454729bd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhmYmJmYjMzLTk4MGUtNGY2MS1hYTFhLWI0ZTIwNzcyM2NlNyIsIm5hbWUiOiJjaWNsYW5hIiwicm9sZSI6Ik5PUk1BTCIsImlhdCI6MTY3NzIzOTYyNSwiZXhwIjoxNjc3MzI2MDI1fQ.IBxDwn_NI_oqNwYrhfdjRrQL7cx7Rj74_lLEUCdm1Jg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"Today I studied a lot.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/posts","description":"<p>StartFragment</p>\n<p>Protected endpoint used to create a new post. Only users with a token can complete the request.</p>\n<p>EndFragmen</p>\n","urlObject":{"protocol":"http","port":"3003","path":["posts"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0e339c0b-f349-46c8-b08e-9a462f3fdb14","name":"Create Post","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhmYmJmYjMzLTk4MGUtNGY2MS1hYTFhLWI0ZTIwNzcyM2NlNyIsIm5hbWUiOiJjaWNsYW5hIiwicm9sZSI6Ik5PUk1BTCIsImlhdCI6MTY3NzIzOTYyNSwiZXhwIjoxNjc3MzI2MDI1fQ.IBxDwn_NI_oqNwYrhfdjRrQL7cx7Rj74_lLEUCdm1Jg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"Today I studied a lot.\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/posts"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"58c19fac-2245-435c-8074-e1b1454729bd"},{"name":"Edit Post","id":"83feb8db-2137-4b86-b7b0-b030a3f262ee","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhmYmJmYjMzLTk4MGUtNGY2MS1hYTFhLWI0ZTIwNzcyM2NlNyIsIm5hbWUiOiJjaWNsYW5hIiwicm9sZSI6Ik5PUk1BTCIsImlhdCI6MTY3NzIzOTYyNSwiZXhwIjoxNjc3MzI2MDI1fQ.IBxDwn_NI_oqNwYrhfdjRrQL7cx7Rj74_lLEUCdm1Jg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"I'm tired :(\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/posts/:id","description":"<p>StartFragment</p>\n<p>Protected endpoint used to edit a post. Only the creator of the post can complete the request.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3003","path":["posts",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"7a77d17c-1d1d-4fe9-a7eb-b50d29bf2d51","key":"id"}]}},"response":[{"id":"59c8d413-535e-4448-8036-a40003a39901","name":"Edit Post","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhmYmJmYjMzLTk4MGUtNGY2MS1hYTFhLWI0ZTIwNzcyM2NlNyIsIm5hbWUiOiJjaWNsYW5hIiwicm9sZSI6Ik5PUk1BTCIsImlhdCI6MTY3NzIzOTYyNSwiZXhwIjoxNjc3MzI2MDI1fQ.IBxDwn_NI_oqNwYrhfdjRrQL7cx7Rj74_lLEUCdm1Jg","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"content\": \"I'm tired :(\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/posts/:id","protocol":"http","host":["localhost"],"port":"3003","path":["posts",":id"],"variable":[{"key":"id","value":"7a77d17c-1d1d-4fe9-a7eb-b50d29bf2d51"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"83feb8db-2137-4b86-b7b0-b030a3f262ee"},{"name":"Delete Post","id":"92053ba1-8300-43cd-8c6e-c466bd31a625","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhmYmJmYjMzLTk4MGUtNGY2MS1hYTFhLWI0ZTIwNzcyM2NlNyIsIm5hbWUiOiJjaWNsYW5hIiwicm9sZSI6Ik5PUk1BTCIsImlhdCI6MTY3NzIzOTYyNSwiZXhwIjoxNjc3MzI2MDI1fQ.IBxDwn_NI_oqNwYrhfdjRrQL7cx7Rj74_lLEUCdm1Jg","type":"text"}],"url":"http://localhost:3003/posts/:id","description":"<p>StartFragment</p>\n<p>Protected endpoint used to delete a post. Only admin or creator of the post can complete the request.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3003","path":["posts",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"9d171e0e-ec17-4bc8-85cf-a3c76761bf23","key":"id"}]}},"response":[{"id":"099bf124-6941-421d-8c95-fa43155610ce","name":"Delete Post","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhjNTI3N2QzLTMyZDktNDY5ZS04M2JmLTYwZGY4MWU2NzAwMyIsIm5hbWUiOiJiaWdib3NzIiwicm9sZSI6IkFETUlOIiwiaWF0IjoxNjc3MTYzOTQ0LCJleHAiOjE2NzcyNTAzNDR9.RlQ-mnfQ_pKkaA5W2b9fGpKtGj5etTgZnPYiTYqFKqA","type":"text"}],"url":{"raw":"http://localhost:3003/posts/:id","protocol":"http","host":["localhost"],"port":"3003","path":["posts",":id"],"variable":[{"key":"id","value":"e62adbf4-fd8b-4e55-a052-34f560397922"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"92053ba1-8300-43cd-8c6e-c466bd31a625"},{"name":"Like or Dislike","id":"a1e49b10-7326-4e33-91c7-96750eaf3f17","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk5MTI5ZGMzLTk0YzctNDRlYS1iNWUwLTM0NGQ3NzRkZGQwMSIsIm5hbWUiOiJmdWxhbm8iLCJyb2xlIjoiTk9STUFMIiwiaWF0IjoxNjc3MjQwNzc0LCJleHAiOjE2NzczMjcxNzR9.Nfy5B1R4ofNQkLZr8l0KlE-HeKTdT4vGcoE4BNqVL1g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"like\": true\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/posts/:id/like","description":"<p>StartFragment</p>\n<p>Protected endpoint used to interact with a post. Only users with a token can complete the request.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3003","path":["posts",":id","like"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"d2a04a87-e528-4708-b9fa-81401db98003","key":"id"}]}},"response":[{"id":"6e73b895-e88a-4054-8c3e-e4d2e7c29bbc","name":"Like or Dislike","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6Ijk5MTI5ZGMzLTk0YzctNDRlYS1iNWUwLTM0NGQ3NzRkZGQwMSIsIm5hbWUiOiJmdWxhbm8iLCJyb2xlIjoiTk9STUFMIiwiaWF0IjoxNjc3MjQwNzc0LCJleHAiOjE2NzczMjcxNzR9.Nfy5B1R4ofNQkLZr8l0KlE-HeKTdT4vGcoE4BNqVL1g","type":"text"}],"body":{"mode":"raw","raw":"{\r\n    \"like\": true\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:3003/posts/:id/like","protocol":"http","host":["localhost"],"port":"3003","path":["posts",":id","like"],"variable":[{"key":"id","value":"d2a04a87-e528-4708-b9fa-81401db98003"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"a1e49b10-7326-4e33-91c7-96750eaf3f17"}],"id":"784dd487-16ef-4f2e-95dc-f49ece7141bd","_postman_id":"784dd487-16ef-4f2e-95dc-f49ece7141bd","description":""},{"name":"Login","id":"34131c76-0aa7-4409-8ad8-f6ed52399c35","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"bigboss@email.com\",\r\n    \"password\": \"Bigboss.000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users/login","description":"<p>StartFragment</p>\n<p>Public endpoint used to log in on Labook. Return a token JWT.</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3003","path":["users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3b56072d-9c37-47f9-9290-3fec09f81326","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"fulano@email.com\",\r\n    \"password\": \"Fulano.123\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3003/users/login"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"34131c76-0aa7-4409-8ad8-f6ed52399c35"}]}