{"info":{"_postman_id":"8fed7391-0e66-4550-a1f2-32326e1dfe63","name":"API Inventory","description":"<html><head></head><body><h1 id=\"introduction\">Introduction</h1>\n<p>The principal function of this API is to manage a inventory of products.</p>\n<h1 id=\"overview\">Overview</h1>\n<p>The main url of the application is <code>http://127.0.0.1:9000</code></p>\n<h1 id=\"authentication\">Authentication</h1>\n<p>This API is based in Bearer authentication. And the token is created in the application building.</p>\n<p>Token: 7829fca4-745d-4179-85a3-e9ee3fb656d9</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[{"content":"Introduction","slug":"introduction"},{"content":"Overview","slug":"overview"},{"content":"Authentication","slug":"authentication"}],"owner":"18939890","collectionId":"8fed7391-0e66-4550-a1f2-32326e1dfe63","publishedId":"UzBiR9yM","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-06-16T02:52:21.000Z"},"item":[{"name":"Products","item":[{"name":"Get All Products","id":"6cc73831-e6a3-4a36-8516-a6aa5a4eea26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:9000/products/list","urlObject":{"protocol":"http","port":"9000","path":["products","list"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"6cc73831-e6a3-4a36-8516-a6aa5a4eea26"},{"name":"Delete Product","id":"96e4bbe4-cca3-4d05-98da-17e1151a8c12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:9000/produ","urlObject":{"protocol":"http","port":"9000","path":["produ"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"96e4bbe4-cca3-4d05-98da-17e1151a8c12"},{"name":"Create Product","id":"9e36ebe5-419f-4ccf-a412-e5f971faebf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"asdas\",\n    \"sku\" : \"teste\",\n    \"price\" : 124.21,\n    \"description\" : \"\",\n    \"amount\" : \"123.213\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:9000/products/store","urlObject":{"protocol":"http","port":"9000","path":["products","store"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"9e36ebe5-419f-4ccf-a412-e5f971faebf1"},{"name":"Update Product","id":"84145b3f-9e01-448d-9d88-0d24f71f13bf","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"name\" : \"test\",\n    \"sku\" : \"test\",\n    \"price\" : 30,\n    \"description\" : \"test\",\n    \"amount\" : 30\n}"},"url":"http://localhost:9000/products/update/1","urlObject":{"protocol":"http","port":"9000","path":["products","update","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"84145b3f-9e01-448d-9d88-0d24f71f13bf"},{"name":"Get Product","id":"ada20794-04cd-458c-96dc-a00bd68bcbd6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:9000/products/list/1","urlObject":{"protocol":"http","port":"9000","path":["products","list","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[],"_postman_id":"ada20794-04cd-458c-96dc-a00bd68bcbd6"}],"id":"202a7181-3e2a-4cb3-bfbf-ccb18aea0719","_postman_id":"202a7181-3e2a-4cb3-bfbf-ccb18aea0719","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8fed7391-0e66-4550-a1f2-32326e1dfe63","id":"8fed7391-0e66-4550-a1f2-32326e1dfe63","name":"API Inventory","type":"collection"}}},{"name":"Categories","item":[{"name":"Get All Categories","id":"4a2ccff2-a104-4b86-950c-4b516f64ae04","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:9000/categories/list","description":"<p>API endpoint to <em>list</em> all the categories of the inventory.</p>\n<blockquote>\n<p>A successful request will result in a <em>HTTP 200</em> Status code, and all categories will be retrieved.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"9000","path":["categories","list"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cac6d4b5-426f-4bb9-9b28-2c05089e4fc0","name":"Get All Categories Examples","originalRequest":{"method":"GET","header":[],"url":"http://localhost:9000/categories/list"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Jun 2022 01:39:02 GMT"},{"key":"Server","value":"Apache/2.4.53 (Debian)"},{"key":"X-Powered-By","value":"PHP/8.0.20"},{"key":"Cache-Control","value":"no-chache, no-store, must-revalidate"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE"},{"key":"Content-Length","value":"57"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"success\",\n    \"response\": {\n        \"id\": \"1\",\n        \"name\": \"Example\"\n    }\n}"}],"_postman_id":"4a2ccff2-a104-4b86-950c-4b516f64ae04"},{"name":"Delete Category","id":"18129f27-8707-4086-a55f-3eaba2a436f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:9000/categories/delete/3","description":"<p>API endpoint to <em>delete</em> a category specified by id.</p>\n<blockquote>\n<p>A successful request will result in a <em>HTTP 200</em> Status code, and the successful message.</p>\n</blockquote>\n<blockquote>\n<p>Request for a non existing category will return HTTP 404 with the error message.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"9000","path":["categories","delete","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"98106e3f-48aa-4e2a-872b-c374e744fde1","name":"Delete Category Example","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:9000/categories/delete/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Jun 2022 02:22:43 GMT"},{"key":"Server","value":"Apache/2.4.53 (Debian)"},{"key":"X-Powered-By","value":"PHP/8.0.20"},{"key":"Cache-Control","value":"no-chache, no-store, must-revalidate"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE"},{"key":"Content-Length","value":"60"},{"key":"Keep-Alive","value":"timeout=5, max=100"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"success\",\n    \"response\": \"Record deleted successfully!\"\n}"}],"_postman_id":"18129f27-8707-4086-a55f-3eaba2a436f3"},{"name":"Get Category","id":"bcbfcd00-d965-4bb7-9fbd-8f0fd73b2ce4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:9000/categories/list/1","description":"<p>API endpoint to <em>get</em> a category specified by id.</p>\n<blockquote>\n<p>A successful request will result in a <em>HTTP 200</em> Status code, and the data of respective category will be retrieve.</p>\n</blockquote>\n<blockquote>\n<p>Request for a non existing category will return HTTP 404 with the error message.</p>\n</blockquote>\n","urlObject":{"protocol":"http","port":"9000","path":["categories","list","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"47081294-d400-4f2e-8126-3a692e5b70e2","name":"Get Category Example","originalRequest":{"method":"GET","header":[],"url":"http://localhost:9000/categories/list/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Thu, 16 Jun 2022 02:10:10 GMT"},{"key":"Server","value":"Apache/2.4.53 (Debian)"},{"key":"X-Powered-By","value":"PHP/8.0.20"},{"key":"Cache-Control","value":"no-chache, no-store, must-revalidate"},{"key":"Access-Control-Allow-Methods","value":"GET,POST,PUT,DELETE"},{"key":"Content-Length","value":"57"},{"key":"Keep-Alive","value":"timeout=5, max=99"},{"key":"Connection","value":"Keep-Alive"},{"key":"Content-Type","value":"application/json"}],"cookie":[],"responseTime":null,"body":"{\n    \"type\": \"success\",\n    \"response\": {\n        \"id\": \"1\",\n        \"name\": \"Example\"\n    }\n}"}],"_postman_id":"bcbfcd00-d965-4bb7-9fbd-8f0fd73b2ce4"}],"id":"38091d1a-d973-4b15-9573-839f6a3eb8d1","_postman_id":"38091d1a-d973-4b15-9573-839f6a3eb8d1","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"8fed7391-0e66-4550-a1f2-32326e1dfe63","id":"8fed7391-0e66-4550-a1f2-32326e1dfe63","name":"API Inventory","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"id":"05e54ac7-228d-42bc-8a4e-c9e82ac366b6","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"26eea145-4c21-406a-bac7-517a9417dff8","type":"text/javascript","exec":[""]}}]}