{"info":{"_postman_id":"d3a68682-e9fe-407f-98c5-a983288e851c","name":"PG_ccsf68_final_project","description":"<html><head></head><body><p>This collection has all the server requests used to access various data on both admin and mainwebpages with well descirbed funtion of each one of them.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"25974686","collectionId":"d3a68682-e9fe-407f-98c5-a983288e851c","publishedId":"2s93JwQ3X9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2023-03-15T23:45:20.000Z"},"item":[{"name":"http://localhost:3000/admin/api/phones/:id","id":"04aed9b1-77a1-4f5c-9ef1-aa1d9cea30f4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/admin/api/phones/:id","description":"<p>Takes as an argument id of the element and removes that element from phones.json database based on its id</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","phones",":id"],"host":["localhost"],"query":[],"variable":[{"id":"3616f241-3670-4b07-bd72-d894ec724850","description":{"content":"<p>Removes an item from phones.json database base on the item's id</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[],"_postman_id":"04aed9b1-77a1-4f5c-9ef1-aa1d9cea30f4"},{"name":"http://localhost:3000/admin/api/cases/:id","id":"09c116ff-e616-4157-a974-0689d6926982","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/admin/api/cases/:id","description":"<p>StartFragment</p>\n<p>Takes as an argument id of the element and removes that element from cases.json database based on its id</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","cases",":id"],"host":["localhost"],"query":[],"variable":[{"id":"ae23899b-24f4-4604-82ac-490ad9953600","description":{"content":"<p>Removes an item from cases.json database base on the item's id</p>\n","type":"text/plain"},"type":"any","value":"int ","key":"id"}]}},"response":[],"_postman_id":"09c116ff-e616-4157-a974-0689d6926982"},{"name":"http://localhost:3000/admin/api/chargers/:id","id":"db23d847-bfec-4dd6-a05c-f6b11aa08e02","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/admin/api/chargers/:id","description":"<p>StartFragment</p>\n<p>Takes as an argument id of the element and removes that element from chargers.json database based on its id</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","chargers",":id"],"host":["localhost"],"query":[],"variable":[{"id":"8e37ac40-c7be-429a-9cc2-692ab77ed2a6","description":{"content":"<p>Removes an item from cases.json database base on the item's id</p>\n","type":"text/plain"},"type":"any","value":"int","key":"id"}]}},"response":[],"_postman_id":"db23d847-bfec-4dd6-a05c-f6b11aa08e02"},{"name":"http://localhost:3000/admin/api/chargers","id":"9203fa42-0c34-4f96-9c78-29604764060d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/admin/api/chargers","description":"<p>Outputs full chargers.json database to the user at admin page</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","chargers"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9203fa42-0c34-4f96-9c78-29604764060d"},{"name":"http://localhost:3000/admin/api/cases","id":"740b38a3-0723-4f5a-8a47-243f10e2b13a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/admin/api/cases","description":"<p>StartFragment</p>\n<p>Outputs full cases.json database to the user at admin page</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","cases"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"740b38a3-0723-4f5a-8a47-243f10e2b13a"},{"name":"http://localhost:3000/admin/api/phones","id":"8b338cd7-2093-4368-88b0-b1de9a9e529d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/admin/api/phones","description":"<p>StartFragment</p>\n<p>Outputs full phones.json database to the user at admin page</p>\n<p>EndFragment</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin","api","phones"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"8b338cd7-2093-4368-88b0-b1de9a9e529d"},{"name":"http://localhost:3000/api/cart/clear","id":"bfd70686-eb44-41c2-af3c-fdf6b5afcb6d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:3000/api/cart/clear","description":"<p>Clears the cart.json database</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cart","clear"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bfd70686-eb44-41c2-af3c-fdf6b5afcb6d"},{"name":"http://localhost:3000/api/databaseNames","id":"dfa2d454-518a-405e-b3d3-e0c38bc98eb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/api/databaseNames","description":"<p>Gets databases names without .json (only names)</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","databaseNames"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"dfa2d454-518a-405e-b3d3-e0c38bc98eb4"},{"name":"http://localhost:3000/api/cart","id":"cedf57b0-f70f-4a99-8ccd-724eee6fd0b2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://localhost:3000/api/cart","description":"<p>Adds the selected item to the cart.json</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"cedf57b0-f70f-4a99-8ccd-724eee6fd0b2"},{"name":"http://localhost:3000/admin","id":"bd267113-828f-4521-b3d2-4d66c8ab7456","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/admin","description":"<p>Renders the admin folder containing all the files which admin is supposed to see</p>\n","urlObject":{"protocol":"http","port":"3000","path":["admin"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"bd267113-828f-4521-b3d2-4d66c8ab7456"},{"name":"http://localhost:3000/","id":"ba7d01e9-2e2e-48ed-a33e-c58c456d2068","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:3000/","description":"<p>Renders the client folder contating the files which usual user should be able to see</p>\n","urlObject":{"protocol":"http","port":"3000","path":[""],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ba7d01e9-2e2e-48ed-a33e-c58c456d2068"}]}