{"info":{"_postman_id":"8930ca37-4a39-4b4f-9322-12a52ca62002","name":"invoice","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"18830601","collectionId":"8930ca37-4a39-4b4f-9322-12a52ca62002","publishedId":"2sA2r81iRo","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-02-18T06:26:15.000Z"},"item":[{"name":"create invoice","id":"93058af7-648e-4369-a678-4cf8809ac3fc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"date\": \"2024-02-18\",\r\n  \"customer_name\": \"Anirban Pal\",\r\n  \"invoice_details\": [\r\n    {\r\n      \"description\": \"Product D\",\r\n      \"quantity\": 2,\r\n      \"unit_price\": 10.00,\r\n      \"price\": 20.00\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/","urlObject":{"protocol":"http","port":"8000","path":["invoices",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"8dfec833-7cb4-4070-88bd-ae5751b493d2","name":"New Request","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n  \"date\": \"2024-02-18\",\r\n  \"customer_name\": \"Amrit Pal\",\r\n  \"invoice_details\": [\r\n    {\r\n      \"description\": \"Product C\",\r\n      \"quantity\": 2,\r\n      \"unit_price\": 10.00,\r\n      \"price\": 20.00\r\n    }\r\n  ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 18 Feb 2024 06:22:42 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Cookie"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"96"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 5,\n    \"description\": \"Product C\",\n    \"quantity\": 2,\n    \"unit_price\": \"10.00\",\n    \"price\": \"20.00\",\n    \"invoice\": 4\n}"}],"_postman_id":"93058af7-648e-4369-a678-4cf8809ac3fc"},{"name":"get invoice","id":"3ae83c00-9174-4bbe-9d00-197d4f3ed67e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/invoices/5","urlObject":{"protocol":"http","port":"8000","path":["invoices","5"],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"1250306f-3ca7-4b08-a99f-926e25767286","name":"New Request","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/invoices/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 18 Feb 2024 06:19:18 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Cookie"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"294"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"invoice_details\": [\n        {\n            \"id\": 3,\n            \"description\": \"Product C(Updated)\",\n            \"quantity\": 3,\n            \"unit_price\": \"12.00\",\n            \"price\": \"36.00\",\n            \"invoice\": 3\n        },\n        {\n            \"id\": 4,\n            \"description\": \"Product A (Updated)\",\n            \"quantity\": 3,\n            \"unit_price\": \"12.00\",\n            \"price\": \"36.00\",\n            \"invoice\": 3\n        }\n    ],\n    \"date\": \"2024-02-18\",\n    \"customer_name\": \"Subhradeep Pal\"\n}"}],"_postman_id":"3ae83c00-9174-4bbe-9d00-197d4f3ed67e"},{"name":"get all invoices","id":"8ef8c6c2-929f-4299-85ff-9403b0b67f41","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/invoices/","urlObject":{"protocol":"http","port":"8000","path":["invoices",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"bab65fa2-926f-4b32-af6c-1332cb6b8460","name":"get all invoices","originalRequest":{"method":"GET","header":[],"url":"http://127.0.0.1:8000/invoices/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 18 Feb 2024 06:22:56 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Cookie"},{"key":"Allow","value":"GET, POST, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"647"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"id\": 2,\n        \"invoice_details\": [\n            {\n                \"id\": 1,\n                \"description\": \"Product A\",\n                \"quantity\": 2,\n                \"unit_price\": \"10.00\",\n                \"price\": \"20.00\",\n                \"invoice\": 2\n            }\n        ],\n        \"date\": \"2024-02-18\",\n        \"customer_name\": \"Dipsikha Pal\"\n    },\n    {\n        \"id\": 3,\n        \"invoice_details\": [\n            {\n                \"id\": 3,\n                \"description\": \"Product C(Updated)\",\n                \"quantity\": 3,\n                \"unit_price\": \"12.00\",\n                \"price\": \"36.00\",\n                \"invoice\": 3\n            },\n            {\n                \"id\": 4,\n                \"description\": \"Product A (Updated)\",\n                \"quantity\": 3,\n                \"unit_price\": \"12.00\",\n                \"price\": \"36.00\",\n                \"invoice\": 3\n            }\n        ],\n        \"date\": \"2024-02-18\",\n        \"customer_name\": \"Subhradeep Pal\"\n    },\n    {\n        \"id\": 4,\n        \"invoice_details\": [\n            {\n                \"id\": 5,\n                \"description\": \"Product C\",\n                \"quantity\": 2,\n                \"unit_price\": \"10.00\",\n                \"price\": \"20.00\",\n                \"invoice\": 4\n            }\n        ],\n        \"date\": \"2024-02-18\",\n        \"customer_name\": \"Amrit Pal\"\n    }\n]"}],"_postman_id":"8ef8c6c2-929f-4299-85ff-9403b0b67f41"},{"name":"update invoice","id":"f7947631-9bef-49ed-9ba0-b1317a473659","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"date\": \"2024-02-18\",\r\n  \"customer_name\":\"Anirban Pal\",\r\n  \"invoice_details\": [\r\n    {\r\n      \"id\": 6,  \r\n      \"description\": \"Product D(Updated)\",\r\n      \"quantity\": 3,\r\n      \"unit_price\": 12.00,\r\n      \"price\": 36.00\r\n    }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/5/","urlObject":{"protocol":"http","port":"8000","path":["invoices","5",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"2f91ec65-3cc1-4772-b58d-cde2042770d7","name":"update","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n  \"date\": \"2024-02-18\",\r\n  \"customer_name\":\"Subhradeep Pal\",\r\n  \"invoice_details\": [\r\n    {\r\n      \"id\": 3,  \r\n      \"description\": \"Product C(Updated)\",\r\n      \"quantity\": 3,\r\n      \"unit_price\": 12.00,\r\n      \"price\": 36.00\r\n    }\r\n    ]\r\n}","options":{"raw":{"language":"json"}}},"url":"http://127.0.0.1:8000/invoices/3/"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Date","value":"Sun, 18 Feb 2024 06:19:13 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.10"},{"key":"Content-Type","value":"application/json"},{"key":"Vary","value":"Accept, origin, Cookie"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"105"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":"{\n    \"id\": 3,\n    \"description\": \"Product C(Updated)\",\n    \"quantity\": 3,\n    \"unit_price\": \"12.00\",\n    \"price\": \"36.00\",\n    \"invoice\": 3\n}"}],"_postman_id":"f7947631-9bef-49ed-9ba0-b1317a473659"},{"name":"delete invoice","id":"f1a5d7ba-0a6e-42e3-8ccb-bd008580eee5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/invoices/5/","urlObject":{"protocol":"http","port":"8000","path":["invoices","5",""],"host":["127","0","0","1"],"query":[],"variable":[]}},"response":[{"id":"9128d6be-1d9f-40e1-a3f5-82c4ff423411","name":"delete","originalRequest":{"method":"DELETE","header":[],"url":"http://127.0.0.1:8000/invoices/1/"},"status":"No Content","code":204,"_postman_previewlanguage":"plain","header":[{"key":"Date","value":"Sun, 18 Feb 2024 06:22:17 GMT"},{"key":"Server","value":"WSGIServer/0.2 CPython/3.10.10"},{"key":"Vary","value":"Accept, origin, Cookie"},{"key":"Allow","value":"GET, PUT, DELETE, HEAD, OPTIONS"},{"key":"X-Frame-Options","value":"DENY"},{"key":"Content-Length","value":"0"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"Referrer-Policy","value":"same-origin"},{"key":"Cross-Origin-Opener-Policy","value":"same-origin"}],"cookie":[],"responseTime":null,"body":null}],"_postman_id":"f1a5d7ba-0a6e-42e3-8ccb-bd008580eee5"}]}