{"info":{"_postman_id":"618ad950-181d-4f85-a093-02bbe202ba52","name":"BM-APICollection","description":"<html><head></head><body><p>a simple API that can help small business owners managing their inventories and products.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"16306829","collectionId":"618ad950-181d-4f85-a093-02bbe202ba52","publishedId":"2s93CPqXtj","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"778DA9"},"publishDate":"2023-02-25T19:06:32.000Z"},"item":[{"name":"User Authentication","item":[{"name":"/api/users","id":"b68828b6-4944-4deb-b208-c8b6a72388a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"email\": \"lulu@hotmail.com\",\n    \"businessname\": \"yarab\",\n    \"password\": \"143\"\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/users","description":"<h3 id=\"signup-request\">SignUp Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"b68828b6-4944-4deb-b208-c8b6a72388a3"},{"name":"/api/users/login","id":"25371792-e58c-4ff2-8feb-0db1461e52ad","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"basic","basic":{"basicConfig":[{"key":"username","value":"<username>"},{"key":"password","value":"<password>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":""},"url":"http://127.0.0.1:8080/api/users/login","description":"<h3 id=\"login-request\">LogIn Request</h3>\n<p>use your email as username.</p>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","login"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"25371792-e58c-4ff2-8feb-0db1461e52ad"}],"id":"fd54ded6-7951-412f-a8c3-dd6aeac724f1","_postman_id":"fd54ded6-7951-412f-a8c3-dd6aeac724f1","description":""},{"name":"Inventories","item":[{"name":"/api/inventories","id":"6cc546d6-1866-4a33-8a16-90f31a965659","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"    {\n        \"quantity\": 15,\n        \"inventoryprice\": 30,\n        \"inventoryname\": \"food color22 lulu\"\n    }     \n    ","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/inventories","description":"<h3 id=\"add-inventories-request\">add inventories Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","inventories"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cc546d6-1866-4a33-8a16-90f31a965659"},{"name":"/api/inventories Copy","id":"63fa3416-5743-4613-95ca-f41b58afa114","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"body":{"mode":"raw","raw":"    {\n        \"quantity\": 15,\n        \"inventoryprice\": 30,\n        \"inventoryname\": \"food color\"\n    }     \n    ","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/inventories/foruser","description":"<h3 id=\"add-inventories-request\">add inventories Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","inventories","foruser"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"63fa3416-5743-4613-95ca-f41b58afa114"},{"name":"/api/users/:UserID/inventories","id":"1a2d621e-89b5-4357-85eb-fbdb67877e44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/api/users/2C755BA6-5529-41C8-B9AE-64EA0834D185/inventories","description":"<h3 id=\"get-user-inventories-request\">Get user inventories Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","2C755BA6-5529-41C8-B9AE-64EA0834D185","inventories"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1a2d621e-89b5-4357-85eb-fbdb67877e44"},{"name":"/api/inventories/:inventoryID","id":"3c8e82eb-17a4-4982-91d5-c6cf10a8668b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":" {\n     \n        \"id\": \"90747BBB-9318-4905-92C7-A7F97AFC61FC\",\n        \"inventoryprice\": 30,\n        \"quantity\": 15,\n        \"inventoryname\": \"food color\"\n }","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/inventories/90747BBB-9318-4905-92C7-A7F97AFC61FC","description":"<h3 id=\"update-inventory-request\">Update inventory Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","inventories","90747BBB-9318-4905-92C7-A7F97AFC61FC"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"3c8e82eb-17a4-4982-91d5-c6cf10a8668b"},{"name":"/api/inventories/:inventoryID","id":"43870417-3e0e-44af-832e-4586d8bc2b87","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8080/api/inventories/90747BBB-9318-4905-92C7-A7F97AFC61FC","description":"<h3 id=\"delete-inventory-request\">Delete inventory Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","inventories","90747BBB-9318-4905-92C7-A7F97AFC61FC"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"43870417-3e0e-44af-832e-4586d8bc2b87"}],"id":"f72ba8d0-05aa-42f9-9abb-2547a36ef358","_postman_id":"f72ba8d0-05aa-42f9-9abb-2547a36ef358","description":""},{"name":"Products","item":[{"name":"/api/products","id":"1f5b6cb0-3166-4aaa-91c1-6d8ebe31985d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productname\": \"Lavender Cake\",\n     \"laborcost\": 20.0,\n    \"actualcost\": 20.0,\n    \"totalprice\":40.0,\n    \"profit\": 10.0,\n    \"quantity\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/products","description":"<h3 id=\"add-product-request\">add product Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"1f5b6cb0-3166-4aaa-91c1-6d8ebe31985d"},{"name":"/api/users/:userID/products","id":"0a7dd38c-fee1-4fc0-aa2d-8abb66bb12a2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8080/api/users/FA439628-F168-4721-A045-C87EBF51C069/products","description":"<h3 id=\"get-user-products-request\">Get user products Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","users","FA439628-F168-4721-A045-C87EBF51C069","products"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"0a7dd38c-fee1-4fc0-aa2d-8abb66bb12a2"},{"name":"/api/products/:productID","id":"e13a1408-ce1c-442b-9edf-ce8da85e11dc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productname\": \"Lavender Cake\",\n     \"laborcost\": 40.0,\n    \"actualcost\": 20.0,\n    \"totalprice\":40.0,\n    \"profit\": 10.0,\n    \"quantity\": 10\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8080/api/products/EAF5EA5F-2F3B-4CA9-9C09-A863A191E4D5","description":"<h3 id=\"update-product-request\">Update product Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","EAF5EA5F-2F3B-4CA9-9C09-A863A191E4D5"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"e13a1408-ce1c-442b-9edf-ce8da85e11dc"},{"name":"/api/products/:productID","id":"78bdafad-af28-4288-b9e5-d8151ed99201","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://127.0.0.1:8080/api/products/EAF5EA5F-2F3B-4CA9-9C09-A863A191E4D5","description":"<h3 id=\"delete-product-request\">Delete product Request</h3>\n","urlObject":{"protocol":"http","port":"8080","path":["api","products","EAF5EA5F-2F3B-4CA9-9C09-A863A191E4D5"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[],"_postman_id":"78bdafad-af28-4288-b9e5-d8151ed99201"}],"id":"b3d273ac-afe5-4997-aa4e-126ec0552e97","_postman_id":"b3d273ac-afe5-4997-aa4e-126ec0552e97","description":""}]}