{"info":{"_postman_id":"aa64671c-a912-43c0-bf3c-aa6b870768d9","name":"ProductStore","description":"<html><head></head><body><p>A Product store API that manages different products by different authorized users</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"14657312","collectionId":"aa64671c-a912-43c0-bf3c-aa6b870768d9","publishedId":"2sA35G2M8u","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-03-28T23:06:01.000Z"},"item":[{"name":"/api/users/register","id":"b4da7a6c-b608-4a6e-b8bb-58c21bcdd8a4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Temitope Omolola\",\r\n  \"email\": \"akinmegha@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/register","description":"<p>This request handles user registration and signup</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"73942fce-6c74-414f-a2f7-f69638086d1f","name":"/api/users/register","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Temitope Omolola\",\r\n  \"email\": \"akinmegha@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/register"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"b4da7a6c-b608-4a6e-b8bb-58c21bcdd8a4"},{"name":"/api/users/login","id":"ef5b8467-7246-448f-86a5-3f0e56b97916","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"jwt","jwt":{"basicConfig":[{"key":"payload","value":"<payload>"},{"key":"isSecretBase64Encoded","value":"<is-secret-base64encoded>"},{"key":"secret","value":"<secret>"},{"key":"algorithm","value":"<algorithm>"},{"key":"addTokenTo","value":"<add-token-to>"},{"key":"headerPrefix","value":"<header-prefix>"},{"key":"queryParamKey","value":"<query-param-key>"},{"key":"header","value":"<header>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"akinmegha@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/login","description":"<p>This request handles user login</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"303fc312-eeb8-4436-9561-8480a57d3722","name":"/api/users/login","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"email\": \"akinmegha@gmail.com\",\r\n  \"password\": \"123456\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/login"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"ef5b8467-7246-448f-86a5-3f0e56b97916"},{"name":"/api/users/current","id":"7aa8511f-481f-4642-9fac-5546e24f61a1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/current","description":"<p>This request handles information about the current user with access and priviledges or verify user</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","users","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"78e29cac-5b54-43a2-82bb-c7ff0d65ee6f","name":"/api/users/current","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/users/current "},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"7aa8511f-481f-4642-9fac-5546e24f61a1"},{"name":"/api/products/","id":"fbb9ef1e-6aad-4cbe-930f-f12053e530c4","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/products/","description":"<p>This populates all products and parameters from the API</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","products",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b6382a1b-b6cd-4624-8076-64245c6ab9ad","name":"/api/products/","originalRequest":{"method":"GET","header":[],"url":"http://localhost:3000/api/products/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"fbb9ef1e-6aad-4cbe-930f-f12053e530c4"},{"name":"/api/products/","id":"9f09d851-da39-46bc-95a8-6783520a2ac4","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":false},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/products/","description":"<p>creates a product</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","products",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"84445ce8-14ca-40d4-8b09-c1a49eff915d","name":"/api/products/","originalRequest":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"},{"key":"Authorization","value":"application/json","description":"{accessToken}","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\r\n  \"name\": \"Fish\",\r\n  \"description\": \"Versatile vegetable spiralizer for creating\",\r\n  \"price\": 16,\r\n  \"category\": \"Kitchen\",\r\n  \"manufacturer\": \"VeggieWorks\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/api/products/"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"9f09d851-da39-46bc-95a8-6783520a2ac4"},{"name":"/api/products/:id","id":"d55fe719-05b4-4d1a-bcde-f8c400e6f75a","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/products/:id","description":"<p>This request handles Request for a particular product, requires an authorization token</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","products",":id"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"e0a12478-ce2b-4013-94de-860659bad11c","name":"/api/users/:id","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:3000/api/products/:id","protocol":"http","host":["localhost"],"port":"3000","path":["api","products",":id"],"variable":[{"key":"id","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"d55fe719-05b4-4d1a-bcde-f8c400e6f75a"},{"name":"/api/products/:id","id":"efc58d2e-be32-4da6-b41f-7e0e83b09338","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/products/:id","description":"<p>Updates a particular product</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","products",":id"],"host":["localhost"],"query":[],"variable":[{"id":"7fb7b414-405e-4f5c-9606-5ec7435131f6","type":"any","value":"","key":"id"}]}},"response":[{"id":"469b60a3-ee6d-4a41-8184-6e111281e259","name":"/api/products/:id","originalRequest":{"method":"PUT","header":[],"url":{"raw":"http://localhost:3000/api/products/:id","protocol":"http","host":["localhost"],"port":"3000","path":["api","products",":id"],"variable":[{"key":"id","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"efc58d2e-be32-4da6-b41f-7e0e83b09338"},{"name":"/api/products/:id","id":"6b427610-5743-4500-9525-5b9e70abf2e8","protocolProfileBehavior":{"disableBodyPruning":true,"strictSSL":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/products/:id","description":"<p>Deletes a particular product</p>\n","urlObject":{"protocol":"http","port":"3000","path":["api","products",":id"],"host":["localhost"],"query":[],"variable":[{"id":"7fb7b414-405e-4f5c-9606-5ec7435131f6","type":"any","value":"","key":"id"}]}},"response":[{"id":"d19c2f8b-8f79-483d-8c8d-fa8f781d18b5","name":"/api/users/login","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:3000/api/products/:id","protocol":"http","host":["localhost"],"port":"3000","path":["api","products",":id"],"variable":[{"key":"id","value":""}]}},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":null}],"_postman_id":"6b427610-5743-4500-9525-5b9e70abf2e8"},{"name":"http://localhost:3000/api/users/register","id":"e803cec9-f003-4dd8-85ba-81cddfb60132","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Content-Type","name":"Content-Type","value":"application/json","type":"text"}],"body":{"mode":"raw","raw":"{\r\n  \"username\": \"Temitope Kayode\",\r\n  \"email\": \"akinmegh@gmail.com\",\r\n  \"password\": \"123486\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:3000/api/users/register","urlObject":{"protocol":"http","port":"3000","path":["api","users","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"e803cec9-f003-4dd8-85ba-81cddfb60132"}]}