{"info":{"_postman_id":"5540fa36-dcd6-4c48-93e9-442dd33df9c0","name":"BackendTest","description":"<html><head></head><body><p>Liberty Assured Backend Role Assessment Test Api Documentation</p>\n<p>base_url <code>http://liberty-lb-723786584.eu-north-1.elb.amazonaws.com</code></p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"35174244","collectionId":"5540fa36-dcd6-4c48-93e9-442dd33df9c0","publishedId":"2sA3kVjgC9","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-07-22T13:25:38.000Z"},"item":[{"name":"Auth","item":[{"name":"register","id":"a847e97b-b7df-466e-851e-97c7b7319dd9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayobamidele1@gmail.com\",\r\n    \"username\": \"Ayobami\",\r\n    \"password1\": \"Haywon123@\",\r\n    \"password2\": \"Haywon123@\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://liberty-lb-723786584.eu-north-1.elb.amazonaws.com/api/v1/register","urlObject":{"protocol":"http","path":["api","v1","register"],"host":["liberty-lb-723786584","eu-north-1","elb","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"286ba784-37e8-45fe-adb7-6f3276da4b61","name":"register","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayobamidele1@gmail.com\",\r\n    \"username\": \"Ayobami\",\r\n    \"password1\": \"Haywon123@\",\r\n    \"password2\": \"Haywon123@\"\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/register"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 21 Jul 2024 10:54:12 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"66","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Registration Successful\",\n    \"data\": {}\n}"}],"_postman_id":"a847e97b-b7df-466e-851e-97c7b7319dd9"},{"name":"login","id":"a9e9f600-af56-4ab9-af4f-ef46dbe12c60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayobamidele1@gmail.com\",\r\n    // \"username\": \"Ayobami\",\r\n    \"password\": \"Haywon123@\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"http://liberty-lb-723786584.eu-north-1.elb.amazonaws.com/api/v1/login","urlObject":{"protocol":"http","path":["api","v1","login"],"host":["liberty-lb-723786584","eu-north-1","elb","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"c8bf9345-8070-43c0-9804-9ccb38e89e96","name":"login","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayobamidele1@gmail.com\",\r\n    // \"username\": \"Ayobami\",\r\n    \"password\": \"Haywon123@\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/login"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 21 Jul 2024 11:10:52 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"573","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Login Successful\",\n    \"data\": {\n        \"access_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoiYWNjZXNzIiwiZXhwIjoxNzIxNjQ2NjUyLCJpYXQiOjE3MjE1NjAyNTIsImp0aSI6ImE2NTg3NjUwY2IwYjQ0MTk5M2MxMTlmNjVmMTVmMmJjIiwidXNlcl9pZCI6Mn0.3KXIFEFx5YuG0nmXt_kTHFMXBDjnN60gTR76By-ktHk\",\n        \"refresh_token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0b2tlbl90eXBlIjoicmVmcmVzaCIsImV4cCI6MTcyMjE2NTA1MiwiaWF0IjoxNzIxNTYwMjUyLCJqdGkiOiJkZjNiN2I5OTAxODg0ZGZjYjQzMzY2OTA3OWRjY2FjMyIsInVzZXJfaWQiOjJ9.aiKAJYOa5iodZZhuMu955To1K4P9soR1Svs_15OsnMk\",\n        \"expires_in\": 86400\n    }\n}"},{"id":"e7ed2a8a-9267-4e00-9a85-103e74f4970e","name":"login-fail","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\": \"ayobamidele1@gmail.com\",\r\n    // \"username\": \"Ayobami\",\r\n    \"password\": \"Haywon123\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Sun, 21 Jul 2024 11:13:55 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"60","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"error\",\n    \"message\": \"Invalid credentials\",\n    \"data\": {}\n}"}],"_postman_id":"a9e9f600-af56-4ab9-af4f-ef46dbe12c60"}],"id":"f49aa88f-36c0-4fc8-8984-2c35aef214ca","_postman_id":"f49aa88f-36c0-4fc8-8984-2c35aef214ca","description":""},{"name":"Products","item":[{"name":"all-products","id":"8a8f77a1-e248-4459-aeed-77d7f70569be","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://liberty-lb-723786584.eu-north-1.elb.amazonaws.com/api/v1/products","urlObject":{"protocol":"http","path":["api","v1","products"],"host":["liberty-lb-723786584","eu-north-1","elb","amazonaws","com"],"query":[],"variable":[]}},"response":[{"id":"c737fc2e-91d8-41a1-a552-88bd7dcfa531","name":"all-products-search","originalRequest":{"method":"GET","header":[],"url":{"raw":"localhost:8001/api/v1/products?search=Tv","host":["localhost"],"port":"8001","path":["api","v1","products"],"query":[{"key":"search","value":"Tv","sortOrder":0}]}},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 07:55:29 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"241","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Fetch Successful\",\n    \"data\": {\n        \"products\": [\n            {\n                \"id\": 2,\n                \"name\": \"Flat Screen Smart Tv\",\n                \"price\": \"120000.00\",\n                \"description\": \"Smart Tv\",\n                \"discount_price\": \"1100000.00\",\n                \"available_quantity\": 6\n            }\n        ],\n        \"total_pages\": 1,\n        \"current_page\": 1\n    }\n}"},{"id":"7af15b50-ed7b-4f7f-b456-a4ab021248df","name":"all-products","originalRequest":{"method":"GET","header":[],"url":"localhost:8001/api/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 07:56:04 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"363","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Fetch Successful\",\n    \"data\": {\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Mac Air\",\n                \"price\": \"200000.00\",\n                \"description\": \"Laptop\",\n                \"discount_price\": \"190000.00\",\n                \"available_quantity\": 10\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Flat Screen Smart Tv\",\n                \"price\": \"120000.00\",\n                \"description\": \"Smart Tv\",\n                \"discount_price\": \"1100000.00\",\n                \"available_quantity\": 6\n            }\n        ],\n        \"total_pages\": 1,\n        \"current_page\": 1\n    }\n}"},{"id":"170192c7-c08a-4fe3-b98a-7ec28dae7064","name":"all-products","originalRequest":{"method":"GET","header":[],"url":"localhost:8001/api/v1/products"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 07:56:04 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"363","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Fetch Successful\",\n    \"data\": {\n        \"products\": [\n            {\n                \"id\": 1,\n                \"name\": \"Mac Air\",\n                \"price\": \"200000.00\",\n                \"description\": \"Laptop\",\n                \"discount_price\": \"190000.00\",\n                \"available_quantity\": 10\n            },\n            {\n                \"id\": 2,\n                \"name\": \"Flat Screen Smart Tv\",\n                \"price\": \"120000.00\",\n                \"description\": \"Smart Tv\",\n                \"discount_price\": \"1100000.00\",\n                \"available_quantity\": 6\n            }\n        ],\n        \"total_pages\": 1,\n        \"current_page\": 1\n    }\n}"}],"_postman_id":"8a8f77a1-e248-4459-aeed-77d7f70569be"},{"name":"product","id":"976e7a7b-19f4-4414-aade-17c467d9108a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"localhost:8001/api/v1/products/2","urlObject":{"port":"8001","path":["api","v1","products","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"979147d8-5506-4d72-aae7-e4333c2e9588","name":"product","originalRequest":{"method":"GET","header":[],"url":"localhost:8001/api/v1/products/2"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 08:00:09 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"193","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Fetch Successful\",\n    \"data\": {\n        \"id\": 2,\n        \"name\": \"Flat Screen Smart Tv\",\n        \"price\": \"120000.00\",\n        \"description\": \"Smart Tv\",\n        \"discount_price\": \"1100000.00\",\n        \"available_quantity\": 6\n    }\n}"}],"_postman_id":"976e7a7b-19f4-4414-aade-17c467d9108a"},{"name":"create-product","id":"e7af0246-0246-48b5-96d3-e3ada1f55eb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 1,\r\n    \"name\": \"Iphone 12\",\r\n    \"available_quantity\": 20,\r\n    \"price\": 2000000,\r\n    \"discount_price\": 190000,\r\n    \"description\": \"some description\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/products/","urlObject":{"port":"8001","path":["api","v1","products",""],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3af87668-e672-4a20-9337-a37a32494b90","name":"create-product","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 1,\r\n    \"name\": \"Iphone 12\",\r\n    \"available_quantity\": 20,\r\n    \"price\": 2000000,\r\n    \"discount_price\": 190000,\r\n    \"description\": \"some description\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/products/"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 08:29:04 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin, Cookie","type":"text"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"216","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Product created successfully\",\n    \"data\": {\n        \"id\": 4,\n        \"name\": \"Iphone 12\",\n        \"price\": \"2000000.00\",\n        \"description\": \"some description\",\n        \"discount_price\": \"190000.00\",\n        \"available_quantity\": 20,\n        \"category\": 1\n    }\n}"}],"_postman_id":"e7af0246-0246-48b5-96d3-e3ada1f55eb9"},{"name":"update-product","id":"031e43c7-86d9-491c-a8db-1b5842743256","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 1,\r\n    \"name\": \"Iphone 12\",\r\n    \"available_quantity\": 20,\r\n    \"price\": 2300000,\r\n    \"discount_price\": 2000000,\r\n    \"description\": \"some description updated\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/products/4","urlObject":{"port":"8001","path":["api","v1","products","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9f3c38f4-deb9-4974-92ac-3c4146831e04","name":"update-product","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"category\": 1,\r\n    \"name\": \"Iphone 12\",\r\n    \"available_quantity\": 20,\r\n    \"price\": 2300000,\r\n    \"discount_price\": 2000000,\r\n    \"description\": \"some description updated\"\r\n\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/products/4"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 08:46:18 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin","type":"text"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"225","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Product updated successfully\",\n    \"data\": {\n        \"id\": 4,\n        \"name\": \"Iphone 12\",\n        \"price\": \"2300000.00\",\n        \"description\": \"some description updated\",\n        \"discount_price\": \"2000000.00\",\n        \"available_quantity\": 20,\n        \"category\": 1\n    }\n}"}],"_postman_id":"031e43c7-86d9-491c-a8db-1b5842743256"},{"name":"delete-product","id":"a7727e39-1ac7-426b-ad4e-ed4b0e8640c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"localhost:8001/api/v1/products/4","urlObject":{"port":"8001","path":["api","v1","products","4"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2f3be3d3-6a2f-4a43-9bff-9269b0ad1da3","name":"delete-product","originalRequest":{"method":"DELETE","header":[],"url":"localhost:8001/api/v1/products/4"},"status":"No Content","code":204,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 08:49:01 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin","type":"text"},{"key":"Allow","value":"GET, PUT, PATCH, DELETE, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"73","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Product deleted successfully\",\n    \"data\": null\n}"}],"_postman_id":"a7727e39-1ac7-426b-ad4e-ed4b0e8640c6"}],"id":"7d1fff7c-fe06-4141-a77d-51e0da97cb96","_postman_id":"7d1fff7c-fe06-4141-a77d-51e0da97cb96","description":""},{"name":"Orders","item":[{"name":"place-order","id":"f3271c03-39e4-4e99-b45a-ff108060e139","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"products\": [\r\n        {\r\n            \"product_id\": 200,\r\n            \"quantity\": 2\r\n        },\r\n        {\r\n            \"product_id\": 222,\r\n            \"quantity\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/orders/place","urlObject":{"port":"8001","path":["api","v1","orders","place"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a1f84c2e-8c90-4dee-8c56-eb9670e07277","name":"place-order","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"products\": [\r\n        {\r\n            \"product_id\": 1,\r\n            \"quantity\": 2\r\n        },\r\n        {\r\n            \"product_id\": 2,\r\n            \"quantity\": 1\r\n        }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"localhost:8001/api/v1/orders/place"},"status":"Created","code":201,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 10:17:15 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin","type":"text"},{"key":"Allow","value":"POST, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"68","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"Order placed successfully\",\n    \"data\": {}\n}"}],"_postman_id":"f3271c03-39e4-4e99-b45a-ff108060e139"},{"name":"order-history","id":"80d09798-f4ba-4898-a183-a259c144fa14","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"localhost:8001/api/v1/orders","urlObject":{"port":"8001","path":["api","v1","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"598e1dbc-8db3-46b7-926e-8aac3ec700dd","name":"order-history","originalRequest":{"method":"GET","header":[],"url":"localhost:8001/api/v1/orders"},"status":"OK","code":200,"_postman_previewlanguage":"JSON","header":[{"key":"Date","value":"Mon, 22 Jul 2024 11:11:12 GMT","type":"text"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.12.4","type":"text"},{"key":"Content-Type","value":"application/json","type":"text"},{"key":"Vary","value":"Accept, origin","type":"text"},{"key":"Allow","value":"GET, HEAD, OPTIONS","type":"text"},{"key":"X-Frame-Options","value":"DENY","type":"text"},{"key":"Content-Length","value":"1006","type":"text"},{"key":"X-Content-Type-Options","value":"nosniff","type":"text"},{"key":"Referrer-Policy","value":"same-origin","type":"text"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"success\",\n    \"message\": \"\",\n    \"data\": [\n        {\n            \"order_products\": [],\n            \"created_at\": \"2024-07-22T11:10:25.753930\",\n            \"status\": \"Pending\",\n            \"order_ref\": \"NW7ZGRM98I\",\n            \"total_amount\": null\n        },\n        {\n            \"order_products\": [],\n            \"created_at\": \"2024-07-22T11:11:33.544860\",\n            \"status\": \"Pending\",\n            \"order_ref\": \"FK69Q3Z9QY\",\n            \"total_amount\": null\n        },\n        {\n            \"order_products\": [\n                {\n                    \"product_id\": 1,\n                    \"product_name\": \"Mac Air\",\n                    \"product_price\": \"200000.00\",\n                    \"quantity\": 2,\n                    \"subtotal\": \"400000.00\"\n                },\n                {\n                    \"product_id\": 2,\n                    \"product_name\": \"Flat Screen Smart Tv\",\n                    \"product_price\": \"120000.00\",\n                    \"quantity\": 1,\n                    \"subtotal\": \"120000.00\"\n                }\n            ],\n            \"created_at\": \"2024-07-22T11:14:00.541511\",\n            \"status\": \"Pending\",\n            \"order_ref\": \"DU7WG0BJ1N\",\n            \"total_amount\": null\n        },\n        {\n            \"order_products\": [\n                {\n                    \"product_id\": 1,\n                    \"product_name\": \"Mac Air\",\n                    \"product_price\": \"200000.00\",\n                    \"quantity\": 2,\n                    \"subtotal\": \"400000.00\"\n                },\n                {\n                    \"product_id\": 2,\n                    \"product_name\": \"Flat Screen Smart Tv\",\n                    \"product_price\": \"120000.00\",\n                    \"quantity\": 1,\n                    \"subtotal\": \"120000.00\"\n                }\n            ],\n            \"created_at\": \"2024-07-22T11:17:15.266574\",\n            \"status\": \"Pending\",\n            \"order_ref\": \"NQEWT4WPSS\",\n            \"total_amount\": 520000\n        }\n    ]\n}"}],"_postman_id":"80d09798-f4ba-4898-a183-a259c144fa14"}],"id":"db635b59-f2d4-453c-b7a7-3a9906c5a258","_postman_id":"db635b59-f2d4-453c-b7a7-3a9906c5a258","description":""}]}