{"info":{"_postman_id":"feec0ee4-9e3c-4c47-9390-9d4170dd0910","name":"user_management_project","description":"<html><head></head><body><p>simple sign-up, sign-in, log-out, user-list features </p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"10893095","collectionId":"feec0ee4-9e3c-4c47-9390-9d4170dd0910","publishedId":"SzmfYHBu","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2020-05-09T12:32:09.000Z"},"item":[{"name":"sign-up : success","id":"b044c9d6-ac65-4cdb-b277-a5231910ae52","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>sign-up : success</p>\n<p>user check sign-in status with responsed key by checking redis storage</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"17dde2a6-a8c1-4337-9d2a-d98b1fabeec8","name":"sign-up : success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:00:28 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"d6e73b43-e8c5-4e74-8d41-a82768fb78e1\"\n}"}],"_postman_id":"b044c9d6-ac65-4cdb-b277-a5231910ae52"},{"name":"sign-up : existing email","id":"eb1b4674-5f0d-4e43-a04c-384e03cc3da1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>when you are about to sign up with existing email </p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f56b28e6-3304-4a07-a201-e829d125dc1e","name":"sign-up : existing email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"34"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:21:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"EXISTING_EMAIL\"\n}"}],"_postman_id":"eb1b4674-5f0d-4e43-a04c-384e03cc3da1"},{"name":"sign-up : existing nick name","id":"5d83887f-832f-4488-8360-1beb37bf247d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>when you are about to sign up with existing email </p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b2d42c17-aa6a-40d5-9ae8-7178c2a16973","name":"sign-up : existing nick name","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_name\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:23:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"EXISTING_NICK_NAME\"\n}"}],"_postman_id":"5d83887f-832f-4488-8360-1beb37bf247d"},{"name":"sign-up : invalid gender id","id":"05fef36d-12fe-4a6b-b132-2ff633b4a112","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_nam\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 3\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>when you are about to sign up with existing email </p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"25c2be24-b2af-4414-a6f0-781674bd395e","name":"sign-up : invalid gender","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\",\n\t\"contact_number\": \"01012341234\",\n\t\"name\": \"master_nam\",\n\t\"nick_name\": \"master_nick_name\",\n\t\"gender_id\": 3\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"37"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:24:14 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"INVALID_GENDER_ID\"\n}"}],"_postman_id":"05fef36d-12fe-4a6b-b132-2ff633b4a112"},{"name":"sign-in : success","id":"2e0336d5-c2e8-42c7-afa5-5bf312973d29","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"user11@user.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in","description":"<p>sign-in success</p>\n<p>user check sign-in status with responsed key by checking redis storage</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","sign-in"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"de2db95b-bc07-4fdd-a947-664d89a1496f","name":"sign-in : success","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"56"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:55:48 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"e91ceecb-72d8-4e28-a97e-e86f9dce7cf4\"\n}"}],"_postman_id":"2e0336d5-c2e8-42c7-afa5-5bf312973d29"},{"name":"sign-in : invalid email","id":"087b4c99-f1de-4129-8e4d-adc0d02e4c0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in","description":"<p>when you are about to sign in with invalid email</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","sign-in"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7adcc394-8358-4a4b-ab33-28eb2036a15d","name":"sign-in : invalid email","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@maste.com\",\n\t\"password\": \"password\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in"},"status":"BAD REQUEST","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"33"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:58:32 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"INVALID_EMAIL\"\n}"}],"_postman_id":"087b4c99-f1de-4129-8e4d-adc0d02e4c0c"},{"name":"sign-in : invalid password","id":"47580185-a32d-4955-915a-71141b64c94a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"passwor\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in","description":"<p>when your input email is valid but not is password</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","sign-in"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"dab4a613-1f47-406f-97f2-95c926aba998","name":"sign-in : invalid password","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n\t\"email\": \"master@master.com\",\n\t\"password\": \"passwor\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/sign-in"},"status":"UNAUTHORIZED","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Tue, 05 May 2020 01:59:20 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"INVALID_PASSWORD\"\n}"}],"_postman_id":"47580185-a32d-4955-915a-71141b64c94a"},{"name":"log-out : success","id":"517fdad2-84c1-4c44-8390-7c257935ad26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","description":"<p>master</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"ecb7efdb-9847-42bf-9a11-5a122d0ae1a8\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/log-out","description":"<ul>\n<li>receive redis access key from client</li>\n<li>delete token from redis storage matching to received access key</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["user","log-out"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"bcdf738e-d0f6-405b-bb59-0d16716d14b8","name":"log-out : success","originalRequest":{"method":"POST","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","description":"master","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"ecb7efdb-9847-42bf-9a11-5a122d0ae1a8\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/log-out"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"27"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 10:16:00 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"517fdad2-84c1-4c44-8390-7c257935ad26"},{"name":"get user list : success","id":"cc1b0445-bcf4-4776-8043-a7f097263fc7","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>get user list with master authorization</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"52cee6b6-5253-4145-af95-72c61c62a656","name":"get user list : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU4OTQ1OTAzOH0.7jTifuURc_JPwXa8DRKc2bNq1IBPQKddGiT2Anch_Tc"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTQzODQ2M30.qn60pQdQnHELqXqb4WjrAh25_v208KkkIbDk4ir7I1M","description":"user1","type":"text","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"1551"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 12:28:59 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_count\": {\n        \"filtered_user_count\": 4,\n        \"total_user_count\": 4\n    },\n    \"user_list\": [\n        {\n            \"email\": \"user3@muser3.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": null,\n            \"recent_order_number\": null,\n            \"recent_receipt_id\": null,\n            \"user_account_id\": 4,\n            \"user_name\": \"user3_name\",\n            \"user_nick_name\": \"user3_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:42:33\"\n        },\n        {\n            \"email\": \"user2@muser2.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": \"2020-05-09 03:57:16\",\n            \"recent_order_number\": \"37481fd3-e344-4206-8ee9-0c7359dd1a98\",\n            \"recent_receipt_id\": 4,\n            \"user_account_id\": 3,\n            \"user_name\": \"user2_name\",\n            \"user_nick_name\": \"user2_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:41:57\"\n        },\n        {\n            \"email\": \"user1@muser1.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": null,\n            \"recent_order_number\": null,\n            \"recent_receipt_id\": null,\n            \"user_account_id\": 2,\n            \"user_name\": \"user1_name\",\n            \"user_nick_name\": \"user1_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:41:03\"\n        },\n        {\n            \"email\": \"master@master.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": \"2020-05-09 04:58:28\",\n            \"recent_order_number\": \"589fe6bd-3b48-4fb6-87d2-0f823a7c1f61\",\n            \"recent_receipt_id\": 6,\n            \"user_account_id\": 1,\n            \"user_name\": \"master_name\",\n            \"user_nick_name\": \"master_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:39:31\"\n        }\n    ]\n}"}],"_postman_id":"cc1b0445-bcf4-4776-8043-a7f097263fc7"},{"name":"get user list : no authorization","id":"d1eae6ff-ea97-4c35-b4bb-6cf5d26f2de3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user","description":"<p>when you are about to get user list without master authorization</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"af2d0b0f-0db7-4e48-9c0d-215a4958713a","name":"get user list : no authorization","originalRequest":{"method":"GET","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","description":"master","type":"text","disabled":true},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","description":"user1","type":"text"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user"},"status":"FORBIDDEN","code":403,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"36"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Wed, 06 May 2020 11:46:10 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"NO_AUTHORIZATION\"\n}"}],"_postman_id":"d1eae6ff-ea97-4c35-b4bb-6cf5d26f2de3"},{"name":"get user list : pagination","id":"b561c6f4-dc88-47ea-808d-cb771211da12","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU5MDAzNzQ4OH0.GG_fhNwn6BhZNYt4Iv7OJyD2rk4XVNV6AODBacleamU"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user?offset=2&limit=2","description":"<p>get user with pagination</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[{"key":"offset","value":"2"},{"key":"limit","value":"2"}],"variable":[]}},"response":[{"id":"509a294c-c061-4d07-a9ae-97cbc78a3333","name":"get user list : pagination","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU4OTQ1OTAzOH0.7jTifuURc_JPwXa8DRKc2bNq1IBPQKddGiT2Anch_Tc"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/user?offset=2&limit=2","protocol":"http","host":["localhost"],"port":"5000","path":["user"],"query":[{"key":"offset","value":"2"},{"key":"limit","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"829"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 12:29:06 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_count\": {\n        \"filtered_user_count\": 4,\n        \"total_user_count\": 4\n    },\n    \"user_list\": [\n        {\n            \"email\": \"user1@muser1.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": null,\n            \"recent_order_number\": null,\n            \"recent_receipt_id\": null,\n            \"user_account_id\": 2,\n            \"user_name\": \"user1_name\",\n            \"user_nick_name\": \"user1_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:41:03\"\n        },\n        {\n            \"email\": \"master@master.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": \"2020-05-09 04:58:28\",\n            \"recent_order_number\": \"589fe6bd-3b48-4fb6-87d2-0f823a7c1f61\",\n            \"recent_receipt_id\": 6,\n            \"user_account_id\": 1,\n            \"user_name\": \"master_name\",\n            \"user_nick_name\": \"master_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:39:31\"\n        }\n    ]\n}"}],"_postman_id":"b561c6f4-dc88-47ea-808d-cb771211da12"},{"name":"get user list : searching","id":"0ddbf2c1-55e6-43bf-b132-f0f9d650990e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU5MDAzNzQ4OH0.GG_fhNwn6BhZNYt4Iv7OJyD2rk4XVNV6AODBacleamU"}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user?name=user3","description":"<p>searching user with keywords</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user"],"host":["localhost"],"query":[{"disabled":true,"key":"contact_number","value":"123"},{"disabled":true,"key":"start_time","value":"2020-05-04"},{"disabled":true,"key":"close_time","value":"2020-06-15"},{"disabled":true,"key":"email","value":"user4"},{"disabled":true,"key":"gender_id","value":"1"},{"disabled":true,"key":"nick_name","value":"nick"},{"disabled":true,"key":"user_id","value":"5"},{"key":"name","value":"user3"}],"variable":[]}},"response":[{"id":"5d5d84cb-777f-42f0-b9c5-d3e61e73f3fa","name":"get user list : searching","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU4OTQ1OTAzOH0.7jTifuURc_JPwXa8DRKc2bNq1IBPQKddGiT2Anch_Tc"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"key\": \"9b77a8f2-defe-4226-a307-3a59a7c5d229\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/user?email=user3","protocol":"http","host":["localhost"],"port":"5000","path":["user"],"query":[{"key":"contact_number","value":"123","disabled":true},{"key":"start_time","value":"2020-05-04","type":"text","disabled":true},{"key":"close_time","value":"2020-06-15","type":"text","disabled":true},{"key":"email","value":"user3"},{"key":"gender_id","value":"1","type":"text","disabled":true},{"key":"name","value":"user3","disabled":true},{"key":"nick_name","value":"nick","type":"text","disabled":true},{"key":"user_id","value":"5","type":"text","disabled":true}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"441"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 12:30:34 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_count\": {\n        \"filtered_user_count\": 1,\n        \"total_user_count\": 4\n    },\n    \"user_list\": [\n        {\n            \"email\": \"user3@muser3.com\",\n            \"gender\": \"male\",\n            \"recent_order_date\": null,\n            \"recent_order_number\": null,\n            \"recent_receipt_id\": null,\n            \"user_account_id\": 4,\n            \"user_name\": \"user3_name\",\n            \"user_nick_name\": \"user3_nick_name\",\n            \"user_signed_up_date\": \"2020-05-09 00:42:33\"\n        }\n    ]\n}"}],"_postman_id":"0ddbf2c1-55e6-43bf-b132-f0f9d650990e"},{"name":"get user detail  as master : success userinfo + receipt","id":"2d5569bb-4825-4d8d-b111-3c0b3a0d9cd1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU5MDAzNzQ4OH0.GG_fhNwn6BhZNYt4Iv7OJyD2rk4XVNV6AODBacleamU"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/3","description":"<p>get general user detail information under master authorization</p>\n<p>in case the assgined user has order history</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","3"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"7217d830-c838-4938-add8-72262f412d8e","name":"get user detail  as master : success userinfo + receipt","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU5MDAzNzQ4OH0.GG_fhNwn6BhZNYt4Iv7OJyD2rk4XVNV6AODBacleamU"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/3"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"2299"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Mon, 18 May 2020 07:22:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"user_info\": {\n        \"contact_number\": \"01012341234\",\n        \"created_at\": \"2020-05-09 00:41:57\",\n        \"email\": \"user2@muser2.com\",\n        \"gender\": \"male\",\n        \"id\": 3,\n        \"name\": \"user2_name\",\n        \"nick_name\": \"user2_nick_name\",\n        \"receipt_detail\": [\n            {\n                \"cart_id\": 2,\n                \"order_list\": [\n                    {\n                        \"product_id\": 3,\n                        \"product_name\": \"상품3\",\n                        \"units\": 1\n                    },\n                    {\n                        \"product_id\": 4,\n                        \"product_name\": \"상품4\",\n                        \"units\": 1\n                    },\n                    {\n                        \"product_id\": 5,\n                        \"product_name\": \"상품5\",\n                        \"units\": 4\n                    },\n                    {\n                        \"product_id\": 2,\n                        \"product_name\": \"상품2\",\n                        \"units\": 2\n                    }\n                ],\n                \"order_number\": \"280f8ef7-5ef4-43f5-a9ba-ce684ccb9d09\",\n                \"receipt_id\": 1\n            },\n            {\n                \"cart_id\": 3,\n                \"order_list\": [\n                    {\n                        \"product_id\": 2,\n                        \"product_name\": \"상품2\",\n                        \"units\": 3\n                    },\n                    {\n                        \"product_id\": 3,\n                        \"product_name\": \"상품3\",\n                        \"units\": 1\n                    },\n                    {\n                        \"product_id\": 4,\n                        \"product_name\": \"상품4\",\n                        \"units\": 1\n                    },\n                    {\n                        \"product_id\": 5,\n                        \"product_name\": \"상품5\",\n                        \"units\": 2\n                    }\n                ],\n                \"order_number\": \"69b8c230-1fc9-4c8e-a530-ef6fb8953d27\",\n                \"receipt_id\": 2\n            },\n            {\n                \"cart_id\": 4,\n                \"order_list\": [\n                    {\n                        \"product_id\": 5,\n                        \"product_name\": \"상품5\",\n                        \"units\": 3\n                    }\n                ],\n                \"order_number\": \"fa82d232-2cd8-41f4-907b-1f9441e0e699\",\n                \"receipt_id\": 3\n            },\n            {\n                \"cart_id\": 5,\n                \"order_list\": [\n                    {\n                        \"product_id\": 5,\n                        \"product_name\": \"상품5\",\n                        \"units\": 5\n                    },\n                    {\n                        \"product_id\": 4,\n                        \"product_name\": \"상품4\",\n                        \"units\": 1\n                    }\n                ],\n                \"order_number\": \"37481fd3-e344-4206-8ee9-0c7359dd1a98\",\n                \"receipt_id\": 4\n            }\n        ]\n    }\n}"}],"_postman_id":"2d5569bb-4825-4d8d-b111-3c0b3a0d9cd1"},{"name":"get user detail  as master : user not exists","id":"0648bee9-668d-4538-8d64-7618bc1b4f2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjUsImV4cCI6MTU5MDAzNzQ4OH0.GG_fhNwn6BhZNYt4Iv7OJyD2rk4XVNV6AODBacleamU"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/100","description":"<p>get non-existing or master user detail information</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","100"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b3c7696f-c842-48a8-a216-09bb19f38950","name":"get user detail  as master : user not exists","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/1"},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"35"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Wed, 06 May 2020 12:57:22 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"USER_NOT_EXISTS\"\n}"}],"_postman_id":"0648bee9-668d-4538-8d64-7618bc1b4f2c"},{"name":"get mypage : success","id":"fcf41d36-5525-489a-8a64-2aa0a3d315de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>user1</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTQzODQ2M30.qn60pQdQnHELqXqb4WjrAh25_v208KkkIbDk4ir7I1M"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/mypage","description":"<p>get mypage when you are general user</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","mypage"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"346fb8d2-7adc-46b7-9d03-93038304f9ae","name":"get mypage : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","disabled":true},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/mypage"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"202"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Wed, 06 May 2020 13:06:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"contact_number\": \"01012341234\",\n    \"created_at\": \"2020-05-07 03:32:34\",\n    \"email\": \"user1@user1.com\",\n    \"gender\": \"male\",\n    \"id\": 2,\n    \"name\": \"user1_name\",\n    \"nick_name\": \"user1_nick_name\"\n}"}],"_postman_id":"fcf41d36-5525-489a-8a64-2aa0a3d315de"},{"name":"get product list : success","id":"46db27dd-76f9-4ef4-8eae-7c3c6727438e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product","description":"<ul>\n<li>get existing product list </li>\n<li>log in not required</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ca9fc38e-95d7-481f-8ee6-a457ae5b90f3","name":"get product list : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"566"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 02:03:16 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_list\": [\n        {\n            \"id\": 1,\n            \"name\": \"상품1\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"상품2\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"상품3\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"상품4\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"상품5\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"상품6\"\n        },\n        {\n            \"id\": 7,\n            \"name\": \"상품7\"\n        },\n        {\n            \"id\": 8,\n            \"name\": \"상품8\"\n        },\n        {\n            \"id\": 9,\n            \"name\": \"상품9\"\n        }\n    ]\n}"}],"_postman_id":"46db27dd-76f9-4ef4-8eae-7c3c6727438e"},{"name":"get product list : pagination","id":"b29e6bbf-253a-4f6e-8268-85b0df578515","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product?offset=1&limit=1","description":"<ul>\n<li>get existing product list </li>\n<li>log in not required</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product"],"host":["localhost"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"1"}],"variable":[]}},"response":[{"id":"e79bb0f7-3255-4189-8e33-f2d58fc36db0","name":"get product list : pagination","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/product?offset=1&limit=1","protocol":"http","host":["localhost"],"port":"5000","path":["product"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"86"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Sat, 09 May 2020 13:56:27 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_list\": [\n        {\n            \"id\": 2,\n            \"name\": \"상품2\"\n        }\n    ]\n}"}],"_postman_id":"b29e6bbf-253a-4f6e-8268-85b0df578515"},{"name":"get product list : search","id":"63076b12-485e-49da-9cfd-ab76b7bfc7f8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>master</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product?name=상","description":"<ul>\n<li>get existing product list </li>\n<li>log in not required</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product"],"host":["localhost"],"query":[{"disabled":true,"key":"offset","value":"1"},{"disabled":true,"key":"limit","value":"1"},{"disabled":true,"key":"id","value":"2"},{"key":"name","value":"상"}],"variable":[]}},"response":[{"id":"7081e0c8-5cbb-4062-8ab7-fd7f1e37ad80","name":"get product list : search","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/product?name=상","protocol":"http","host":["localhost"],"port":"5000","path":["product"],"query":[{"key":"offset","value":"1","disabled":true},{"key":"limit","value":"1","disabled":true},{"key":"id","value":"2","disabled":true},{"key":"name","value":"상"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"566"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Sat, 09 May 2020 13:59:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_list\": [\n        {\n            \"id\": 1,\n            \"name\": \"상품1\"\n        },\n        {\n            \"id\": 2,\n            \"name\": \"상품2\"\n        },\n        {\n            \"id\": 3,\n            \"name\": \"상품3\"\n        },\n        {\n            \"id\": 4,\n            \"name\": \"상품4\"\n        },\n        {\n            \"id\": 5,\n            \"name\": \"상품5\"\n        },\n        {\n            \"id\": 6,\n            \"name\": \"상품6\"\n        },\n        {\n            \"id\": 7,\n            \"name\": \"상품7\"\n        },\n        {\n            \"id\": 8,\n            \"name\": \"상품8\"\n        },\n        {\n            \"id\": 9,\n            \"name\": \"상품9\"\n        }\n    ]\n}"}],"_postman_id":"63076b12-485e-49da-9cfd-ab76b7bfc7f8"},{"name":"get product detail : success","id":"9d0a64d3-9dad-4cdb-a05b-68c55cdbb0f3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>user1</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwiZXhwIjoxNTg5MzQ4NTgzfQ.r4_j6zI8t9viN8ocQ0QBIJlonZ7jQeMG70p17X2MJqc"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/2","description":"<ul>\n<li>get product detail information</li>\n<li>log in not required</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product","2"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"98d892e3-f3a5-443c-beff-6ec951b3724b","name":"get product detail : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo"},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTAyNDczMX0._mA0z4lFq-feK7zW9ohcjFYlHc9QzDY_vZTUtbE08BA","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/2"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"112"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 02:06:46 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"product_list\": {\n        \"created_at\": \"2020-05-07 18:41:43\",\n        \"id\": 2,\n        \"name\": \"상품2\"\n    }\n}"}],"_postman_id":"9d0a64d3-9dad-4cdb-a05b-68c55cdbb0f3"},{"name":"add to cart : create first","id":"e09e82dc-c167-47aa-af11-dc34fc8c1fb4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/3/cart","description":"<p>add product to my cart</p>\n","urlObject":{"protocol":"http","port":"5000","path":["product","3","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9910f973-0b3c-41d1-a230-89c0ebf86bef","name":"add to cart : sccess","originalRequest":{"method":"POST","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MiwiZXhwIjoxNTg5MzQ4NTgzfQ.r4_j6zI8t9viN8ocQ0QBIJlonZ7jQeMG70p17X2MJqc","description":"user1","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/3/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"27"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 06:11:49 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"e09e82dc-c167-47aa-af11-dc34fc8c1fb4"},{"name":"add to cart : product not exists","id":"24e98f93-38e5-4050-b1cd-00227db6e6f5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/99/cart","description":"<p>when you are about to add non-existing product to cart</p>\n","urlObject":{"protocol":"http","port":"5000","path":["product","99","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e0c529bf-5d19-4d1a-8db1-64bfd927931e","name":"add to cart : product not exists","originalRequest":{"method":"POST","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"user1","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/99/cart"},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"38"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Mon, 18 May 2020 10:19:25 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"PRODUCT_NOT_EXISTS\"\n}"}],"_postman_id":"24e98f93-38e5-4050-b1cd-00227db6e6f5"},{"name":"get my cart : success","id":"3ec07a6e-66b9-4519-997e-a8b4ecf971ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>user3</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart","description":"<p>get my cart you added\ncontent</p>\n<ul>\n<li>order_id : the intention to order the product you added to cart</li>\n<li>created_at : the date and time that you add an intention to order added to carts</li>\n<li>product_id : the product id what you want to order</li>\n<li>product_name : the product name what you want to order</li>\n<li>units : the unit of the product you intended to order(using scalar sub query and 'group by' command in order to get product units)</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"a4ad9802-395c-48c9-90cf-1f70b43e4018","name":"get my cart : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","disabled":true},{"description":"user3","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTQzODM3MX0.vSHevnWPxXulMBL2Opjz_JdRe8gwJX2CA2G5syCQJpU","description":"user1","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"367"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 09:56:35 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"cart_id\": 5,\n    \"cart_products\": [\n        {\n            \"created_at\": \"2020-05-09 00:48:35\",\n            \"order_id\": 11,\n            \"product_id\": 5,\n            \"product_name\": \"상품5\",\n            \"units\": 5\n        },\n        {\n            \"created_at\": \"2020-05-09 00:48:25\",\n            \"order_id\": 9,\n            \"product_id\": 4,\n            \"product_name\": \"상품4\",\n            \"units\": 1\n        }\n    ]\n}"}],"_postman_id":"3ec07a6e-66b9-4519-997e-a8b4ecf971ed"},{"name":"get my cart : pagination","id":"a8f557f2-8176-4562-9f17-19caec3c7c6b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>user1</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart?offset=1&limit=1","description":"<p>get mypage when you are general user</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart"],"host":["localhost"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"1"}],"variable":[]}},"response":[{"id":"76d615bc-3b78-4b6e-8830-8cf16e3a98ba","name":"get my cart : pagination","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","disabled":true},{"description":"user1","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTA5NDQ1M30.3Wk2Nk5fw0Q-JfYPlMcHGKKnKPbZIBhKLzQrBEvlNMA"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/user/my-cart?offset=1&limit=1","protocol":"http","host":["localhost"],"port":"5000","path":["user","my-cart"],"query":[{"key":"offset","value":"1"},{"key":"limit","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"182"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 07:58:10 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"my_cart\": [\n        {\n            \"created_at\": \"2020-05-08 00:11:44\",\n            \"order_id\": 4,\n            \"product_id\": 2,\n            \"product_name\": \"상품2\",\n            \"units\": 1\n        }\n    ]\n}"}],"_postman_id":"a8f557f2-8176-4562-9f17-19caec3c7c6b"},{"name":"get my cart : cart not exists","id":"7d4d96b1-b17b-487e-8154-a68b0d2af9bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"description":"<p>user3</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart","description":"<p>when you are about to get your the cart but not exists. you can add an items to make cart and intention of order.</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"973c78c6-8557-46e8-84cd-2ae734eae209","name":"get my cart : cart not exists","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTAxOTg1MX0.lUY89kJJTXZaa24paor-060SGSLMnjn-ujoq_dPdIDo","disabled":true},{"description":"user3","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjEsImV4cCI6MTU4OTQzODM3MX0.vSHevnWPxXulMBL2Opjz_JdRe8gwJX2CA2G5syCQJpU","description":"user1","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart"},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"35"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 09:53:38 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"CART_NOT_EXISTS\"\n}"}],"_postman_id":"7d4d96b1-b17b-487e-8154-a68b0d2af9bc"},{"name":"delete from cart : success","id":"ebd7aae4-e379-45a4-ad57-4ebeaefcb5fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM","description":"<p>user3</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/5/cart","description":"<ul>\n<li>delete the product from your cart regardless of how many units it has</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product","5","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"150d584f-7052-4261-a3fd-2724727ab642","name":"delete from cart : success","originalRequest":{"method":"DELETE","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTA5NDQ1M30.3Wk2Nk5fw0Q-JfYPlMcHGKKnKPbZIBhKLzQrBEvlNMA","description":"user1","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/1/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"27"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 08:28:11 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"ebd7aae4-e379-45a4-ad57-4ebeaefcb5fb"},{"name":"edit unit from cart : success","id":"a9eef9cd-8fb7-417e-a9b1-b6e0c2e8ff2a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTA5NDQ1M30.3Wk2Nk5fw0Q-JfYPlMcHGKKnKPbZIBhKLzQrBEvlNMA","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/1/cart","description":"<ul>\n<li>take the unit out of the added item</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["product","1","cart"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0273f618-c851-4909-958f-2ca8676f2a14","name":"edit unit from cart : success","originalRequest":{"method":"DELETE","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTA5NDQ1M30.3Wk2Nk5fw0Q-JfYPlMcHGKKnKPbZIBhKLzQrBEvlNMA","description":"user1","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/product/1/cart"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"27"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Thu, 07 May 2020 08:28:11 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"SUCCESS\"\n}"}],"_postman_id":"a9eef9cd-8fb7-417e-a9b1-b6e0c2e8ff2a"},{"name":"make order : success","id":"f71c0b42-e4ff-43ae-a595-209bf48b3434","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"{\n\t\"cart_id\": 9\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart/order","description":"<ul>\n<li>check out the recent cart</li>\n<li>give a request with cart_id which is not checked out imformed from my-cart page</li>\n<li>update is_checked_out column in carts table</li>\n<li>create the value in receipts table</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart","order"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b14247f8-0932-40c3-9398-2c3b3270bdad","name":"make order : success","originalRequest":{"method":"POST","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"description":"user3","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"}],"body":{"mode":"raw","raw":"{\n\t\"cart_id\": 5\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart/order"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"51"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 09:57:16 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"checked_out_cart_id\": 5,\n    \"receipt_id\": 4\n}"}],"_postman_id":"f71c0b42-e4ff-43ae-a595-209bf48b3434"},{"name":"make order : cart not exists","id":"0da5c633-59ae-4878-9cdb-cdd2eb4d51e2","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[{"description":"<p>user3</p>\n","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"}],"body":{"mode":"raw","raw":"{\n\t\"cart_id\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart/order","description":"<p>when you are about the check out cart which is not exists or already checked out</p>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart","order"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"05d877ef-87b6-4cc0-b972-dbd0a573855e","name":"make order : cart not exists","originalRequest":{"method":"POST","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"description":"user3","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"}],"body":{"mode":"raw","raw":"{\n\t\"cart_id\": 4\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart/order"},"status":"NOT FOUND","code":404,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"35"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 10:13:09 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"message\": \"CART_NOT_EXISTS\"\n}"}],"_postman_id":"0da5c633-59ae-4878-9cdb-cdd2eb4d51e2"},{"name":"get order receipt : success","id":"3a8d4357-cc17-4ce1-9f2a-7f3a51ea83b1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU5MDA1MDM5MX0.xt3YqGRlicX4mc5umWul8H8DHZ6qB73RSSqvUwl02Sg","description":"<p>user1</p>\n","type":"text"}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5000/user/my-cart/order?receipt_id=7&checked_out_cart_id=9","description":"<ul>\n<li>get receipt of ordered items </li>\n<li>send a request with receipt_id and checked_out_cart_id in return of order placement</li>\n<li>receipt_id and checked_out_cart_id is imperetive values which should be on the url as query parameters</li>\n</ul>\n","urlObject":{"protocol":"http","port":"5000","path":["user","my-cart","order"],"host":["localhost"],"query":[{"key":"receipt_id","value":"7"},{"key":"checked_out_cart_id","value":"9"}],"variable":[]}},"response":[{"id":"68790224-dcc0-40ba-898b-10765c8106e5","name":"get order receipt : success","originalRequest":{"method":"GET","header":[{"description":"master","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6MSwiZXhwIjoxNTg5MzQ4MTM1fQ.3-dGpAf415I-YMlwBnmlg0HJ8gWGmkfNVXbMjEASWxs","disabled":true},{"description":"user3","key":"Authorization","type":"text","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjMsImV4cCI6MTU4OTQzODUxN30.BFSHKF2udcMe5nR7ck7fZlIbl6rNWBtEfih6tjQLHIM"},{"key":"Authorization","value":"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJ1c2VyX2FjY291bnRfaWQiOjIsImV4cCI6MTU4OTQzODQ2M30.qn60pQdQnHELqXqb4WjrAh25_v208KkkIbDk4ir7I1M","description":"user2","type":"text","disabled":true}],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5000/user/my-cart/order?receipt_id=3&checked_out_cart_id=4","protocol":"http","host":["localhost"],"port":"5000","path":["user","my-cart","order"],"query":[{"key":"receipt_id","value":"3"},{"key":"checked_out_cart_id","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json"},{"key":"Content-Length","value":"409"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Server","value":"Werkzeug/1.0.1 Python/3.8.0"},{"key":"Date","value":"Fri, 08 May 2020 09:42:50 GMT"}],"cookie":[],"responseTime":null,"body":"{\n    \"receipt\": {\n        \"cart_id\": 4,\n        \"carts.created_at\": \"2020-05-09 03:05:33\",\n        \"carts.id\": 4,\n        \"created_at\": \"2020-05-09 03:06:38\",\n        \"id\": 3,\n        \"is_checked_out\": 1,\n        \"order_list\": [\n            {\n                \"product_id\": 5,\n                \"product_name\": \"상품5\",\n                \"units\": 3\n            }\n        ],\n        \"order_number\": \"fa82d232-2cd8-41f4-907b-1f9441e0e699\",\n        \"user_account_id\": 3\n    }\n}"}],"_postman_id":"3a8d4357-cc17-4ce1-9f2a-7f3a51ea83b1"}]}