{"info":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"31412288","collectionId":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","publishedId":"2sA3QniaEC","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2024-05-22T02:44:07.000Z"},"item":[{"name":"Authentication","item":[{"name":"Register customer","id":"547a2d6a-64b7-4fb6-986d-cba55d2a13e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"customer1\",\n    \"addresses\": [\n        {\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/customer","urlObject":{"path":[".rest","auth","register","customer"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"a6feb9e2-e784-4b5b-8308-9df5b16f23f6","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"customer1\",\n    \"addresses\": [\n        {\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/customer"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:11:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"$2a$10$NyrRhS2oKrDyubczndbfnOs7s5k/rfhw2IhyetT1WlN3oUyyGLUUC\",\n    \"createdAt\": \"2024-05-21T08:11:20.097968\",\n    \"updatedAt\": \"2024-05-21T08:11:20.098015\",\n    \"addresses\": [\n        {\n            \"addressId\": 1,\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"addressId\": 2,\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"creditCardId\": 1,\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ],\n    \"role\": {\n        \"roleId\": 1,\n        \"name\": \"CUSTOMER\",\n        \"description\": \"Default customer role\",\n        \"createdAt\": \"2024-05-21T08:10:15.482888\",\n        \"updatedAt\": \"2024-05-21T08:10:15.482888\"\n    }\n}"},{"id":"d4226395-ba4f-4444-a904-00fdbc54f23e","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"\",\n    \"password\": \"\",\n    \"addresses\": [\n        {\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/customer"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:11:56 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Some fields are invalid\",\n    \"fields\": {\n        \"password\": \"must not be blank\",\n        \"username\": \"must not be blank\"\n    }\n}"},{"id":"a5454882-113d-41c8-9990-1016352f4405","name":"409","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"customer1\",\n    \"addresses\": [\n        {\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/customer"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:12:10 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 409,\n    \"error\": \"Conflict\",\n    \"message\": \"Mobile already exists\"\n}"}],"_postman_id":"547a2d6a-64b7-4fb6-986d-cba55d2a13e4"},{"name":"Register seller","id":"b6098c21-e5bf-4ef3-96c3-3795c1d89612","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/seller","urlObject":{"path":[".rest","auth","register","seller"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"b700a64d-8139-4f00-a834-0f2526d4069d","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/seller"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:13:25 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"sellerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"$2a$10$FedVyqBhQj173QipQ89.NeCRxUnxIrTwDiGXpKH5Nfn/hIZgni2lm\",\n    \"createdAt\": \"2024-05-21T08:13:25.031633\",\n    \"updatedAt\": \"2024-05-21T08:13:25.031657\",\n    \"role\": {\n        \"roleId\": 2,\n        \"name\": \"SELLER\",\n        \"description\": \"Default seller role\",\n        \"createdAt\": \"2024-05-21T08:10:15.483952\",\n        \"updatedAt\": \"2024-05-21T08:10:15.483952\"\n    }\n}"},{"id":"e3a1d2cb-5384-4e7c-8bcc-e647d9e87e77","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"\",\n    \"password\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/seller"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:13:37 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Some fields are invalid\",\n    \"fields\": {\n        \"password\": \"must not be blank\",\n        \"username\": \"must not be blank\"\n    }\n}"},{"id":"389540ff-1c8e-4da3-a364-c963e5489bb1","name":"409","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/register/seller"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:13:45 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 409,\n    \"error\": \"Conflict\",\n    \"message\": \"Mobile already exists\"\n}"}],"_postman_id":"b6098c21-e5bf-4ef3-96c3-3795c1d89612"},{"name":"Login","id":"578f9f91-227a-4a72-856a-208cbcb6d669","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"noauth","isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"customer1\",\n    \"password\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/login","urlObject":{"path":[".rest","auth","login"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"823ed921-cb73-4441-a15e-6b1be3ab8848","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"customer1\",\n    \"password\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:13:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"accessToken\": \"eyJhbGciOiJIUzM4NCJ9.eyJzdWIiOiJjdXN0b21lcjEiLCJpYXQiOjE3MTYyNTA0MzcsImV4cCI6MTcxNjI1NDAzN30.AfZjZYqJrR-fuyXuUdGFxYYamWSuD9pFf1v39fKCEc-ePlHMVJhV30hnQbOsfh9Z\",\n    \"tokenType\": \"Bearer\",\n    \"expiresIn\": 3600\n}"},{"id":"0529b14e-cb6d-4465-b4f9-bf6a692a7a4f","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"\",\n    \"password\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/login"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:14:07 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Some fields are invalid\",\n    \"fields\": {\n        \"password\": \"must not be blank\",\n        \"username\": \"must not be blank\"\n    }\n}"},{"id":"aa2dc539-00e7-43ce-8321-94bbe1554258","name":"401","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"customer1\",\n    \"password\": \"invalid\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/login"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:14:22 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"Bad credentials\"\n}"}],"_postman_id":"578f9f91-227a-4a72-856a-208cbcb6d669"},{"name":"Logout","id":"d719c20f-8aad-447c-9486-a1df5a286ea0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/logout","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","auth","logout"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"fbcfcf6a-097b-41f0-a5f8-bd5d356caa55","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/logout"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:14:51 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"fe302376-df55-41a2-8e4e-e102443a3bfc","name":"400","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"username\": \"customer1\",\n    \"password\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/auth/logout"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Already logged out\"\n}"}],"_postman_id":"d719c20f-8aad-447c-9486-a1df5a286ea0"}],"id":"fd3a3eea-f0cb-4750-8562-48e23bef0ba9","_postman_id":"fd3a3eea-f0cb-4750-8562-48e23bef0ba9","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}},{"name":"Customers","item":[{"name":"Get current customer","id":"ae714b24-9f02-43bb-95ac-7c47fdc0a5a3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ce71d9f0-77eb-4f5b-9db9-2898af49272c","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:15:35 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"1111111111\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"$2a$10$NyrRhS2oKrDyubczndbfnOs7s5k/rfhw2IhyetT1WlN3oUyyGLUUC\",\n    \"createdAt\": \"2024-05-21T08:11:20.097968\",\n    \"updatedAt\": \"2024-05-21T08:11:20.098015\",\n    \"addresses\": [\n        {\n            \"addressId\": 1,\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"addressId\": 2,\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"creditCardId\": 1,\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ],\n    \"role\": {\n        \"roleId\": 1,\n        \"name\": \"CUSTOMER\",\n        \"description\": \"Default customer role\",\n        \"createdAt\": \"2024-05-21T08:10:15.482888\",\n        \"updatedAt\": \"2024-05-21T08:10:15.482888\"\n    }\n}"},{"id":"1b35fc83-1f87-4939-8a41-2cc93ef22708","name":"401","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/current"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"You must be logged in to make this request\"\n}"}],"_postman_id":"ae714b24-9f02-43bb-95ac-7c47fdc0a5a3"},{"name":"Get customer by ID","id":"3dc6d93d-f983-48d6-ad74-ede5a684534b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ed405f18-7414-43e7-9dcc-9f3393f13847","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"3333333333\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"$2a$12$FuJMrIexkMsPZygTiPVSuumwthkq17P9X2Uo0Ffkp5z6Rloml7rgC\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n    \"addresses\": [\n        {\n            \"addressId\": 1,\n            \"type\": \"home\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"2222\"\n        },\n        {\n            \"addressId\": 2,\n            \"type\": \"office\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"2222\"\n        }\n    ],\n    \"creditCard\": [\n        {\n            \"creditCardId\": 1,\n            \"cardNumber\": \"444444444444444\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}"},{"id":"aeecf6d9-7617-4b30-97c4-a79f8e78cd82","name":"401","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/1"},"status":"Unauthorized","code":401,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 401,\n    \"error\": \"Unauthorized\",\n    \"message\": \"You must be logged in to make this request\"\n}"},{"id":"f11c3af2-0723-4f88-a4e7-4bd08e9abd33","name":"403","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/1"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:15:54 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"error\": \"Forbidden\",\n    \"message\": \"Access Denied\"\n}"},{"id":"e9df4f5f-de71-48ef-821c-e5131de4c15b","name":"404","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers/11"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Thu, 16 May 2024 20:27:55 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"User not found\"\n}"}],"_postman_id":"3dc6d93d-f983-48d6-ad74-ede5a684534b"},{"name":"Get all customers","id":"b73dd215-4744-42a5-92d1-73888a2dee2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"2d9fcbc6-d12f-4d48-8787-c1099ed95f9a","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"customers\": [\n        {\n            \"customerId\": 1,\n            \"username\": \"customer1\",\n            \"mobile\": \"1111111111\",\n            \"email\": \"customer1@yopmail.com\"\n        },\n        {\n            \"customerId\": 2,\n            \"username\": \"customer2\",\n            \"mobile\": \"2222222222\",\n            \"email\": \"customer2@yopmail.com\"\n        },\n        {\n            \"customerId\": 3,\n            \"username\": \"customer3\",\n            \"mobile\": \"3333333333\",\n            \"email\": \"customer3@yopmail.com\"\n        }\n    ]\n}"},{"id":"9f370034-a29b-4bf8-b4d4-5ab5eb3613e2","name":"403","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/customers"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:16:03 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"error\": \"Forbidden\",\n    \"message\": \"Access Denied\"\n}"}],"_postman_id":"b73dd215-4744-42a5-92d1-73888a2dee2e"},{"name":"Update current customer","id":"5e02a327-cfe9-40ba-8235-18fa53ffc965","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1new\",\n    \"lastName\": \"testLastName1new\",\n    \"mobile\": \"1111111112\",\n    \"email\": \"testEmail1new@yopmail.com\",\n    \"username\": \"customer1\",\n    \"creditCards\": [\n        {\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ]\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"5f06c8f3-dafe-4f4c-862c-7c76a55f9ec1","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1new\",\n    \"lastName\": \"testLastName1new\",\n    \"mobile\": \"1111111112\",\n    \"email\": \"testEmail1new@yopmail.com\",\n    \"username\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:16:32 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"customerId\": 1,\n    \"firstName\": \"testFirstName1new\",\n    \"lastName\": \"testLastName1new\",\n    \"mobile\": \"1111111112\",\n    \"email\": \"testEmail1new@yopmail.com\",\n    \"username\": \"customer1\",\n    \"password\": \"$2a$10$NyrRhS2oKrDyubczndbfnOs7s5k/rfhw2IhyetT1WlN3oUyyGLUUC\",\n    \"createdAt\": \"2024-05-21T08:11:20.097968\",\n    \"updatedAt\": \"2024-05-21T08:11:20.098015\",\n    \"addresses\": [\n        {\n            \"addressId\": 1,\n            \"type\": \"HOME\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        },\n        {\n            \"addressId\": 2,\n            \"type\": \"OFFICE\",\n            \"address1\": \"testAddress1\",\n            \"address2\": \"testAddress2\",\n            \"city\": \"testCity\",\n            \"province\": \"testProvince\",\n            \"zipCode\": \"1111\"\n        }\n    ],\n    \"creditCards\": [\n        {\n            \"creditCardId\": 1,\n            \"cardNumber\": \"111111111111111\",\n            \"cardHolderName\": \"testFirstName1 testLastName1\",\n            \"expirationDate\": \"2030-01-01\",\n            \"cvc\": \"111\"\n        }\n    ],\n    \"role\": {\n        \"roleId\": 1,\n        \"name\": \"CUSTOMER\",\n        \"description\": \"Default customer role\",\n        \"createdAt\": \"2024-05-21T08:10:15.482888\",\n        \"updatedAt\": \"2024-05-21T08:10:15.482888\"\n    }\n}"},{"id":"2c963d6e-b73d-480a-b6f3-5a6890860276","name":"400","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1new\",\n    \"lastName\": \"testLastName1new\",\n    \"mobile\": \"1111111112\",\n    \"email\": \"testEmail1new@yopmail.com\",\n    \"username\": \"\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:17:26 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Some fields are invalid\",\n    \"fields\": {\n        \"username\": \"must not be blank\"\n    }\n}"},{"id":"c3c3f5c0-ddc8-442a-9b09-4e22f290e265","name":"409","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1new\",\n    \"lastName\": \"testLastName1new\",\n    \"mobile\": \"1111111121\",\n    \"email\": \"testEmail1new@yopmail.com\",\n    \"username\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current"},"status":"Conflict","code":409,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:17:14 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 409,\n    \"error\": \"Conflict\",\n    \"message\": \"Mobile already exists\"\n}"}],"_postman_id":"5e02a327-cfe9-40ba-8235-18fa53ffc965"},{"name":"Update current customer password","id":"f277b2f1-303c-47e8-9105-d2d1233b43d6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"customer1\",\n    \"newPassword\": \"customer1\",\n    \"newPasswordConfirm\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current","password"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"737a816d-8cc2-4b30-b44a-3bde98750b82","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"customer1\",\n    \"newPassword\": \"customer1\",\n    \"newPasswordConfirm\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:17:57 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"ae407049-bfa8-4df1-89d1-2560e2a69518","name":"400 Current passowrd incorrect","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"invalid\",\n    \"newPassword\": \"customer1\",\n    \"newPasswordConfirm\": \"customer1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:18:08 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Current password is incorrect\"\n}"},{"id":"12629252-6212-43ad-a7ec-ab8313c1e47b","name":"400 Passwords do not match","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"customer1\",\n    \"newPassword\": \"customer1\",\n    \"newPasswordConfirm\": \"invalid\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/password"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:18:21 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Passwords do not match\"\n}"}],"_postman_id":"f277b2f1-303c-47e8-9105-d2d1233b43d6"},{"name":"Update current customer address","id":"10bb4da1-649b-477b-8d3b-c4b4520c4d0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address1\": \"testAddress1new\",\n    \"address2\": \"testAddress2new\",\n    \"city\": \"testCitynew\",\n    \"province\": \"testProvince\",\n    \"zipCode\": \"1111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/HOME","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current","address","HOME"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3f0421df-f3a1-4305-a3f2-54dc17544808","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address1\": \"testAddress1new\",\n    \"address2\": \"testAddress2new\",\n    \"city\": \"testCitynew\",\n    \"province\": \"testProvince\",\n    \"zipCode\": \"1111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/HOME"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:19:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"addressId\": 1,\n    \"type\": \"HOME\",\n    \"address1\": \"testAddress1new\",\n    \"address2\": \"testAddress2new\",\n    \"city\": \"testCitynew\",\n    \"province\": \"testProvince\",\n    \"zipCode\": \"1111\"\n}"},{"id":"bdc6bcb6-e14d-4d0c-9d7b-2f5d13c2fc5a","name":"400","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address1\": \"testAddress1new\",\n    \"address2\": \"testAddress2new\",\n    \"city\": \"testCitynew\",\n    \"province\": \"testProvince\",\n    \"zipCode\": \"1111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/INVALID"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:19:23 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Failed to convert value of type 'java.lang.String' to required type 'com.lpdecastro.ecommerce.entity.AddressType'; Failed to convert from type [java.lang.String] to type [@org.springframework.web.bind.annotation.PathVariable com.lpdecastro.ecommerce.entity.AddressType] for value [INVALID]\"\n}"},{"id":"80a732f0-7ce4-4647-a616-5c1f654193cb","name":"404","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"address1\": \"testAddress1new\",\n    \"address2\": \"testAddress2new\",\n    \"city\": \"testCitynew\",\n    \"province\": \"testProvince\",\n    \"zipCode\": \"1111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/OTHER"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:20:24 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Address not found\"\n}"}],"_postman_id":"10bb4da1-649b-477b-8d3b-c4b4520c4d0d"},{"name":"Update current customer credit card","id":"a1350acd-40e9-4ee8-b11e-a98acf4f7528","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"111111111111111\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2030-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current","creditCard","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4567a3e3-3d48-4b32-ac22-2ce674b464b5","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"111111111111111\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2040-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:20:09 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"creditCardId\": 1,\n    \"cardNumber\": \"111111111111111\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2040-01-01\",\n    \"cvc\": \"111\"\n}"},{"id":"b880a026-0373-4e23-8a64-9f439a2969d5","name":"400","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2040-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:21:04 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Some fields are invalid\",\n    \"fields\": {\n        \"cardNumber\": \"must not be blank\"\n    }\n}"},{"id":"300fcb8f-9f5b-4286-82f0-9b2bd150f77a","name":"404","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"111111111111111\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2040-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/3"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:20:49 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Credit card not found\"\n}"}],"_postman_id":"a1350acd-40e9-4ee8-b11e-a98acf4f7528"},{"name":"Delete current customer address","id":"b0357da2-080b-4ae7-8218-4b1572e07f18","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/OFFICE","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current","address","OFFICE"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"40f964d6-249e-4302-a209-a7ba64b98bb3","name":"200","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/OFFICE"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:21:41 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"8f939c4e-6d2c-4fdf-bc1e-b90b16118cf6","name":"400","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/INVALID"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:21:58 GMT"},{"key":"Connection","value":"close"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 400,\n    \"error\": \"Bad Request\",\n    \"message\": \"Failed to convert value of type 'java.lang.String' to required type 'com.lpdecastro.ecommerce.entity.AddressType'; Failed to convert from type [java.lang.String] to type [@org.springframework.web.bind.annotation.PathVariable com.lpdecastro.ecommerce.entity.AddressType] for value [INVALID]\"\n}"},{"id":"0c7c6551-590f-4bcb-b15a-36842abb7bdb","name":"404","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/address/OTHER"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:22:20 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Address not found\"\n}"}],"_postman_id":"b0357da2-080b-4ae7-8218-4b1572e07f18"},{"name":"Delete current customer credit card","id":"239ad2a2-98c7-481c-85ef-87bd26f320d8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","current","creditCard","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b0ae10d2-76e8-4d28-ad47-b86a1a18ee1a","name":"200","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:22:31 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"c84fb490-7876-4222-883b-18dc2d44ddc4","name":"404","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/current/creditCard/1"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:22:37 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 404,\n    \"error\": \"Not Found\",\n    \"message\": \"Credit card not found\"\n}"}],"_postman_id":"239ad2a2-98c7-481c-85ef-87bd26f320d8"},{"name":"Delete customer by ID","id":"4dc78e78-4f54-4f84-97c9-2c26dfacee5c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"444444444444444\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2030-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"protocol":"http","port":"8080","path":[".rest","customers","1"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"52a08e48-6008-4b63-932e-7bd23aa2e088","name":"200","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"444444444444444\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2030-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"},{"id":"353d6cbe-c086-482c-b75d-a89971f8891f","name":"403","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"{\n    \"cardNumber\": \"444444444444444\",\n    \"cardHolderName\": \"testFirstName1 testLastName1\",\n    \"expirationDate\": \"2030-01-01\",\n    \"cvc\": \"111\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/customers/1"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"Vary","value":"Origin"},{"key":"Vary","value":"Access-Control-Request-Method"},{"key":"Vary","value":"Access-Control-Request-Headers"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-XSS-Protection","value":"0"},{"key":"Cache-Control","value":"no-cache, no-store, max-age=0, must-revalidate"},{"key":"Pragma","value":"no-cache"},{"key":"Expires","value":"0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Content-Type","value":"application/json"},{"key":"Transfer-Encoding","value":"chunked"},{"key":"Date","value":"Tue, 21 May 2024 00:22:47 GMT"},{"key":"Keep-Alive","value":"timeout=60"},{"key":"Connection","value":"keep-alive"}],"cookie":[],"responseTime":null,"body":"{\n    \"code\": 403,\n    \"error\": \"Forbidden\",\n    \"message\": \"Access Denied\"\n}"}],"_postman_id":"4dc78e78-4f54-4f84-97c9-2c26dfacee5c"}],"id":"fbe23ded-1178-483b-b623-5b37813b9e1c","_postman_id":"fbe23ded-1178-483b-b623-5b37813b9e1c","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}},{"name":"Sellers","item":[{"name":"Get current seller","id":"82b2b586-e6fc-4e4c-8610-4bc884ca6279","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers/current","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers","current"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"4c28457b-919c-40c1-8b39-54c401f08a96","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sellerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"mobile\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n}"}],"_postman_id":"82b2b586-e6fc-4e4c-8610-4bc884ca6279"},{"name":"Get seller by ID","id":"0bc58f79-e3d1-47ca-b8b1-c9e09986bf11","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"7a23713f-911e-4714-baca-44ec755bf65e","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sellerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"mobile\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n}"}],"_postman_id":"0bc58f79-e3d1-47ca-b8b1-c9e09986bf11"},{"name":"Get all sellers","id":"ddcafd21-5a36-4459-ac5d-87b503cfe3c4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"dab266b2-4444-42ad-a190-ae5d903a3a4c","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/sellers"},"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"sellers\": [\n        {\n            \"sellerId\": 1,\n            \"username\": \"seller1\",\n            \"mobile\": \"1111111111\",\n            \"email\": \"seller1@yopmail.com\"\n        },\n        {\n            \"sellerId\": 2,\n            \"username\": \"seller2\",\n            \"mobile\": \"2222222222\",\n            \"email\": \"seller2@yopmail.com\"\n        },\n        {\n            \"sellerId\": 3,\n            \"username\": \"seller3\",\n            \"mobile\": \"3333333333\",\n            \"email\": \"seller3@yopmail.com\"\n        }\n    ]\n}"}],"_postman_id":"ddcafd21-5a36-4459-ac5d-87b503cfe3c4"},{"name":"Update current seller","id":"234edc34-8251-43ba-993a-1f660b7a0457","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"333333334\",\n    \"email\": \"testEmail33@yopmail.com\",\n    \"username\": \"seller3\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/sellers/current","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers","current"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"ddcdb5ac-1257-4a2e-9945-6fb959c71762","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"mobile\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/sellers/current"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"sellerId\": 1,\n    \"firstName\": \"testFirstName1\",\n    \"lastName\": \"testLastName1\",\n    \"mobile\": \"mobile\",\n    \"email\": \"testEmail1@yopmail.com\",\n    \"username\": \"seller1\",\n    \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n}"}],"_postman_id":"234edc34-8251-43ba-993a-1f660b7a0457"},{"name":"Update current seller password","id":"f2dd4348-532f-4bf1-a83f-6ae1e03cbaec","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"customer1\",\n    \"newPassword\": \"seller1\",\n    \"newPasswordConfirm\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/sellers/current/password","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers","current","password"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"72169a40-a428-4b8b-8a76-eab6d710680c","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"currentPassword\": \"seller1\",\n    \"newPassword\": \"seller1\",\n    \"newPasswordConfirm\": \"seller1\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/sellers/current/password"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"f2dd4348-532f-4bf1-a83f-6ae1e03cbaec"},{"name":"Delete seller by ID","id":"17850c02-d9a8-4205-81ce-8aabb06aecb9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/sellers/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","sellers","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"5b8efb54-ffc2-4dc7-923d-3587fdf0ae75","name":"200","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/sellers/current/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"17850c02-d9a8-4205-81ce-8aabb06aecb9"}],"id":"ed5151f7-caa2-4add-a1ae-a288381db0f8","_postman_id":"ed5151f7-caa2-4add-a1ae-a288381db0f8","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}},{"name":"Products","item":[{"name":"Get all products","id":"95901a21-365b-46d4-8200-f3abcf7b6ffc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"a1d859dd-0c52-449f-a053-3ae89ffb0484","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"products\": [\n        {\n            \"productId\": 1,\n            \"productName\": \"testProductName1\",\n            \"quantity\": 11,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 2,\n            \"productName\": \"testProductName2\",\n            \"quantity\": 22,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 3,\n            \"productName\": \"testProductName3\",\n            \"quantity\": 33,\n            \"status\": \"available\"\n        }\n    ]\n}"}],"_postman_id":"95901a21-365b-46d4-8200-f3abcf7b6ffc"},{"name":"Get product by ID","id":"4bd73f73-9fe0-4c97-9d8e-46300ab6bec3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"4a2ad12c-4ea2-438e-9306-988a344b55e9","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"productId\": 1,\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"testCategory\",\n    \"status\": \"available\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n    \"seller\": {\n        \"sellerId\": 1,\n        \"firstName\": \"testFirstName1\",\n        \"lastName\": \"testLastName1\",\n        \"mobile\": \"mobile\",\n        \"email\": \"testEmail1@yopmail.com\",\n        \"username\": \"seller1\",\n        \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n    }\n}"}],"_postman_id":"4bd73f73-9fe0-4c97-9d8e-46300ab6bec3"},{"name":"Get products by category","id":"e87694e9-1fdd-48c4-8b1d-49e32e0f826c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/category/CLOTHING","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products","category","CLOTHING"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"2f162850-b717-42a0-bbbc-c98e5b2b3814","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/category/testCategory"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"products\": [\n        {\n            \"productId\": 1,\n            \"productName\": \"testProductName1\",\n            \"quantity\": 11,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 2,\n            \"productName\": \"testProductName2\",\n            \"quantity\": 22,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 3,\n            \"productName\": \"testProductName3\",\n            \"quantity\": 33,\n            \"status\": \"available\"\n        }\n    ]\n}"}],"_postman_id":"e87694e9-1fdd-48c4-8b1d-49e32e0f826c"},{"name":"Get products by seller ID","id":"06d69df2-3332-42a1-b19f-44bfede69c44","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/seller/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products","seller","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"a8a5434c-974a-4749-a9ec-08801157b05d","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/products/seller/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"products\": [\n        {\n            \"productId\": 1,\n            \"productName\": \"testProductName1\",\n            \"quantity\": 11,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 2,\n            \"productName\": \"testProductName2\",\n            \"quantity\": 22,\n            \"status\": \"available\"\n        },\n        {\n            \"productId\": 3,\n            \"productName\": \"testProductName3\",\n            \"quantity\": 33,\n            \"status\": \"available\"\n        }\n    ]\n}"}],"_postman_id":"06d69df2-3332-42a1-b19f-44bfede69c44"},{"name":"Add product","id":"c85cd5aa-f208-4985-bca3-33ba5f14a739","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"SPORTS\",\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/products","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"b445962e-f2b9-4ddb-9771-a995c1966cdc","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"testCategory\",\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"productId\": 1,\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"testCategory\",\n    \"status\": \"available\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n    \"seller\": {\n        \"sellerId\": 1,\n        \"firstName\": \"testFirstName1\",\n        \"lastName\": \"testLastName1\",\n        \"mobile\": \"mobile\",\n        \"email\": \"testEmail1@yopmail.com\",\n        \"username\": \"seller1\",\n        \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n    }\n}"}],"_postman_id":"c85cd5aa-f208-4985-bca3-33ba5f14a739"},{"name":"Update product","id":"217ec9ad-d20b-468f-9607-d7261545d2df","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"CLOTHING\",\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/products/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products","2"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"44c7881a-3ab2-446f-9b73-029d5145edc7","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"testCategory\",\n    \"status\": \"available\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"productId\": 1,\n    \"productName\": \"testProductName1\",\n    \"price\": 100,\n    \"description\": \"This is the description for testProductName1.\",\n    \"manufacturer\": \"testManufacturer1\",\n    \"quantity\": 50,\n    \"category\": \"testCategory\",\n    \"status\": \"available\",\n    \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n    \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n    \"seller\": {\n        \"sellerId\": 1,\n        \"firstName\": \"testFirstName1\",\n        \"lastName\": \"testLastName1\",\n        \"mobile\": \"mobile\",\n        \"email\": \"testEmail1@yopmail.com\",\n        \"username\": \"seller1\",\n        \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n    }\n}"}],"_postman_id":"217ec9ad-d20b-468f-9607-d7261545d2df"},{"name":"Delete product by ID","id":"d5f69672-b354-4fe0-a8ca-b84ef4603278","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/products/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","products","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"e9afa473-973f-4d18-91dc-03e619e0bb12","name":"200","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/products/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"d5f69672-b354-4fe0-a8ca-b84ef4603278"}],"id":"15f6d4a3-215e-463c-9fd2-8e87e99ec214","_postman_id":"15f6d4a3-215e-463c-9fd2-8e87e99ec214","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}},{"name":"Cart","item":[{"name":"Get all cart items","id":"6428ff64-a542-43b8-af3d-66f0ecbe7f43","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/cart/items","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"88580423-b995-4ef4-9e3e-c6f553dd68f7","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/cart/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 3,\n    \"items\": [\n        {\n            \"cartItemId\": 1,\n            \"quantity\": 1,\n            \"product\": {\n                \"productId\": 1,\n                \"productName\": \"testProductName1\",\n                \"quantity\": 11,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 2,\n            \"quantity\": 2,\n            \"product\": {\n                \"productId\": 2,\n                \"productName\": \"testProductName2\",\n                \"quantity\": 22,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 3,\n            \"quantity\": 3,\n            \"product\": {\n                \"productId\": 3,\n                \"productName\": \"testProductName3\",\n                \"quantity\": 33,\n                \"status\": \"available\"\n            }\n        }\n    ]\n}"}],"_postman_id":"6428ff64-a542-43b8-af3d-66f0ecbe7f43"},{"name":"Get cart item by ID","id":"098a6ab2-4bbf-42ed-a167-6891b62e724b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/cart/items/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"ba95e16a-66ef-4ea8-a305-1c12e2bbbf68","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/cart/items/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartItemId\": 1,\n    \"quantity\": 1,\n    \"product\": {\n        \"productId\": 1,\n        \"productName\": \"testProductName1\",\n        \"price\": 100,\n        \"description\": \"This is the description for testProductName1.\",\n        \"manufacturer\": \"testManufacturer1\",\n        \"quantity\": 50,\n        \"category\": \"testCategory\",\n        \"status\": \"available\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n        \"seller\": {\n            \"sellerId\": 1,\n            \"firstName\": \"testFirstName1\",\n            \"lastName\": \"testLastName1\",\n            \"mobile\": \"mobile\",\n            \"email\": \"testEmail1@yopmail.com\",\n            \"username\": \"seller1\",\n            \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n            \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n            \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n        }\n    }\n}"}],"_postman_id":"098a6ab2-4bbf-42ed-a167-6891b62e724b"},{"name":"Add cart item","id":"a445d4d8-eef0-4575-bacd-b9fcd08da66f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 1,\n    \"productId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/cart/items","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"f6f3dd89-410a-42b8-98f9-509375e0e792","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 1,\n    \"productId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/cart/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartItemId\": 1,\n    \"quantity\": 1,\n    \"product\": {\n        \"productId\": 1,\n        \"productName\": \"testProductName1\",\n        \"price\": 100,\n        \"description\": \"This is the description for testProductName1.\",\n        \"manufacturer\": \"testManufacturer1\",\n        \"quantity\": 50,\n        \"category\": \"testCategory\",\n        \"status\": \"available\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n        \"seller\": {\n            \"sellerId\": 1,\n            \"firstName\": \"testFirstName1\",\n            \"lastName\": \"testLastName1\",\n            \"mobile\": \"mobile\",\n            \"email\": \"testEmail1@yopmail.com\",\n            \"username\": \"seller1\",\n            \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n            \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n            \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n        }\n    }\n}"}],"_postman_id":"a445d4d8-eef0-4575-bacd-b9fcd08da66f"},{"name":"Update cart item","id":"5a5feca3-b4d4-4438-99a2-ce4a3a193680","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 11\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/cart/items/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"c3df0d9b-d646-4941-a29c-f3b1c349daa7","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"quantity\": 1,\n    \"productId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/cart/items/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"cartItemId\": 1,\n    \"quantity\": 1,\n    \"product\": {\n        \"productId\": 1,\n        \"productName\": \"testProductName1\",\n        \"price\": 100,\n        \"description\": \"This is the description for testProductName1.\",\n        \"manufacturer\": \"testManufacturer1\",\n        \"quantity\": 50,\n        \"category\": \"testCategory\",\n        \"status\": \"available\",\n        \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n        \"updatedAt\": \"2024-05-12 06:42:00 +0800\",\n        \"seller\": {\n            \"sellerId\": 1,\n            \"firstName\": \"testFirstName1\",\n            \"lastName\": \"testLastName1\",\n            \"mobile\": \"mobile\",\n            \"email\": \"testEmail1@yopmail.com\",\n            \"username\": \"seller1\",\n            \"password\": \"$2a$12$JVxk/sBl2TRj8xSZyDgpw.GBWFistgzK99cPcIDMgnZ07GZp7NQ9G\",\n            \"createdAt\": \"2024-05-12 06:42:00 +0800\",\n            \"updatedAt\": \"2024-05-12 06:42:00 +0800\"\n        }\n    }\n}"}],"_postman_id":"5a5feca3-b4d4-4438-99a2-ce4a3a193680"},{"name":"Remove cart item by ID","id":"e6061143-8fe6-4793-833b-fcceb146c096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/cart/items/4","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items","4"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"3b0217b2-bda7-46f0-a4e8-ae3901911763","name":"200","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/cart/items/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"e6061143-8fe6-4793-833b-fcceb146c096"},{"name":"Clear all cart items","id":"86b44cdf-f54c-42a6-a7aa-4fa087f31e0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/cart/items","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","cart","items"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"effef249-bb1e-4064-af28-d557794240f3","name":"200","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/cart/items"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"86b44cdf-f54c-42a6-a7aa-4fa087f31e0c"}],"id":"bd0c9d6d-b17a-4a4f-bc82-1aacbc31ae37","_postman_id":"bd0c9d6d-b17a-4a4f-bc82-1aacbc31ae37","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}},{"name":"Orders","item":[{"name":"Get all orders","id":"8b232df7-c528-4e0b-b5a5-68720a53d38b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/orders?date=2024-05-15","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders"],"host":["http://localhost:8080"],"query":[{"key":"date","value":"2024-05-15"}],"variable":[]}},"response":[{"id":"9a9b40a1-af01-405d-bc7e-0bd9ddb1b196","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/.rest/orders?date=2024-05-15","host":["http://localhost:8080"],"path":[".rest","orders"],"query":[{"key":"date","value":"2024-05-15"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2,\n    \"orders\": [\n        {\n            \"orderId\": 1,\n            \"orderDate\": \"2024-05-14\",\n            \"orderStatus\": \"pending\",\n            \"total\": 208.91\n        },\n        {\n            \"orderId\": 2,\n            \"orderDate\": \"2024-05-15\",\n            \"orderStatus\": \"pending\",\n            \"total\": 508.73\n        }\n    ]\n}"}],"_postman_id":"8b232df7-c528-4e0b-b5a5-68720a53d38b"},{"name":"Get all orders by current customer","id":"58bacc4d-91a6-41b9-b6dc-b609d5146a76","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/orders/current/customer?startDate=2023-05-21","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders","current","customer"],"host":["http://localhost:8080"],"query":[{"key":"startDate","value":"2023-05-21"}],"variable":[]}},"response":[{"id":"d8c966fb-24ab-442d-bb7d-2b0adecbd098","name":"200","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:8080/.rest/orders?date=2024-05-15","host":["http://localhost:8080"],"path":[".rest","orders"],"query":[{"key":"date","value":"2024-05-15"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"total\": 2,\n    \"orders\": [\n        {\n            \"orderId\": 1,\n            \"orderDate\": \"2024-05-14\",\n            \"orderStatus\": \"pending\",\n            \"total\": 208.91\n        },\n        {\n            \"orderId\": 2,\n            \"orderDate\": \"2024-05-15\",\n            \"orderStatus\": \"pending\",\n            \"total\": 508.73\n        }\n    ]\n}"}],"_postman_id":"58bacc4d-91a6-41b9-b6dc-b609d5146a76"},{"name":"Get order by ID","id":"8ef7b7e7-51fc-48a8-85a3-521a3ad177ed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/orders/2","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders","2"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"815747b9-70bf-4b48-9893-f43b09df60dc","name":"200","originalRequest":{"method":"GET","header":[],"url":"http://localhost:8080/.rest/orders/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 1,\n    \"orderDate\": \"2024-05-15\",\n    \"orderStatus\": \"pending\",\n    \"total\": 208.91,\n    \"creditCard\": {\n        \"creditCardId\": 1,\n        \"cardNumber\": \"444444444444444\",\n        \"cardHolderName\": \"testFirstName1 testLastName1\",\n        \"expirationDate\": \"2030-01-01\",\n        \"cvc\": \"111\"\n    },\n    \"customer\": {\n        \"customerId\": 1,\n        \"username\": \"customer1\",\n        \"mobile\": \"1111111111\",\n        \"email\": \"customer1@yopmail.com\"\n    },\n    \"orderedItems\": [\n        {\n            \"cartItemId\": 1,\n            \"quantity\": 1,\n            \"product\": {\n                \"productId\": 1,\n                \"productName\": \"testProductName1\",\n                \"quantity\": 11,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 2,\n            \"quantity\": 2,\n            \"product\": {\n                \"productId\": 2,\n                \"productName\": \"testProductName2\",\n                \"quantity\": 22,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 3,\n            \"quantity\": 3,\n            \"product\": {\n                \"productId\": 3,\n                \"productName\": \"testProductName3\",\n                \"quantity\": 33,\n                \"status\": \"available\"\n            }\n        }\n    ],\n    \"orderAddress\": {\n        \"addressId\": 1,\n        \"type\": \"home\",\n        \"address1\": \"testAddress1\",\n        \"address2\": \"testAddress2\",\n        \"city\": \"testCity\",\n        \"province\": \"testProvince\",\n        \"zipCode\": \"2222\"\n    }\n}"}],"_postman_id":"8ef7b7e7-51fc-48a8-85a3-521a3ad177ed"},{"name":"Add order","id":"ac5fd4a3-cc19-4648-be3b-96e90a34dbfa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cartId\": 1,\n    \"creditCardId\": 1,\n    \"addressId\": 1\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/orders","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"cdba5920-9a9e-4fc5-8d4d-1d16eef8bde7","name":"200","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"cartId\": 1,\n    \"creditCardId\": 1,\n    \"addressType\": \"home\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 1,\n    \"orderDate\": \"2024-05-15\",\n    \"orderStatus\": \"pending\",\n    \"total\": 208.91,\n    \"cardNumber\": \"1234\",\n    \"customer\": {\n        \"customerId\": 1,\n        \"username\": \"customer1\",\n        \"mobile\": \"1111111111\",\n        \"email\": \"customer1@yopmail.com\"\n    },\n    \"orderedItems\": [\n        {\n            \"cartItemId\": 1,\n            \"quantity\": 1,\n            \"product\": {\n                \"productId\": 1,\n                \"productName\": \"testProductName1\",\n                \"quantity\": 11,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 2,\n            \"quantity\": 2,\n            \"product\": {\n                \"productId\": 2,\n                \"productName\": \"testProductName2\",\n                \"quantity\": 22,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 3,\n            \"quantity\": 3,\n            \"product\": {\n                \"productId\": 3,\n                \"productName\": \"testProductName3\",\n                \"quantity\": 33,\n                \"status\": \"available\"\n            }\n        }\n    ],\n    \"orderAddress\": {\n        \"addressId\": 1,\n        \"type\": \"home\",\n        \"address1\": \"testAddress1\",\n        \"address2\": \"testAddress2\",\n        \"city\": \"testCity\",\n        \"province\": \"testProvince\",\n        \"zipCode\": \"2222\"\n    }\n}"}],"_postman_id":"ac5fd4a3-cc19-4648-be3b-96e90a34dbfa"},{"name":"Update order","id":"fd0fe6c8-f766-4830-b404-ac34fabdae3f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"orderStatus\": \"CANCELLED\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/orders/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"c8303e6e-12e6-467e-8975-c1c357df704b","name":"200","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"cartId\": 1,\n    \"creditCardId\": 1,\n    \"addressType\": \"home\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:8080/.rest/orders/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"orderId\": 1,\n    \"orderDate\": \"2024-05-15\",\n    \"orderStatus\": \"pending\",\n    \"total\": 208.91,\n    \"cardNumber\": \"1234\",\n    \"customer\": {\n        \"customerId\": 1,\n        \"username\": \"customer1\",\n        \"mobile\": \"1111111111\",\n        \"email\": \"customer1@yopmail.com\"\n    },\n    \"orderedItems\": [\n        {\n            \"cartItemId\": 1,\n            \"quantity\": 1,\n            \"product\": {\n                \"productId\": 1,\n                \"productName\": \"testProductName1\",\n                \"quantity\": 11,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 2,\n            \"quantity\": 2,\n            \"product\": {\n                \"productId\": 2,\n                \"productName\": \"testProductName2\",\n                \"quantity\": 22,\n                \"status\": \"available\"\n            }\n        },\n        {\n            \"cartItemId\": 3,\n            \"quantity\": 3,\n            \"product\": {\n                \"productId\": 3,\n                \"productName\": \"testProductName3\",\n                \"quantity\": 33,\n                \"status\": \"available\"\n            }\n        }\n    ],\n    \"orderAddress\": {\n        \"addressId\": 1,\n        \"type\": \"home\",\n        \"address1\": \"testAddress1\",\n        \"address2\": \"testAddress2\",\n        \"city\": \"testCity\",\n        \"province\": \"testProvince\",\n        \"zipCode\": \"2222\"\n    }\n}"}],"_postman_id":"fd0fe6c8-f766-4830-b404-ac34fabdae3f"},{"name":"Delete order by ID","id":"d6756c67-1c97-41cb-b463-471198c62868","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/orders/1","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}},"urlObject":{"path":[".rest","orders","1"],"host":["http://localhost:8080"],"query":[],"variable":[]}},"response":[{"id":"4d9d4e0e-2474-4bce-90cf-ce6d7eb5a32c","name":"200","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:8080/.rest/orders/1"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"Content-Type","value":"application/json","name":"Content-Type","description":"","type":"text"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true\n}"}],"_postman_id":"d6756c67-1c97-41cb-b463-471198c62868"}],"id":"aa6ffd5c-4b28-4de8-9b73-0d73a82f16ed","_postman_id":"aa6ffd5c-4b28-4de8-9b73-0d73a82f16ed","description":"","auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":true,"source":{"_postman_id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","id":"7cf74837-2720-4c1b-8a22-a3b1c75e4261","name":"E-Commerce Manager","type":"collection"}}}],"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]}},"event":[{"listen":"prerequest","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"ab99c220-886f-465a-a10e-32e31542b011"}},{"listen":"test","script":{"type":"text/javascript","packages":{},"exec":[""],"id":"ab97f655-a45c-494e-996f-2e2fb8870028"}}],"variable":[{"key":"baseUrl","value":"http://localhost:8080","type":"string"}]}