{"info":{"_postman_id":"0fb98915-b87f-4118-9ae2-a5978bc6ec86","name":"Comments BE","description":"<html><head></head><body><p>Collection of CRUD endpoints to use as the backend for a Frontend Mentor challenge app</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"12258213","collectionId":"0fb98915-b87f-4118-9ae2-a5978bc6ec86","publishedId":"2s8YzTUhpw","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-12-12T06:45:03.000Z"},"item":[{"name":"GET all users","id":"f00dfc28-d270-42aa-9e66-a9e8fe66d6cb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":\"20\", \n          \"email\": \"chuka@katiuskaaliceas.com\",\n          \"username\": \"chukas\",\n          \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/users","urlObject":{"port":"4000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"f00dfc28-d270-42aa-9e66-a9e8fe66d6cb"},{"name":"GET all comments","id":"56a43587-f74b-4614-bebf-a361bd75ed01","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:4000/comments/","description":"<p>GET all comments</p>\n","urlObject":{"protocol":"http","port":"4000","path":["comments",""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"56a43587-f74b-4614-bebf-a361bd75ed01"},{"name":"GET user by ID","id":"e110db8a-c102-48b4-9116-687f7c194544","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":\"6\",\n    \"comment\": \"I like the Derry Girls\",\n    \"date\":\"2022/02/03\",\n    \"points\": 1,\n    \"user_id\": 1\n\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/users/3","urlObject":{"port":"4000","path":["users","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e110db8a-c102-48b4-9116-687f7c194544"},{"name":"POST users","id":"6727d86c-8212-49a1-8d9f-8af5cf911bf0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\": \"1\",\n    \"email\": \"jasper@katcorp.com\",\n    \"username\": \"chuchi\",\n    \"password\": 12345678,\n    \"avatar\": \"this is my avatar\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/users","urlObject":{"port":"4000","path":["users"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6727d86c-8212-49a1-8d9f-8af5cf911bf0"},{"name":"PUT user by ID","id":"d46b2782-e919-4c15-b422-80e95830165b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n   \"email\": \"kat@katcorp.com\",\n    \"username\": \"kat\",\n    \"password\": \"12345678\",\n    \"avatar\": \"https://placeimg.com/80/80/people\"\n\n\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/users/:id","urlObject":{"port":"4000","path":["users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"d46b2782-e919-4c15-b422-80e95830165b"},{"name":"DELETE user by ID","id":"08539059-e17a-4ed3-a728-3578ccc7f9e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:4000/users/:id","urlObject":{"port":"4000","path":["users",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"08539059-e17a-4ed3-a728-3578ccc7f9e4"},{"name":"POST comment","id":"70950ee7-c777-4947-989f-7635a8d1b553","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"id\":\"11\",\n    \"title\":\"Random LOTR quotes\", \n    \"comment\": \"Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! Oh, Sam! \",\n    \"created_at\": \"12/30/22\",\n    \"points\": 1,\n    \"user_id\": 1\n\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/comments","urlObject":{"port":"4000","path":["comments"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"70950ee7-c777-4947-989f-7635a8d1b553"},{"name":"UPDATE comment by ID","id":"9666f412-c51a-425b-8cb0-27ae55c3057f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{      \n    \"title\":\"Random LOTR quotes\", \n    \"comment\": \"Yes, you're going to Andor alone, and I'm coming with you!\",\n    \"created_at\": \"12/30/22\",\n    \"points\": 1,\n    \"user_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/comments/:id","urlObject":{"port":"4000","path":["comments",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"9666f412-c51a-425b-8cb0-27ae55c3057f"},{"name":"DELETE comment by ID","id":"20b3fb17-653d-4985-98ca-797ae286ff59","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"localhost:4000/comments/:id","urlObject":{"port":"4000","path":["comments",":id"],"host":["localhost"],"query":[],"variable":[{"id":"2947ad2d-31b3-4292-b2ef-77a10ceb9f32","type":"any","value":null,"key":"id"}]}},"response":[],"_postman_id":"20b3fb17-653d-4985-98ca-797ae286ff59"},{"name":"POST to /signup to register a unique user","id":"ec7776c0-09c0-4f4d-97b9-9632b6cc4e4c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{   \n    \"id\": 9, \n    \"email\": \"clare@katcorp.com\",\n    \"username\": \"cack-attach\",\n    \"password\": \"12345678\",\n    \"avatar\": \"https://placeimg.com/80/80/people\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/api/signup","urlObject":{"port":"4000","path":["api","signup"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ec7776c0-09c0-4f4d-97b9-9632b6cc4e4c"},{"name":"POST to /api/login to log in a user","id":"9c4b1c97-4eaa-42b6-879d-1a26ed78ff32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"kat@katcorp.com\",\n    \"password\": \"12345678\"\n}","options":{"raw":{"language":"json"}}},"url":"localhost:4000/api/login","urlObject":{"port":"4000","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9c4b1c97-4eaa-42b6-879d-1a26ed78ff32"}]}