{"info":{"_postman_id":"c40abd0d-d0b6-4b70-be4e-4285530c37fa","name":"Labeddit","description":"<html><head></head><body><p>User management API, posts and interactions made on the social network LabEddit. It is an express server back-end application with SQLite3 database, where there is data protection and code organization based on layered architecture concepts. It aims to promote interaction between people through posts, votes and comments.</p>\n<p>Live app link: <a href=\"https://labeddit-laisrmacedo.surge.sh/users/login\">https://labeddit-laisrmacedo.surge.sh/users/login</a></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"24460805","collectionId":"c40abd0d-d0b6-4b70-be4e-4285530c37fa","publishedId":"2s93Xu3RTW","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-04-11T15:51:12.000Z"},"item":[{"name":"Users","item":[{"name":"Login","id":"4fea740a-3956-486e-b54d-e03405afdbe3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/users/login","description":"<p>Any user who has a registered email and password is authorized to complete this request. This endpoint doesn't require authentication and returns a token.</p>\n","urlObject":{"protocol":"https","path":["users","login"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"3ca51318-2f8b-488d-955d-69a98d439bd6","name":"Login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/users/login"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"4fea740a-3956-486e-b54d-e03405afdbe3"},{"name":"Signup","id":"e3a7d775-bcef-45cb-895f-ed00a28984d2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"nickname\": \"ciclana\",\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/users/signup","description":"<p>Any user has the authorization to complete this request. This endpoint doesn't require authentication and returns a token.</p>\n","urlObject":{"protocol":"https","path":["users","signup"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"4d4cec40-a280-44e4-921f-1464334dc0c1","name":"Signup","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"nickname\": \"ciclana\",\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/users/signup"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e3a7d775-bcef-45cb-895f-ed00a28984d2"},{"name":"Get Users","id":"e6390839-61eb-4536-83f4-cc5e5550f6a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI5MDhkNzI4LTUyOGQtNGZmYS1hY2M1LTU1YmZlNWJiNzQ3ZCIsIm5pY2tuYW1lIjoiYmlnYm9zcyIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY4MTIyMzA2NSwiZXhwIjoxNjgxMzA5NDY1fQ.-8hT4wdLWV1swusIUA7jVghM1KYcgrRVh0TxkIM7UAQ","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/users?q=","description":"<p>Only admins are authorized to complete this request. This endpoint requires authentication and returns all registered users.</p>\n","urlObject":{"protocol":"https","path":["users"],"host":["labeddit-backend-deploy","onrender","com"],"query":[{"key":"q","value":""}],"variable":[]}},"response":[{"id":"f8b6981c-2861-4a5f-9e55-117d48ddf5d7","name":"Get Users","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI5MDhkNzI4LTUyOGQtNGZmYS1hY2M1LTU1YmZlNWJiNzQ3ZCIsIm5pY2tuYW1lIjoiYmlnYm9zcyIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY4MTIyMzA2NSwiZXhwIjoxNjgxMzA5NDY1fQ.-8hT4wdLWV1swusIUA7jVghM1KYcgrRVh0TxkIM7UAQ","type":"text"}],"url":{"raw":"https://labeddit-backend-deploy.onrender.com/users?q=","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["users"],"query":[{"key":"q","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"e6390839-61eb-4536-83f4-cc5e5550f6a1"},{"name":"Get User By Id","id":"bb0dd12c-b196-43d4-b5e2-a659de9a3395","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjhiZDI1M2M3LTUzOTAtNDZmYS1iNGY5LWQxY2VhOWRmOTc2YyIsIm5pY2tuYW1lIjoiYmlnYm9zcyIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY5NTk5NzUyMiwiZXhwIjoxNjk2MDgzOTIyfQ.KbI3idQ5Ly_lZ5wT50H-bOlHvL1cuof61FyAq4dhs2k","type":"text"}],"url":"http://localhost:3003/users/user","description":"<p>Registered users are authorized to complete this request. This endpoint requires authentication and returns the user found by token id.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["users","user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b7fe12cc-881e-40fe-8dc6-692d76af5005","name":"Get User By Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/users/user"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bb0dd12c-b196-43d4-b5e2-a659de9a3395"},{"name":"Edit User","id":"152475bc-0cb7-46ad-8208-32c4352dcf89","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"nickname\": \"ciclana\",\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\",\n    \"avatar\": \"https://picsum.photos/id/64/200/200\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/users/:id","description":"<p>Only the user itself is authorized to complete this request. This endpoint requires authentication and edits the sent fields.</p>\n","urlObject":{"protocol":"https","path":["users",":id"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"6f11dfdf-6081-4138-afec-727aec3c72e6","key":"id"}]}},"response":[{"id":"a7f9af3c-c543-4375-b107-fffa29c1075c","name":"Edit User","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"nickname\": \"ciclana\",\n    \"email\": \"ciclana@email.com\",\n    \"password\": \"Ciclana.123\",\n    \"avatar\": \"https://picsum.photos/id/64/200/200\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://labeddit-backend-deploy.onrender.com/users/:id","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["users",":id"],"variable":[{"key":"id","value":"6f11dfdf-6081-4138-afec-727aec3c72e6"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"152475bc-0cb7-46ad-8208-32c4352dcf89"},{"name":"Delete User","id":"37ce9a6c-3052-4fd9-a60d-19750dafedc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI5MDhkNzI4LTUyOGQtNGZmYS1hY2M1LTU1YmZlNWJiNzQ3ZCIsIm5pY2tuYW1lIjoiYmlnYm9zcyIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY3ODAyNTQyMiwiZXhwIjoxNjc4MTExODIyfQ.AwTN64OAuxii5IgjZwdT1Mo0haBYLWDUDdPt5sDChRQ","type":"text"}],"url":"http://localhost:3003/users/:id","description":"<p>Only the user itself and admins are authorized to complete this request. This endpoint requires authentication and deletes the account by id.</p>\n","urlObject":{"protocol":"http","port":"3003","path":["users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"eb0ca399-5842-4b1b-a586-0233670087cd","key":"id"}]}},"response":[{"id":"aa545857-3eae-4dc7-9e49-b3d0d186847c","name":"Delete User","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjI5MDhkNzI4LTUyOGQtNGZmYS1hY2M1LTU1YmZlNWJiNzQ3ZCIsIm5pY2tuYW1lIjoiYmlnYm9zcyIsInJvbGUiOiJBRE1JTiIsImlhdCI6MTY3ODAyNTQyMiwiZXhwIjoxNjc4MTExODIyfQ.AwTN64OAuxii5IgjZwdT1Mo0haBYLWDUDdPt5sDChRQ","type":"text"}],"url":{"raw":"http://localhost:3003/users/:id","protocol":"http","host":["localhost"],"port":"3003","path":["users",":id"],"variable":[{"key":"id","value":"eb0ca399-5842-4b1b-a586-0233670087cd"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"37ce9a6c-3052-4fd9-a60d-19750dafedc6"}],"id":"4431a93d-489f-4f5a-8d35-1102be99755b","description":"<p>User related endpoints.</p>\n","_postman_id":"4431a93d-489f-4f5a-8d35-1102be99755b"},{"name":"Posts","item":[{"name":"Get Posts","id":"caea3bc4-7b69-4bd9-afd0-db06b664cfa6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/posts","description":"<p>This endpoint requires authentication and returns all posts. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["posts"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"994d5def-f213-4a9f-a8e5-d77a37c157c1","name":"Get Posts","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/posts"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"caea3bc4-7b69-4bd9-afd0-db06b664cfa6"},{"name":"Get Post By Id","id":"de67706e-798b-4a88-adb8-0dee8954fc2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/posts/:id","description":"<p>This endpoint requires authentication and returns the post by id. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["posts",":id"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"aeea2794-716a-4f6b-98bd-43e96bf85f62","key":"id"}]}},"response":[{"id":"0f75567f-bb6c-4917-a714-fd26932aa911","name":"Get Post By Id","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":{"raw":"https://labeddit-backend-deploy.onrender.com/posts/:id","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["posts",":id"],"variable":[{"key":"id","value":"aeea2794-716a-4f6b-98bd-43e96bf85f62"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"de67706e-798b-4a88-adb8-0dee8954fc2d"},{"name":"Create Post","id":"d4416743-7ef7-4fbb-909a-7860e0a96694","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"content\": \"Postman o/\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/posts/","description":"<p>This endpoint requires authentication. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["posts",""],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"4886653d-8be0-4a28-9075-a67f7c549a45","name":"Create Post","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"content\": \"Postman o/\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/posts/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d4416743-7ef7-4fbb-909a-7860e0a96694"},{"name":"UpvoteOrDownvote","id":"bdfe5556-ab22-416e-9eaf-b9fcca86050a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vote\": true\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/posts/:id/vote","description":"<p>This endpoint requires authentication. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["posts",":id","vote"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"6d8f90ce-8e47-46db-b3f6-74102699c7e2","key":"id"}]}},"response":[{"id":"587b9d6a-401b-4675-8a1f-b3ab812c1d78","name":"UpvoteOrDownvote","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vote\": true\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://labeddit-backend-deploy.onrender.com/posts/:id/vote","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["posts",":id","vote"],"variable":[{"key":"id","value":"6d8f90ce-8e47-46db-b3f6-74102699c7e2"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"bdfe5556-ab22-416e-9eaf-b9fcca86050a"},{"name":"Delete Post","id":"244e628b-4ab0-4df9-a734-b32f5f457648","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/posts/:id","description":"<p>Only the post creator and admins are authorized to complete this request. This endpoint requires authentication and deletes the post by id.</p>\n","urlObject":{"protocol":"https","path":["posts",":id"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"71e04606-63e6-4508-a8f0-0564167581cf","key":"id"}]}},"response":[{"id":"d3c68207-1e68-4a2f-98c1-aeb96184cf98","name":"Delete Post","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjI0MjgsImV4cCI6MTY4MTMwODgyOH0.xjDShQOHBsXON8fZNyRBtKHcENAUaSmh8PlhH4aRr70","type":"text"}],"url":{"raw":"https://labeddit-backend-deploy.onrender.com/posts/:id","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["posts",":id"],"variable":[{"key":"id","value":"71e04606-63e6-4508-a8f0-0564167581cf"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"244e628b-4ab0-4df9-a734-b32f5f457648"}],"id":"2b6ff222-51cf-414f-a241-c2237f0999fd","description":"<p>Posts related endpoints.</p>\n","_postman_id":"2b6ff222-51cf-414f-a241-c2237f0999fd"},{"name":"Comments","item":[{"name":"Get Comments","id":"fee02d0a-d66c-4df9-8ff9-f676c7c63b37","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/comments","description":"<p>This endpoint requires authentication and returns all the comments. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["comments"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[]}},"response":[{"id":"abd4936d-fa40-4f37-bc98-11c25d5240a1","name":"Get Comments","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/comments"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fee02d0a-d66c-4df9-8ff9-f676c7c63b37"},{"name":"Create Comment","id":"c291fc64-cd9e-4d51-8b39-7ea21bc5158a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"content\": \"new comment\"\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/comments/:id/post","description":"<p>This endpoint requires authentication. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["comments",":id","post"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"aeea2794-716a-4f6b-98bd-43e96bf85f62","key":"id"}]}},"response":[{"id":"ba1807b2-f820-4dce-bf8d-f256e62a54a5","name":"Create Comment","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"content\": \"new comment\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://labeddit-backend-deploy.onrender.com/comments/:id/post","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["comments",":id","post"],"variable":[{"key":"id","value":"aeea2794-716a-4f6b-98bd-43e96bf85f62"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"c291fc64-cd9e-4d51-8b39-7ea21bc5158a"},{"name":"UpvoteOrDownvote","id":"5f282eda-a04d-45c7-863d-0b8249eef127","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vote\": false\n}","options":{"raw":{"language":"json"}}},"url":"https://labeddit-backend-deploy.onrender.com/comments/:id/vote","description":"<p>This endpoint requires authentication. Any registered user is authorized to complete this request.</p>\n","urlObject":{"protocol":"https","path":["comments",":id","vote"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"54eab1f4-fbdf-46a7-9503-3bf5eb005072","key":"id"}]}},"response":[{"id":"11fc06a9-7338-4807-ace0-47a3c10af74d","name":"UpvoteOrDownvote","originalRequest":{"method":"PUT","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"vote\": false\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://labeddit-backend-deploy.onrender.com/comments/:id/vote","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["comments",":id","vote"],"variable":[{"key":"id","value":"54eab1f4-fbdf-46a7-9503-3bf5eb005072"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"5f282eda-a04d-45c7-863d-0b8249eef127"},{"name":"Delete Comment","id":"6f0a9881-54f8-4a11-96d9-8d85a27d09a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"url":"https://labeddit-backend-deploy.onrender.com/comments/:id","description":"<p>Only the comment creator and admins are authorized to complete this request. This endpoint requires authentication and deletes the comment by id.</p>\n","urlObject":{"protocol":"https","path":["comments",":id"],"host":["labeddit-backend-deploy","onrender","com"],"query":[],"variable":[{"type":"any","value":"b9c2950f-9d24-4de0-b6d9-d04d857426cb","key":"id"}]}},"response":[{"id":"472206ff-21df-4866-b994-d6abd50d883f","name":"Delete Comment","originalRequest":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjZmMTFkZmRmLTYwODEtNDEzOC1hZmVjLTcyN2FlYzNjNzJlNiIsIm5pY2tuYW1lIjoiY2ljbGFuYSIsInJvbGUiOiJOT1JNQUwiLCJpYXQiOjE2ODEyMjMxNTksImV4cCI6MTY4MTMwOTU1OX0.pFsUrWog5aF5GszzcVrGEexRfN5JWtDoUmils_4qkUM","type":"text"}],"url":{"raw":"https://labeddit-backend-deploy.onrender.com/comments/:id","protocol":"https","host":["labeddit-backend-deploy","onrender","com"],"path":["comments",":id"],"variable":[{"key":"id","value":"b9c2950f-9d24-4de0-b6d9-d04d857426cb"}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6f0a9881-54f8-4a11-96d9-8d85a27d09a4"}],"id":"8d4363d5-0ce3-4367-b00b-dd2f45486dac","description":"<p>Comments related endpoints.</p>\n","_postman_id":"8d4363d5-0ce3-4367-b00b-dd2f45486dac"}]}