{"info":{"_postman_id":"ad579a61-dc82-410f-b75b-aca7023945a6","name":"계란 후라이 API 문서","description":"<html><head></head><body><p>계란 후라이 API 문서입니다!</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"23999077","collectionId":"ad579a61-dc82-410f-b75b-aca7023945a6","publishedId":"2s8YRmJXwV","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2022-11-02T03:13:36.000Z"},"item":[{"name":"User API","item":[{"name":"관리자가 사용자들 조회","id":"b4d35553-cc9d-4dc7-9415-3ae0c5dbc5c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>관리자가 전체 사용자들 정보를 조회합니다. (관리자만 가능합니다.)</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"db3aad40-a299-4996-9845-6ed73fbb5a38","name":"관리자가 사용자들 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1495"},{"key":"ETag","value":"W/\"5d7-Ddhrv5CTDNlrDj5qt5hmpXJFtek\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:13:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"root\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-2342-1342\",\n        \"address\": {\n            \"postalCode\": \"12345\",\n            \"address1\": \"서울시 행복구 행복동\",\n            \"address2\": \"광주시 광산구 산정동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632dd4c8448e8c61c6a82a\",\n        \"email\": \"admin@admin.com\",\n        \"fullName\": \"admin\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"role\": \"administrator\",\n        \"createdAt\": \"2022-11-04T06:09:01.356Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.356Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5e10\",\n        \"email\": \"doyeon@doyeon.com\",\n        \"fullName\": \"이도연\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1521-3526\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"정읍시 수성구 수성동\",\n            \"address2\": \"광주시 광산구 운남동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n        \"email\": \"rbtjq@rbtjq.com\",\n        \"fullName\": \"황규섭\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1942-5923\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"익산시 행복구 행복동\",\n            \"address2\": \"천안시 동구 불당동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"b4d35553-cc9d-4dc7-9415-3ae0c5dbc5c1"},{"name":"사용자가 사용자들 조회(error)","id":"7242df53-4089-4305-a8e7-1714832cd070","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>사용자가 로그인해서 사용자 전체 정보들을 조회하려 하면 error를 보내줍니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"44edc749-9838-4f72-ac33-1aa40634c616","name":"사용자가 사용자들 조회(error)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"56"},{"key":"ETag","value":"W/\"38-/vLKUEyFhesPXmFOqWtWk9CcFI4\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:16:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"관리자가 아닙니다.\"\n}"}],"_postman_id":"7242df53-4089-4305-a8e7-1714832cd070"},{"name":"사용자 정보 조회","id":"e441dd17-3dfe-4d6a-a3d5-2372d3cf3730","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/users/userInfo","description":"<p>사용자가 로그인 한 상태에서 자신의 정보를 조회합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","users","userInfo"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f5cd8489-57e7-41bd-8a00-90660e94f4f3","name":"사용자 정보 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/users/userInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"405"},{"key":"ETag","value":"W/\"195-yFTTHyFFFqGLkA7rGLLc+X/AJ8U\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:18:53 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"63632d4ddfb91201fe8d5eec\",\n    \"email\": \"root@root.com\",\n    \"fullName\": \"root\",\n    \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n    \"phoneNumber\": \"010-2342-1342\",\n    \"address\": {\n        \"postalCode\": \"12345\",\n        \"address1\": \"서울시 행복구 행복동\",\n        \"address2\": \"광주시 광산구 산정동\"\n    },\n    \"role\": \"basic-user\",\n    \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n    \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n    \"__v\": 0\n}"}],"_postman_id":"e441dd17-3dfe-4d6a-a3d5-2372d3cf3730"},{"name":"사용자 정보 수정","id":"c2664267-7770-43a5-bacc-d99bde585d2f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"change@change.com\",\r\n    \"fullName\" : \"오승연\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"천안 좋은 동네\",\r\n        \"address2\" : \"서울시 성동구 성수동 성수낙낙\"\r\n    },\r\n    \"currentPassword\" : \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/users/userInfo","description":"<p>사용자가 로그인한 상태에서 자신의 정보를 수정합니다. request body에 \"currentPassword\"가 필요합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","users","userInfo"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ad328c1d-4a67-4f8b-ae5c-094d199d82fa","name":"사용자 정보 수정","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"change@change.com\",\r\n    \"fullName\" : \"오승연\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"천안 좋은 동네\",\r\n        \"address2\" : \"서울시 성동구 성수동 성수낙낙\"\r\n    },\r\n    \"currentPassword\" : \"1234\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/users/userInfo"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"414"},{"key":"ETag","value":"W/\"19e-aWhwx6AKoJBeeuZ7QLF1syVZImY\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:27:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"63632d4ddfb91201fe8d5eec\",\n    \"email\": \"root@root.com\",\n    \"fullName\": \"오승연\",\n    \"password\": \"$2b$10$qaRuHnMLVaISDiZG4yWHVe3k.9LGBoYklCSk6G4gszDorQ7IrHxgC\",\n    \"phoneNumber\": \"010-1234-5323\",\n    \"address\": {\n        \"postalCode\": \"51234\",\n        \"address1\": \"천안 좋은 동네\",\n        \"address2\": \"서울시 성동구 성수동 성수낙낙\"\n    },\n    \"role\": \"basic-user\",\n    \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n    \"updatedAt\": \"2022-11-04T06:27:30.571Z\",\n    \"__v\": 0\n}"}],"_postman_id":"c2664267-7770-43a5-bacc-d99bde585d2f"},{"name":"사용자 정보 수정(error)","id":"d15151a4-75fd-4828-ac54-418f5d65ec71","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"change@change.com\",\r\n    \"fullName\" : \"오승연\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"천안 좋은 동네\",\r\n        \"address2\" : \"서울시 성동구 성수동 성수낙낙\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/users/userInfo","description":"<p>body에 \"currentPassword\"가 없으면 error를 보내줍니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","users","userInfo"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"67cddf52-c052-4f14-a30e-dc05f4e7d5c4","name":"사용자 정보 수정(error)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"change@change.com\",\r\n    \"fullName\" : \"오승연\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"천안 좋은 동네\",\r\n        \"address2\" : \"서울시 성동구 성수동 성수낙낙\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/users/userInfo"},"status":"Forbidden","code":403,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"99"},{"key":"ETag","value":"W/\"63-9ZaXsx0JRRui65ybt7zJ0dU/wDU\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:32:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"정보를 변경하려면, 현재의 비밀번호가 필요합니다.\"\n}"}],"_postman_id":"d15151a4-75fd-4828-ac54-418f5d65ec71"},{"name":"사용자 정보 수정 후 조회","id":"2f99fc0b-5645-4d37-806b-c84b9bc65794","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>root user의 정보들이 바뀌었음을 확인할 수 있습니다. 맨 위에 초기 조회 참조</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"d8fd1496-8fe8-4b75-9bf0-64f56872e590","name":"사용자 정보 수정 후 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1504"},{"key":"ETag","value":"W/\"5e0-QMTDW7m5yOvhrl/468EtV9CE8U4\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:33:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"오승연\",\n        \"password\": \"$2b$10$qaRuHnMLVaISDiZG4yWHVe3k.9LGBoYklCSk6G4gszDorQ7IrHxgC\",\n        \"phoneNumber\": \"010-1234-5323\",\n        \"address\": {\n            \"postalCode\": \"51234\",\n            \"address1\": \"천안 좋은 동네\",\n            \"address2\": \"서울시 성동구 성수동 성수낙낙\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:27:30.571Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632dd4c8448e8c61c6a82a\",\n        \"email\": \"admin@admin.com\",\n        \"fullName\": \"admin\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"role\": \"administrator\",\n        \"createdAt\": \"2022-11-04T06:09:01.356Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.356Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5e10\",\n        \"email\": \"doyeon@doyeon.com\",\n        \"fullName\": \"이도연\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1521-3526\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"정읍시 수성구 수성동\",\n            \"address2\": \"광주시 광산구 운남동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n        \"email\": \"rbtjq@rbtjq.com\",\n        \"fullName\": \"황규섭\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1942-5923\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"익산시 행복구 행복동\",\n            \"address2\": \"천안시 동구 불당동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"2f99fc0b-5645-4d37-806b-c84b9bc65794"},{"name":"사용자 회원 탈퇴","id":"13be12a8-d39d-4557-8b9e-ff647d4a2cf1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/users/withdrawal","description":"<p>사용자가 로그인 한 상태에서 회원탈퇴를 할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","users","withdrawal"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"4b4d58f9-2042-489d-ae9f-cfe3de3b91d9","name":"사용자 회원 탈퇴","originalRequest":{"method":"DELETE","header":[],"url":"http://localhost:5500/api/users/withdrawal"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"62"},{"key":"ETag","value":"W/\"3e-4c5ea/1LMuaVPdRHW1T8jFSDv7w\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:35:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"회원탈퇴 되셨습니다.\"\n}"}],"_postman_id":"13be12a8-d39d-4557-8b9e-ff647d4a2cf1"},{"name":"사용자 탈퇴 후 조회","id":"8da1e83d-c5a9-48d5-991f-038ced46e953","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>황규섭 회원으로 로그인 한 상태에서 회원탈퇴를 했습니다. 황규섭 회원이 사라진 것을 확인할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0b503d29-fdc7-4d75-8015-16d8f63f66a9","name":"사용자 탈퇴 후 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1094"},{"key":"ETag","value":"W/\"446-0nacjsdvci+fLRmew/NaGbwa3ZI\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:37:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"오승연\",\n        \"password\": \"$2b$10$qaRuHnMLVaISDiZG4yWHVe3k.9LGBoYklCSk6G4gszDorQ7IrHxgC\",\n        \"phoneNumber\": \"010-1234-5323\",\n        \"address\": {\n            \"postalCode\": \"51234\",\n            \"address1\": \"천안 좋은 동네\",\n            \"address2\": \"서울시 성동구 성수동 성수낙낙\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:27:30.571Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632dd4c8448e8c61c6a82a\",\n        \"email\": \"admin@admin.com\",\n        \"fullName\": \"admin\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"role\": \"administrator\",\n        \"createdAt\": \"2022-11-04T06:09:01.356Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.356Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5e10\",\n        \"email\": \"doyeon@doyeon.com\",\n        \"fullName\": \"이도연\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1521-3526\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"정읍시 수성구 수성동\",\n            \"address2\": \"광주시 광산구 운남동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:09:01.361Z\",\n        \"updatedAt\": \"2022-11-04T06:09:01.361Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"8da1e83d-c5a9-48d5-991f-038ced46e953"},{"name":"관리자가 사용자 강제 탈퇴","id":"41016e37-4eb9-4476-ab20-2795f4be90c6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/withdrawal/:userId","description":"<p>관리자 권한으로 사용자를 강제로 탈퇴시킬 수 있습니다. 유령회원, 문제회원 등을 삭제하는 기능입니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","withdrawal",":userId"],"host":["localhost"],"query":[],"variable":[{"id":"96b8824e-e98d-4bc4-9b33-c34a324f3559","type":"any","value":"63632d4ddfb91201fe8d5e10","key":"userId"}]}},"response":[{"id":"838e75ad-7f32-4d91-a62b-00e079991214","name":"관리자가 사용자 강제 탈퇴","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/withdrawal/:userId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","withdrawal",":userId"],"variable":[{"key":"userId","value":"63632d4ddfb91201fe8d5e10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"75"},{"key":"ETag","value":"W/\"4b-wlEvJ6K6eFXjaPscN2sOdsjSd+g\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:43:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"이도연 회원을 삭제하였습니다.\"\n}"}],"_postman_id":"41016e37-4eb9-4476-ab20-2795f4be90c6"},{"name":"관리자가 사용자 강제 탈퇴 (error)","id":"909f5f81-1671-4db4-b87f-c47d94d076bc","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/withdrawal/:userId","description":"<p>존재하지 않는 userId를 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","withdrawal",":userId"],"host":["localhost"],"query":[],"variable":[{"id":"72b96880-01a9-4dae-9a72-c2e6ee10982e","type":"any","value":"63632d4ddfb91201fe8d5e10","key":"userId"}]}},"response":[{"id":"e6e21151-2b49-452b-8f26-60dab3b860bf","name":"관리자가 사용자 강제 탈퇴 (error)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/withdrawal/:userId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","withdrawal",":userId"],"variable":[{"key":"userId","value":"63632d4ddfb91201fe8d5e10"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"96"},{"key":"ETag","value":"W/\"60-N0b6h/uXBAD8mKxOHb9TytNSdhk\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:47:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"가입 내역이 없습니다. 다시 한 번 확인해 주세요.\"\n}"}],"_postman_id":"909f5f81-1671-4db4-b87f-c47d94d076bc"},{"name":"사용자 강제 탈퇴 후 조회","id":"17974db0-1036-4196-b647-374254d15e2d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>관리자로 로그인해 이도연 회원님을 강제 탈퇴시켰습니다. 이도연 회원님이 없어졌음을 확인할 수 있습니다. login해보니 login 실패가 되는 것도 확인했습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b9bd3dae-0fa2-4ae9-8f10-e59cb653f341","name":"사용자 강제 탈퇴 후 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1080"},{"key":"ETag","value":"W/\"438-pYwRftf3LO5kLb3iuYZfphFH0GU\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:44:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63632dd4c8448e8c61c6a82a\",\n        \"email\": \"admin@admin.com\",\n        \"fullName\": \"admin\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"role\": \"administrator\",\n        \"createdAt\": \"2022-11-04T06:43:36.283Z\",\n        \"updatedAt\": \"2022-11-04T06:43:36.283Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n        \"email\": \"rbtjq@rbtjq.com\",\n        \"fullName\": \"황규섭\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1942-5923\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"익산시 행복구 행복동\",\n            \"address2\": \"천안시 동구 불당동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:43:36.289Z\",\n        \"updatedAt\": \"2022-11-04T06:43:36.289Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"root\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-2342-1342\",\n        \"address\": {\n            \"postalCode\": \"12345\",\n            \"address1\": \"서울시 행복구 행복동\",\n            \"address2\": \"광주시 광산구 산정동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:43:36.289Z\",\n        \"updatedAt\": \"2022-11-04T06:43:36.289Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"17974db0-1036-4196-b647-374254d15e2d"},{"name":"회원가입","id":"8ec1428a-0cbd-453f-b0ca-41daa4d6d9e3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register","description":"<p>기본 회원가입입니다. phoneNumber, address 등은 필수 값이 아닙니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"8fa24ab2-e61f-477a-ac60-45a6912963a9","name":"회원가입","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"414"},{"key":"ETag","value":"W/\"19e-smfr3/Op7csMc7Pu0PgxSnx1eBc\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:53:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"email\": \"jiyoung@jiyoung.com\",\n    \"fullName\": \"jiyoung\",\n    \"password\": \"$2b$10$4lZkw300dxDD1IvTbAaJNOmHoUcmn6S5KTEZXpCtbWNdhNRCVm3o.\",\n    \"phoneNumber\": \"010-1234-5323\",\n    \"address\": {\n        \"postalCode\": \"51234\",\n        \"address1\": \"제주도 가고싶다\",\n        \"address2\": \"어디 한번 생성되나 봅시다\"\n    },\n    \"role\": \"basic-user\",\n    \"_id\": \"6364b6fc22e33b1d9cccdf3d\",\n    \"createdAt\": \"2022-11-04T06:53:48.225Z\",\n    \"updatedAt\": \"2022-11-04T06:53:48.225Z\",\n    \"__v\": 0\n}"}],"_postman_id":"8ec1428a-0cbd-453f-b0ca-41daa4d6d9e3"},{"name":"회원가입(error1)","id":"2c14e9be-27a7-401d-a874-712a4e917e47","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register","description":"<p>동일한 이메일로 다시 생성하려 하면 error를 보내줍니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"ae3626d0-5329-4368-9b9c-1af614db48ff","name":"회원가입(error1)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"12345678\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"114"},{"key":"ETag","value":"W/\"72-sDQo01LoklOjYkbhB8zTyYcZD7Y\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:56:59 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"이 이메일은 현재 사용중입니다. 다른 이메일을 입력해 주세요.\"\n}"}],"_postman_id":"2c14e9be-27a7-401d-a874-712a4e917e47"},{"name":"회원가입(error2)","id":"23bc94f1-01e2-4b80-ba0d-67cbf0b41ba3","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung2@jiyoung2.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"123\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register","description":"<p>비밀번호에 유효성 검사를 최소 4자리 이상으로 걸어놨습니다. 비밀번호가 그보다 작은 길이면 error를 보내줍니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","register"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"652180b7-2c76-4668-89af-1af77a260b6a","name":"회원가입(error2)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung2@jiyoung2.com\",\r\n    \"fullName\" : \"jiyoung\",\r\n    \"password\" : \"123\",\r\n    \"phoneNumber\" : \"010-1234-5323\",\r\n    \"address\" : {\r\n        \"postalCode\" : \"51234\",\r\n        \"address1\" : \"제주도 가고싶다\",\r\n        \"address2\" : \"어디 한번 생성되나 봅시다\"\r\n    }\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/register"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"115"},{"key":"ETag","value":"W/\"73-AYBSNc94sI/pTRfuZUQYCh6ha7M\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:58:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": {\n        \"errors\": [\n            {\n                \"value\": \"123\",\n                \"msg\": \"Invalid value\",\n                \"param\": \"password\",\n                \"location\": \"body\"\n            }\n        ]\n    }\n}"}],"_postman_id":"23bc94f1-01e2-4b80-ba0d-67cbf0b41ba3"},{"name":"회원가입 후 사용자들 조회","id":"2a16d910-661d-44ad-9b05-3809d268dfe1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist","description":"<p>jiyoung 회원님이 추가된 것을 확인할 수 있습니다. login됨도 확인하였습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","userlist"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3537270f-de4a-4e20-995f-22a790b306ed","name":"회원가입 후 사용자들 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/userlist"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1495"},{"key":"ETag","value":"W/\"5d7-feFWABC9FV9anDvTHcrf8WxO6BU\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:54:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63632dd4c8448e8c61c6a82a\",\n        \"email\": \"admin@admin.com\",\n        \"fullName\": \"admin\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"role\": \"administrator\",\n        \"createdAt\": \"2022-11-04T06:48:57.236Z\",\n        \"updatedAt\": \"2022-11-04T06:48:57.236Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n        \"email\": \"rbtjq@rbtjq.com\",\n        \"fullName\": \"황규섭\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-1942-5923\",\n        \"address\": {\n            \"postalCode\": \"52734\",\n            \"address1\": \"익산시 행복구 행복동\",\n            \"address2\": \"천안시 동구 불당동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:48:57.240Z\",\n        \"updatedAt\": \"2022-11-04T06:48:57.240Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"root\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-2342-1342\",\n        \"address\": {\n            \"postalCode\": \"12345\",\n            \"address1\": \"서울시 행복구 행복동\",\n            \"address2\": \"광주시 광산구 산정동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:48:57.240Z\",\n        \"updatedAt\": \"2022-11-04T06:48:57.240Z\",\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"6364b6fc22e33b1d9cccdf3d\",\n        \"email\": \"jiyoung@jiyoung.com\",\n        \"fullName\": \"jiyoung\",\n        \"password\": \"$2b$10$4lZkw300dxDD1IvTbAaJNOmHoUcmn6S5KTEZXpCtbWNdhNRCVm3o.\",\n        \"phoneNumber\": \"010-1234-5323\",\n        \"address\": {\n            \"postalCode\": \"51234\",\n            \"address1\": \"제주도 가고싶다\",\n            \"address2\": \"어디 한번 생성되나 봅시다\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T06:53:48.225Z\",\n        \"updatedAt\": \"2022-11-04T06:53:48.225Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"2a16d910-661d-44ad-9b05-3809d268dfe1"},{"name":"로그인","id":"654164e7-4b42-4ff4-ba20-6ad8f69ec12c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"password\" : \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/login","description":"<p>로그인 기능입니다. 로그인 성공 시 token을 보내줍니다. email이나 password가 일치하지 않으면 error를 보내줍니다. error의 내용은 아시리라 믿습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","login"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"3e20e9fd-e982-46c0-bdcd-67f5c9b603d8","name":"로그인","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"email\" : \"jiyoung@jiyoung.com\",\r\n    \"password\" : \"12345678\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/login"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"192"},{"key":"ETag","value":"W/\"c0-SmQtGgS7VH0yJe1E3NJ70m4TRv0\""},{"key":"Date","value":"Fri, 04 Nov 2022 06:55:44 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"token\": \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VySWQiOiI2MzY0YjZmYzIyZTMzYjFkOWNjY2RmM2QiLCJyb2xlIjoiYmFzaWMtdXNlciIsImlhdCI6MTY2NzU0NDk0NH0.enB79eaKDNdphHLpZWqxf4ljGPYd88f79VosHhJwLzc\"\n}"}],"_postman_id":"654164e7-4b42-4ff4-ba20-6ad8f69ec12c"}],"id":"fd37d216-b0e5-4c20-bb0b-fddfa8bbcfc6","_postman_id":"fd37d216-b0e5-4c20-bb0b-fddfa8bbcfc6","description":""},{"name":"AdminCategory API","item":[{"name":"전체 카테고리 조회","id":"7e74e035-12d2-4adc-83ac-7a2539067e0c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories","description":"<p>전체 카테고리를 조회하여 응답합니다. (상품이 0개인 category들도 다 포함)</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"be55b0a2-9ec8-4d12-8eae-6214dcfde289","name":"전체 카테고리 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"283"},{"key":"ETag","value":"W/\"11b-PBnVtRJjcO5F+XE1aVOFmUaHHFM\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:49:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"과일\",\n        \"total\": 2,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613692b3cd1137208c7e7c\",\n        \"name\": \"견과류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    }\n]"}],"_postman_id":"7e74e035-12d2-4adc-83ac-7a2539067e0c"},{"name":"카테고리 등록","id":"3fa9ddc7-fb6b-4e14-bd34-8192542a3f3c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"구황작물\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories","description":"<p>새로운 카테고리를 등록합니다. 성공적으로 카테고리가 등록되면 새로 등록된 카테고리 정보로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"9b1997db-f632-4eb2-82d8-a48f7a04d133","name":"카테고리 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"구황작물\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"74"},{"key":"ETag","value":"W/\"4a-UfPos6wT9RD4W0wUZKvYL6hDIY0\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:50:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"name\": \"구황작물\",\n    \"total\": 0,\n    \"_id\": \"63687275bce847a01cdb3514\",\n    \"__v\": 0\n}"}],"_postman_id":"3fa9ddc7-fb6b-4e14-bd34-8192542a3f3c"},{"name":"카테고리 등록(error1)","id":"b721c4ba-e47c-4338-9476-936cd8729fc9","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"야채\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories","description":"<p>이미 존재하는 category로 또 다시 등록하려하면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b418e600-9dce-4e71-8703-84194c4bccfa","name":"카테고리 등록(error1)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"야채\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"ETag","value":"W/\"4f-GW48MawF6M/H3IAYfdKbav/BUec\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:51:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"이미 존재하고 있는 카테고리입니다.\"\n}"}],"_postman_id":"b721c4ba-e47c-4338-9476-936cd8729fc9"},{"name":"카테고리 등록(error2)","id":"d1f4f402-10a2-4094-a39c-d3c98722bfb1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"아\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories","description":"<p>server side에서 minimul length를 2자리로 설정해두었습니다. category명은 최소 2자리 이상이여야 합니다. 그렇지 않을 시 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"6be5ac5e-a9ca-4668-bd12-d3d37c8a730a","name":"카테고리 등록(error2)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"아\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-YsV8Kje+aCaK3Hpr9bED2KTM1h4\""},{"key":"Date","value":"Tue, 08 Nov 2022 08:52:38 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"카테고리는 최소 2자 이상이어야 합니다.\"\n}"}],"_postman_id":"d1f4f402-10a2-4094-a39c-d3c98722bfb1"},{"name":"카테고리 등록 후 전체 카테고리 조회","id":"1aadbfcc-8b3b-4cb8-a62e-5f4a19cc789e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories","description":"<p>구황작물 카테고리가 등록되있음을 확인할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"b33a446c-cbd8-49d0-a6c6-2a3b210f515a","name":"카테고리 등록 후 전체 카테고리 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"358"},{"key":"ETag","value":"W/\"166-X7xbA317PsuadOVcLmJrkmuR7g4\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:51:55 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"과일\",\n        \"total\": 2,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613692b3cd1137208c7e7c\",\n        \"name\": \"견과류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63687275bce847a01cdb3514\",\n        \"name\": \"구황작물\",\n        \"total\": 0,\n        \"__v\": 0\n    }\n]"}],"_postman_id":"1aadbfcc-8b3b-4cb8-a62e-5f4a19cc789e"},{"name":"카테고리 수정","id":"d7904713-21c9-4a53-8e33-c774ce67940f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"신선한 과일\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>카테고리를 수정합니다. 성공적으로 수정되면 새롭게 수정된 카테고리 정보로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"f20e30f4-0bad-4871-95ab-904b043e7f77","type":"any","value":"63613676b3cd1137208c7e78","key":"categoryId"}]}},"response":[{"id":"463d6ccf-b6cd-4ab1-a0f9-eec334f1022d","name":"카테고리 수정","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"신선한 과일\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e78"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"78"},{"key":"ETag","value":"W/\"4e-svxwFgGlOVWcUaicj0CZDn7NFfs\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:52:42 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"63613676b3cd1137208c7e78\",\n    \"name\": \"신선한 과일\",\n    \"total\": 2,\n    \"__v\": 0\n}"}],"_postman_id":"d7904713-21c9-4a53-8e33-c774ce67940f"},{"name":"카테고리 수정(error1)","id":"6387748b-031a-427e-9ab3-c4710e06488b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"신선한 과일2\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>존재하지 않는 categoryId를 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"7a59f41c-e432-4f6f-9d09-e9f72089453e","type":"any","value":"63613676b3cd1137208c7e79","key":"categoryId"}]}},"response":[{"id":"de9a9060-849d-41d2-a751-eda4b466d286","name":"카테고리 수정(error1)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"신선한 과일2\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e79"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-8Q15YMA4VcQ/4g27tbiRY6rppIg\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:53:11 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 카테고리입니다.\"\n}"}],"_postman_id":"6387748b-031a-427e-9ab3-c4710e06488b"},{"name":"카테고리 수정(error2)","id":"87e1e317-9a13-4e53-b189-5aae0563411f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"야채\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>이미 존재하는 category와 동일한 이름으로 수정하려하면 error를 보내줍니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"6c637cae-544b-495a-b520-ca966eed8b1b","type":"any","value":"63613676b3cd1137208c7e78","key":"categoryId"}]}},"response":[{"id":"40caa2bd-1a35-4f28-9630-1a4d99034652","name":"카테고리 수정(error2)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"야채\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e78"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"79"},{"key":"ETag","value":"W/\"4f-GW48MawF6M/H3IAYfdKbav/BUec\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:53:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"이미 존재하고 있는 카테고리입니다.\"\n}"}],"_postman_id":"87e1e317-9a13-4e53-b189-5aae0563411f"},{"name":"카테고리 수정(error3)","id":"52e20f51-c6c7-4449-8d5e-5c501f6fa096","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"아\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>마찬가지로 category명의 minimum length는 최소 2자리 이상입니다. 그렇지 않을 시 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"45d0e0b5-81ae-43e0-be98-921eae302616","type":"any","value":"63613676b3cd1137208c7e78","key":"categoryId"}]}},"response":[{"id":"1216b3af-5bbf-4d7f-af53-a86b6789edf3","name":"카테고리 수정(error3)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"name\" : \"아\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e78"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-YsV8Kje+aCaK3Hpr9bED2KTM1h4\""},{"key":"Date","value":"Tue, 08 Nov 2022 08:56:05 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"카테고리는 최소 2자 이상이어야 합니다.\"\n}"}],"_postman_id":"52e20f51-c6c7-4449-8d5e-5c501f6fa096"},{"name":"카테고리 수정 후 전체 카테고리 조회","id":"b9c9d813-ef30-484f-b398-342424e24153","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories","description":"<p>\"과일\"이였던 카테고리명이 \"신선한 과일\"로 수정되었음을 확인할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c29571e2-f2df-4d68-b2fc-9e4d258d0956","name":"카테고리 수정 후 전체 카테고리 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"368"},{"key":"ETag","value":"W/\"170-lvU8nTHtEkr1PF4/DnhNi4AmtrU\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:54:39 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"신선한 과일\",\n        \"total\": 2,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613692b3cd1137208c7e7c\",\n        \"name\": \"견과류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63687275bce847a01cdb3514\",\n        \"name\": \"구황작물\",\n        \"total\": 0,\n        \"__v\": 0\n    }\n]"}],"_postman_id":"b9c9d813-ef30-484f-b398-342424e24153"},{"name":"카테고리 삭제","id":"6e6a3058-daf6-4d83-874c-b8f98664908b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>카테고리를 삭제합니다. 카테고리가 성공적으로 삭제되면 성공 메시지로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"e4098c19-c2ff-465c-9e16-f54e7a05de1c","type":"any","value":"63687275bce847a01cdb3514","key":"categoryId"}]}},"response":[{"id":"aff9d9d4-3889-46fa-8ef9-b4b8458524f7","name":"카테고리 삭제","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63687275bce847a01cdb3514"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"84"},{"key":"ETag","value":"W/\"54-v2SAJDm7L/lyHTKpIMfDJBLKKDY\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:55:24 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"구황작물 카테고리가 삭제되었습니다.\"\n}"}],"_postman_id":"6e6a3058-daf6-4d83-874c-b8f98664908b"},{"name":"카테고리 삭제(error1)","id":"15f375f0-3427-443f-b5b4-9535905f70b0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>존재하지 않는 categoryId로 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"2933fd21-018c-4744-abb7-0cb00e35a6ce","type":"any","value":"63687275bce847a01cdb3514","key":"categoryId"}]}},"response":[{"id":"a4498f4a-592d-4522-81f9-5b14b58e4c6f","name":"카테고리 삭제(error1)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63687275bce847a01cdb3514"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-8Q15YMA4VcQ/4g27tbiRY6rppIg\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:56:21 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 카테고리입니다.\"\n}"}],"_postman_id":"15f375f0-3427-443f-b5b4-9535905f70b0"},{"name":"카테고리 삭제(error2)","id":"50da1ecb-4cfe-4eb5-9287-8837502a019d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/categories/:categoryId","description":"<p>이미 상품에 배정된 category가 존재할 때 그 category를 삭제하려 하면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"7b059bb3-75a3-442c-a33c-9c67a433111f","type":"any","value":"63613676b3cd1137208c7e78","key":"categoryId"}]}},"response":[{"id":"aa1ee53d-c7e5-43fc-b28f-50034668306e","name":"카테고리 삭제(error2)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/categories/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","categories",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e78"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"143"},{"key":"ETag","value":"W/\"8f-0vBTt2pbyCFB4gv7aEq/XpNPxPw\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:56:56 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"이미 카테고리가 등록된 상품이 존재하여 현재 대상 카테고리를 삭제할 수 없습니다.\"\n}"}],"_postman_id":"50da1ecb-4cfe-4eb5-9287-8837502a019d"},{"name":"카테고리 삭제 후 전체 카테고리 조회","id":"11db9982-da36-45aa-9429-a9bd8e8cc7e4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories","description":"<p>구황 작물 카테고리가 삭제되었음을 확인할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f747055c-86b0-4a30-af92-37198c1ed951","name":"카테고리 삭제 후 전체 카테고리 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-Ih+f8N5gntx0O5OoKrb0Ij/goUk\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:57:28 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"신선한 과일\",\n        \"total\": 2,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613692b3cd1137208c7e7c\",\n        \"name\": \"견과류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    }\n]"}],"_postman_id":"11db9982-da36-45aa-9429-a9bd8e8cc7e4"}],"id":"681a2f1e-080d-473f-8d11-7a232bcae046","_postman_id":"681a2f1e-080d-473f-8d11-7a232bcae046","description":""},{"name":"AdminProduct API","item":[{"name":"상품 등록","id":"a01d1b3d-1309-4549-88fa-a56c767efaa1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"urlencoded","urlencoded":[]},"url":"http://localhost:5500/api/admin/products","description":"<p>새로운 상품을 등록합니다. 유의할 점은 formData로 보내주세요. category field에는 categoryId를 심어서 보내주세요. 상품이 성공적으로 등록되면 등록된 상품 정보로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"0a087f45-477f-4720-9ed4-43c5e931c1fa","name":"상품 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"샤인머스캣","type":"text"},{"key":"image","type":"file","src":["/C:/Users/Lenovo/Desktop/iCloud Photos/hero.png"]},{"key":"price","value":"1000","type":"text"},{"key":"quantity","value":"6","type":"text"},{"key":"description","value":"샤인머스캣 달달하니 정말 맛있습니다.","type":"text"},{"key":"category","value":"63613676b3cd1137208c7e78","type":"text"}]},"url":"http://localhost:5500/api/admin/products"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"477"},{"key":"ETag","value":"W/\"1dd-8Q6V1FFU71+xTpVLml0+/ICaT8M\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:03:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"title\": \"샤인머스캣\",\n    \"image\": {\n        \"path\": \"https://res.cloudinary.com/dhl4ieqpy/image/upload/v1667790190/Vegetable/moadtyqgbyvh2qsi4p5m.png\",\n        \"filename\": \"Vegetable/moadtyqgbyvh2qsi4p5m\"\n    },\n    \"price\": 1000,\n    \"quantity\": 6,\n    \"description\": \"샤인머스캣 달달하니 정말 맛있습니다.\",\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"category\": \"63613676b3cd1137208c7e78\",\n    \"_id\": \"63687572bce847a01cdb354c\",\n    \"comments\": [],\n    \"createdAt\": \"2022-11-07T03:03:14.626Z\",\n    \"updatedAt\": \"2022-11-07T03:03:14.626Z\",\n    \"__v\": 0\n}"}],"_postman_id":"a01d1b3d-1309-4549-88fa-a56c767efaa1"},{"name":"상품 등록(error)","id":"5b6a1a2d-fe42-4456-aadb-316b7e0bdbc6","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"샤인머스캣","type":"text"},{"key":"image","type":"file","src":"/C:/Users/Lenovo/Desktop/iCloud Photos/hero.png"},{"key":"price","value":"1000","type":"text"},{"key":"quantity","value":"6","type":"text"},{"key":"description","value":"샤인머스캣 달달하니 정말 맛있습니다.","type":"text"},{"key":"category","value":"63613676b3cd1137208c7e79","type":"text"}]},"url":"http://localhost:5500/api/admin/products","description":"<p>존재하지 않는 categoryId를 보내면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f90d8e3f-1c39-4d1c-b0cb-48c0f2cf17b5","name":"상품 등록(error)","originalRequest":{"method":"POST","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"샤인머스캣","type":"text"},{"key":"image","type":"file","src":["/C:/Users/Lenovo/Desktop/iCloud Photos/hero.png"]},{"key":"price","value":"1000","type":"text"},{"key":"quantity","value":"6","type":"text"},{"key":"description","value":"샤인머스캣 달달하니 정말 맛있습니다.","type":"text"},{"key":"category","value":"63613676b3cd1137208c7e79","type":"text"}]},"url":"http://localhost:5500/api/admin/products"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-8Q15YMA4VcQ/4g27tbiRY6rppIg\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:05:08 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 카테고리입니다.\"\n}"}],"_postman_id":"5b6a1a2d-fe42-4456-aadb-316b7e0bdbc6"},{"name":"상품 등록 후 전체 카테고리 조회","id":"ec4f286c-fa9f-452d-9b49-5ca36b498a2e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories","description":"<p>과일 category에 상품이 등록되어 category의 total 2에서 3으로 증가함을 확인할 수 있습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","categories"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"c5f6b47c-a9fd-4c15-bb65-2be6f1121aa5","name":"상품 등록 후 전체 카테고리 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/categories"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"293"},{"key":"ETag","value":"W/\"125-oH6rCZDk1tFmuf0x3jvkVfVtDlk\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:05:29 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"신선한 과일\",\n        \"total\": 3,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613692b3cd1137208c7e7c\",\n        \"name\": \"견과류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    }\n]"}],"_postman_id":"ec4f286c-fa9f-452d-9b49-5ca36b498a2e"},{"name":"새로 등록한 상품에 리뷰 등록","id":"18931215-4378-4188-ade0-3794273590fd","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰도 생성되어라 얍\",\r\n    \"rating\" : 3,\r\n    \"userId\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/:productId/comments","description":"<p>특정 상품에 리뷰를 등록합니다. body에 로그인된 사용자의 userId를 심어서 보내주세요.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments"],"host":["localhost"],"query":[],"variable":[{"id":"19ced15b-ed9d-4c4b-a19c-75404c344aef","type":"any","value":"63687572bce847a01cdb354c","key":"productId"}]}},"response":[{"id":"c0776cef-cf2f-42c3-9036-f39fc669b2a3","name":"새로 등록한 상품에 리뷰 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰도 생성되어라 얍\",\r\n    \"rating\" : 3,\r\n    \"userId\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/products/:productId/comments","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments"],"variable":[{"key":"productId","value":"63687572bce847a01cdb354c"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"652"},{"key":"ETag","value":"W/\"28c-UGIWmpwH/5Wp/vFELillFAp26Q4\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:08:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://res.cloudinary.com/dhl4ieqpy/image/upload/v1667790190/Vegetable/moadtyqgbyvh2qsi4p5m.png\",\n        \"filename\": \"Vegetable/moadtyqgbyvh2qsi4p5m\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"63687572bce847a01cdb354c\",\n    \"title\": \"샤인머스캣\",\n    \"price\": 1000,\n    \"quantity\": 6,\n    \"description\": \"샤인머스캣 달달하니 정말 맛있습니다.\",\n    \"category\": {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"신선한 과일\",\n        \"total\": 3,\n        \"__v\": 0\n    },\n    \"comments\": [\n        {\n            \"content\": \"리뷰도 생성되어라 얍\",\n            \"rating\": 3,\n            \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n            \"_id\": \"63687697bce847a01cdb3557\"\n        }\n    ],\n    \"createdAt\": \"2022-11-07T03:03:14.626Z\",\n    \"updatedAt\": \"2022-11-07T03:08:07.260Z\",\n    \"__v\": 1\n}"}],"_postman_id":"18931215-4378-4188-ade0-3794273590fd"},{"name":"상품 수정(image도 수정)","id":"4d3e94fd-08f9-4941-b89b-854388842d23","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"이거는 이미지도 수정","type":"text"},{"key":"image","type":"file","src":"/C:/Users/Lenovo/Desktop/iCloud Photos/jb-featured-image-css3.jpg"},{"key":"price","value":"2000","type":"text"},{"key":"quantity","value":"4","type":"text"},{"key":"description","value":"카테고리는 버섯이 되어라 얍!","type":"text"},{"key":"category","value":"63614045b3cd1137208c7ea2","type":"text"}]},"url":"http://localhost:5500/api/admin/products/:productId","description":"<p>상품을 수정합니다. 유의할 점은 formData로 보내주세요. category field에는 categoryId를 심어서 보내주세요. 상품이 성공적으로 수정되면 수정된 상품 정보로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"4f994197-1983-4191-978a-94c128f9ee36","type":"any","value":"63687572bce847a01cdb354c","key":"productId"}]}},"response":[{"id":"be35d769-e59a-497b-b946-374f9e2fe925","name":"상품 수정(image도 수정)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"이거는 이미지도 수정","type":"text"},{"key":"image","type":"file","src":["/C:/Users/Lenovo/Desktop/iCloud Photos/jb-featured-image-css3.jpg"]},{"key":"price","value":"2000","type":"text"},{"key":"quantity","value":"4","type":"text"},{"key":"description","value":"카테고리는 버섯이 되어라 얍!","type":"text"},{"key":"category","value":"63614045b3cd1137208c7ea2","type":"text"}]},"url":{"raw":"http://localhost:5500/api/admin/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId"],"variable":[{"key":"productId","value":"63687572bce847a01cdb354c"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"602"},{"key":"ETag","value":"W/\"25a-8erb8dD+x/vEOGYvaTqYM7qh27A\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:12:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://res.cloudinary.com/dhl4ieqpy/image/upload/v1667790718/Vegetable/mhxd94vwvpi4vwmmmrsh.jpg\",\n        \"filename\": \"Vegetable/mhxd94vwvpi4vwmmmrsh\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"63687572bce847a01cdb354c\",\n    \"title\": \"이거는 이미지도 수정\",\n    \"price\": 2000,\n    \"quantity\": 4,\n    \"description\": \"카테고리는 버섯이 되어라 얍!\",\n    \"category\": \"63614045b3cd1137208c7ea2\",\n    \"comments\": [\n        {\n            \"content\": \"리뷰도 생성되어라 얍\",\n            \"rating\": 3,\n            \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n            \"_id\": \"63687697bce847a01cdb3557\"\n        }\n    ],\n    \"createdAt\": \"2022-11-07T03:03:14.626Z\",\n    \"updatedAt\": \"2022-11-07T03:12:02.378Z\",\n    \"__v\": 1\n}"}],"_postman_id":"4d3e94fd-08f9-4941-b89b-854388842d23"},{"name":"상품 수정(image는 수정 X)","id":"6350f505-9fa0-485a-ad56-3da661a72b32","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"이거는 이미지는 수정 X","type":"text"},{"key":"image","type":"file","value":null},{"key":"price","value":"2000","type":"text"},{"key":"quantity","value":"4","type":"text"},{"key":"description","value":"카테고리는 다시 과일이 되어라 ","type":"text"},{"key":"category","value":"63613676b3cd1137208c7e78","type":"text"}]},"url":"http://localhost:5500/api/admin/products/:productId","description":"<p>상품을 수정합니다. image를 비우고 수정하면 기존 상품의 image가 그대로 유지됩니다. 상품이 성공적으로 수정되면 수정된 상품 정보로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"cfcb3e5c-cea3-4147-9325-7d3e7e183f4c","type":"any","value":"63687572bce847a01cdb354c","key":"productId"}]}},"response":[{"id":"c695f32d-afb1-48b9-aef4-dc34a08a8d9e","name":"상품 수정(image는 수정 X)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"formdata","formdata":[{"key":"title","value":"이거는 이미지는 수정 X","type":"text"},{"key":"image","type":"file","src":[]},{"key":"price","value":"2000","type":"text"},{"key":"quantity","value":"4","type":"text"},{"key":"description","value":"카테고리는 다시 과일이 되어라 ","type":"text"},{"key":"category","value":"63613676b3cd1137208c7e78","type":"text"}]},"url":{"raw":"http://localhost:5500/api/admin/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId"],"variable":[{"key":"productId","value":"63687572bce847a01cdb354c"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"607"},{"key":"ETag","value":"W/\"25f-8RHzTr2feZnRj0vhbpOKJa7z9fU\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:15:02 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://res.cloudinary.com/dhl4ieqpy/image/upload/v1667790718/Vegetable/mhxd94vwvpi4vwmmmrsh.jpg\",\n        \"filename\": \"Vegetable/mhxd94vwvpi4vwmmmrsh\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"63687572bce847a01cdb354c\",\n    \"title\": \"이거는 이미지는 수정 X\",\n    \"price\": 2000,\n    \"quantity\": 4,\n    \"description\": \"카테고리는 다시 과일이 되어라 \",\n    \"category\": \"63613676b3cd1137208c7e78\",\n    \"comments\": [\n        {\n            \"content\": \"리뷰도 생성되어라 얍\",\n            \"rating\": 3,\n            \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n            \"_id\": \"63687697bce847a01cdb3557\"\n        }\n    ],\n    \"createdAt\": \"2022-11-07T03:03:14.626Z\",\n    \"updatedAt\": \"2022-11-07T03:15:02.397Z\",\n    \"__v\": 1\n}"}],"_postman_id":"6350f505-9fa0-485a-ad56-3da661a72b32"},{"name":"상품 삭제","id":"c1459574-945a-421a-93d0-22d14cfb0382","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/products/:productId","description":"<p>상품을 삭제합니다. 상품이 성공적으로 삭제되면 성공 메시지로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"042a2e77-b32a-48c7-a3fb-82c5e72cf2fc","type":"any","value":"6363578739bd781e3f24e276","key":"productId"}]}},"response":[{"id":"3062df47-6f0f-4eb9-9bb3-0bef0f091f34","name":"상품 삭제","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e276"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"ETag","value":"W/\"55-uatRUHQ9GFSEh/2EKDX/x1SYZgU\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:17:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"아삭아삭 사과 상품이 삭제되었습니다.\"\n}"}],"_postman_id":"c1459574-945a-421a-93d0-22d14cfb0382"},{"name":"상품 삭제 (error)","id":"45c53ebc-dc51-4acd-a0c7-3817d0ab53fb","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/admin/products/:productId","description":"<p>존재하지 않는 productId를 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"24c089d0-cd36-40f7-a43f-e73e3c5325a8","type":"any","value":"6363578739bd781e3f24e276","key":"productId"}]}},"response":[{"id":"202e1c56-c53d-4873-9c15-7843e0b7f447","name":"상품 삭제 (error)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/admin/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e276"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-VwjGZg1p5c53biH+AcaywagxALw\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:18:26 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 상품입니다.\"\n}"}],"_postman_id":"45c53ebc-dc51-4acd-a0c7-3817d0ab53fb"},{"name":"특정 상품에 할인 적용","id":"590a3936-957b-47e0-af17-16d42844867c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"1000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품에 할인을 적용합니다. sale 필드의 onSale 속성이 true가 되고 할인가가 생성됩니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"653c33ef-848f-49f5-8337-b554cbd1b0ba","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"a277ac5a-c664-443f-9280-3b78dc619445","name":"특정 상품에 할인 적용","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"1000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"632"},{"key":"ETag","value":"W/\"278-r+JY7OoKgAT89pFLnKKQIbKizqs\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:22:48 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1571074635691-b910c7a5cdbb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=903&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": true,\n        \"discountedPrice\": 1000\n    },\n    \"_id\": \"6363578739bd781e3f24e279\",\n    \"title\": \"영양만점 버섯\",\n    \"price\": 3000,\n    \"quantity\": 7,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment 테스트용5\",\n            \"rating\": 5,\n            \"userId\": \"63632d4ddfb91201fe8d5e10\",\n            \"_id\": \"636878aff83209f31aa3b238\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T03:17:03.042Z\",\n    \"updatedAt\": \"2022-11-07T03:22:48.702Z\",\n    \"__v\": 0\n}"}],"_postman_id":"590a3936-957b-47e0-af17-16d42844867c"},{"name":"할인 취소","id":"cb37bbb9-5263-45b9-bd8b-3fd872cdd4c1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"cancel\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품에 할인 적용을 취소합니다. sale 필드의 onSale 속성이 false가 됩니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"f3fa946d-02ab-43c7-8c78-87cef1166e5b","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"97919f01-7bc6-4073-ba38-ad03a3b00746","name":"할인 취소","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"cancel\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"633"},{"key":"ETag","value":"W/\"279-Pznz7QEAE+TpCpNbEtVZu+pRyWc\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:23:58 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1571074635691-b910c7a5cdbb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=903&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": false,\n        \"discountedPrice\": 1000\n    },\n    \"_id\": \"6363578739bd781e3f24e279\",\n    \"title\": \"영양만점 버섯\",\n    \"price\": 3000,\n    \"quantity\": 7,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment 테스트용5\",\n            \"rating\": 5,\n            \"userId\": \"63632d4ddfb91201fe8d5e10\",\n            \"_id\": \"636878aff83209f31aa3b238\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63614045b3cd1137208c7ea2\",\n        \"name\": \"버섯류\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T03:17:03.042Z\",\n    \"updatedAt\": \"2022-11-07T03:23:58.161Z\",\n    \"__v\": 0\n}"}],"_postman_id":"cb37bbb9-5263-45b9-bd8b-3fd872cdd4c1"},{"name":"할인(error1)","id":"e01ab020-5662-467f-b2df-d697fcc1a743","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"4000\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품의 price보다 높은 가격으로 할인가를 적용할 수 없습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"e215b113-6493-470b-80bc-95f667fdd99b","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"fd40b86c-0cf5-4849-aa14-ba5c99b0a797","name":"할인(error1)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"4000\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"97"},{"key":"ETag","value":"W/\"61-8Qc/j7lmHE26qJdJZZPxqWdFwSA\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:25:16 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"할인 가격은 현재 상품의 가격보다 낮아야 합니다.\"\n}"}],"_postman_id":"e01ab020-5662-467f-b2df-d697fcc1a743"},{"name":"할인(error2)","id":"d29c0c68-3ccb-4a69-b6ee-48618e5cadd5","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : 500\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품의 할인가는 string형태의 숫자로 받습니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"f53f66e6-283b-4d41-833e-23daec7520be","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"3138ae31-db02-4302-94ae-0557b97e4f7f","name":"할인(error2)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : 500\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"132"},{"key":"ETag","value":"W/\"84-Jvz5kgn4yJGRbh2QrjmM2ECTpVY\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:36:52 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": [\n        {\n            \"value\": 500,\n            \"msg\": \"string으로 들어와야 합니다.\",\n            \"param\": \"discountedPrice\",\n            \"location\": \"body\"\n        }\n    ]\n}"}],"_postman_id":"d29c0c68-3ccb-4a69-b6ee-48618e5cadd5"},{"name":"할인(error3)","id":"179b4bf8-6842-4d3f-8bfd-6bae96643abe","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"5\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품의 할인가는 2자리 이상의 숫자 string이어야 합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"06aa821b-ca2a-471c-b515-f827f4bc1197","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"df6cd5e4-3f3b-4c5c-8916-c78894aeef5f","name":"할인(error3)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"5\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"153"},{"key":"ETag","value":"W/\"99-l3nI9jXtDm7nm4KS9imj+i8MNNs\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:38:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": [\n        {\n            \"value\": \"5\",\n            \"msg\": \"상품할인 가격은 2자리 이상이어야 합니다.\",\n            \"param\": \"discountedPrice\",\n            \"location\": \"body\"\n        }\n    ]\n}"}],"_postman_id":"179b4bf8-6842-4d3f-8bfd-6bae96643abe"},{"name":"할인(error4)","id":"fa8c8304-5284-46d3-92ac-0ce4bf70bf2c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"cancel도 숫자가 아닌 이런 것을 입력하면?\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/products/:productId/toggleSale","description":"<p>상품의 할인가는 \"cancel\"이나 숫자 string만 가능합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","products",":productId","toggleSale"],"host":["localhost"],"query":[],"variable":[{"id":"1d03bc0b-a4b1-4372-803a-36c76fa3515a","type":"any","value":"6363578739bd781e3f24e279","key":"productId"}]}},"response":[{"id":"aa43d97b-eb22-4167-856b-ce5f7e105b51","name":"할인(error4)","originalRequest":{"method":"PATCH","header":[],"body":{"mode":"raw","raw":"{\r\n    \"discountedPrice\" : \"cancel도 숫자가 아닌 이런 것을 입력하면?\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/products/:productId/toggleSale","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","products",":productId","toggleSale"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e279"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"103"},{"key":"ETag","value":"W/\"67-TzjKKJDAdr60DyHqTX0+m075CzI\""},{"key":"Date","value":"Mon, 07 Nov 2022 03:30:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"가격을 올바른 숫자 string이나 \\\"cancel\\\"로 입력해주세요.\"\n}"}],"_postman_id":"fa8c8304-5284-46d3-92ac-0ce4bf70bf2c"}],"id":"27903518-b502-420b-b25a-54c34bd6bf94","_postman_id":"27903518-b502-420b-b25a-54c34bd6bf94","description":""},{"name":"Product API","item":[{"name":"전체 상품 조회","id":"2ad352a6-bc25-4028-81d8-c40a3818810d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products","description":"<p>전체 상품들을 조회하여 응답합니다. (이 때 상품들의 카테고리가 포함되어있습니다. 상품이 등록되지 않은 카테고리들은 제외)</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"cb233787-5d24-4986-9391-9123cb6d0741","name":"전체 상품 조회","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/products"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"3357"},{"key":"ETag","value":"W/\"d1d-3n0vazz3kwu9CHV6Z+nKcK1H7M0\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:24:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"products\": [\n        {\n            \"image\": {\n                \"path\": \"https://images.unsplash.com/flagged/photo-1579410137922-543ed48d263e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=580&q=80\"\n            },\n            \"sale\": {\n                \"onSale\": false\n            },\n            \"_id\": \"6363578739bd781e3f24e278\",\n            \"title\": \"똑똑한 호두\",\n            \"price\": 10000,\n            \"quantity\": 2,\n            \"description\": \"test\",\n            \"comments\": [\n                {\n                    \"content\": \"comment 테스트용4\",\n                    \"rating\": 4,\n                    \"userId\": \"63632d4ddfb91201fe8d5eec\",\n                    \"_id\": \"63686c2eb02e859b7dd1700c\"\n                }\n            ],\n            \"category\": {\n                \"_id\": \"63613692b3cd1137208c7e7c\",\n                \"name\": \"견과류\",\n                \"total\": 1,\n                \"__v\": 0\n            },\n            \"createdAt\": \"2022-11-07T02:23:42.952Z\",\n            \"updatedAt\": \"2022-11-07T02:23:42.952Z\",\n            \"__v\": 0\n        },\n        {\n            \"image\": {\n                \"path\": \"https://images.unsplash.com/photo-1571074635691-b910c7a5cdbb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=903&q=80\"\n            },\n            \"sale\": {\n                \"onSale\": false\n            },\n            \"_id\": \"6363578739bd781e3f24e279\",\n            \"title\": \"영양만점 버섯\",\n            \"price\": 3000,\n            \"quantity\": 7,\n            \"description\": \"test\",\n            \"comments\": [\n                {\n                    \"content\": \"comment 테스트용5\",\n                    \"rating\": 5,\n                    \"userId\": \"63632d4ddfb91201fe8d5e10\",\n                    \"_id\": \"63686c2eb02e859b7dd1700e\"\n                }\n            ],\n            \"category\": {\n                \"_id\": \"63614045b3cd1137208c7ea2\",\n                \"name\": \"버섯류\",\n                \"total\": 1,\n                \"__v\": 0\n            },\n            \"createdAt\": \"2022-11-07T02:23:42.952Z\",\n            \"updatedAt\": \"2022-11-07T02:23:42.952Z\",\n            \"__v\": 0\n        },\n        {\n            \"image\": {\n                \"path\": \"https://images.unsplash.com/photo-1622205313162-be1d5712a43f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80\"\n            },\n            \"sale\": {\n                \"onSale\": false\n            },\n            \"_id\": \"6363578739bd781e3f24e277\",\n            \"title\": \"신선한 상추\",\n            \"price\": 2000,\n            \"quantity\": 10,\n            \"description\": \"test\",\n            \"comments\": [\n                {\n                    \"content\": \"comment 테스트용3\",\n                    \"rating\": 3,\n                    \"userId\": \"63632d4ddfb91201fe8d5eec\",\n                    \"_id\": \"63686c2eb02e859b7dd1700a\"\n                }\n            ],\n            \"category\": {\n                \"_id\": \"63613687b3cd1137208c7e7a\",\n                \"name\": \"야채\",\n                \"total\": 1,\n                \"__v\": 0\n            },\n            \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n            \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n            \"__v\": 0\n        },\n        {\n            \"image\": {\n                \"path\": \"https://images.unsplash.com/photo-1639588473831-dd9d014646ae?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n            },\n            \"sale\": {\n                \"onSale\": false\n            },\n            \"_id\": \"6363578739bd781e3f24e275\",\n            \"title\": \"상쾌한 복숭아\",\n            \"price\": 5000,\n            \"quantity\": 6,\n            \"description\": \"test\",\n            \"comments\": [\n                {\n                    \"content\": \"comment Test용1\",\n                    \"rating\": 1,\n                    \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n                    \"_id\": \"63686c2eb02e859b7dd17006\"\n                }\n            ],\n            \"category\": {\n                \"_id\": \"63613676b3cd1137208c7e78\",\n                \"name\": \"과일\",\n                \"total\": 2,\n                \"__v\": 0\n            },\n            \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n            \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n            \"__v\": 0\n        },\n        {\n            \"image\": {\n                \"path\": \"https://images.unsplash.com/photo-1570913149827-d2ac84ab3f9a?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n            },\n            \"sale\": {\n                \"onSale\": false\n            },\n            \"_id\": \"6363578739bd781e3f24e276\",\n            \"title\": \"아삭아삭 사과\",\n            \"price\": 4000,\n            \"quantity\": 6,\n            \"description\": \"test\",\n            \"comments\": [\n                {\n                    \"content\": \"comment 테스트용2\",\n                    \"rating\": 2,\n                    \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n                    \"_id\": \"63686c2eb02e859b7dd17008\"\n                }\n            ],\n            \"category\": {\n                \"_id\": \"63613676b3cd1137208c7e78\",\n                \"name\": \"과일\",\n                \"total\": 2,\n                \"__v\": 0\n            },\n            \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n            \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n            \"__v\": 0\n        }\n    ],\n    \"categories\": [\n        {\n            \"_id\": \"63613692b3cd1137208c7e7c\",\n            \"name\": \"견과류\",\n            \"total\": 1,\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"63614045b3cd1137208c7ea2\",\n            \"name\": \"버섯류\",\n            \"total\": 1,\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"63613687b3cd1137208c7e7a\",\n            \"name\": \"야채\",\n            \"total\": 1,\n            \"__v\": 0\n        },\n        {\n            \"_id\": \"63613676b3cd1137208c7e78\",\n            \"name\": \"과일\",\n            \"total\": 2,\n            \"__v\": 0\n        }\n    ]\n}"}],"_postman_id":"2ad352a6-bc25-4028-81d8-c40a3818810d"},{"name":"상품 이름 검색","id":"6f43afba-d0c7-45dc-a9b5-16e6e3684189","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/search/?title=%25EC%2583%2581","description":"<p>상품의 title을 검색합니다. \"상추\"를 찾는다면 \"상\"만 검색해도 키워드로 검색합니다. 아무 키워드 없이 비우면 전체 상품들을 조회하여 응답합니다. query params를 encodeURI(encodeURIComponent)화한 변수로 받습니다. 상은 encodeURI(encodeURIComponent(\"상\"))코드를 통해 변환된 값입니다. encode된 값은 server에서 다시 decode합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products","search",""],"host":["localhost"],"query":[{"key":"title","value":"%25EC%2583%2581"}],"variable":[]}},"response":[{"id":"2783db35-d506-47f5-b047-9e6d946049d9","name":"상품 이름 검색","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/products/search/?title=%25EC%2583%2581","protocol":"http","host":["localhost"],"port":"5500","path":["api","products","search",""],"query":[{"key":"title","value":"%25EC%2583%2581"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1127"},{"key":"ETag","value":"W/\"467-YkoF9xchWToTSp480qGTyIqQvYA\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:25:14 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"image\": {\n            \"path\": \"https://images.unsplash.com/photo-1622205313162-be1d5712a43f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80\"\n        },\n        \"sale\": {\n            \"onSale\": false\n        },\n        \"_id\": \"6363578739bd781e3f24e277\",\n        \"title\": \"신선한 상추\",\n        \"price\": 2000,\n        \"quantity\": 10,\n        \"description\": \"test\",\n        \"comments\": [\n            {\n                \"content\": \"comment 테스트용3\",\n                \"rating\": 3,\n                \"userId\": \"63632d4ddfb91201fe8d5eec\",\n                \"_id\": \"63686c2eb02e859b7dd1700a\"\n            }\n        ],\n        \"category\": \"63613687b3cd1137208c7e7a\",\n        \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n        \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n        \"__v\": 0\n    },\n    {\n        \"image\": {\n            \"path\": \"https://images.unsplash.com/photo-1639588473831-dd9d014646ae?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n        },\n        \"sale\": {\n            \"onSale\": false\n        },\n        \"_id\": \"6363578739bd781e3f24e275\",\n        \"title\": \"상쾌한 복숭아\",\n        \"price\": 5000,\n        \"quantity\": 6,\n        \"description\": \"test\",\n        \"comments\": [\n            {\n                \"content\": \"comment Test용1\",\n                \"rating\": 1,\n                \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n                \"_id\": \"63686c2eb02e859b7dd17006\"\n            }\n        ],\n        \"category\": \"63613676b3cd1137208c7e78\",\n        \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n        \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"6f43afba-d0c7-45dc-a9b5-16e6e3684189"},{"name":"특정 상품 조회","id":"26c2cfa8-98f5-4fdc-a974-79241708b42c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/:productId","description":"<p>productId를 이용해 특정 상품을 조회합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"c662ce6e-aef8-48f0-9015-f440d47c3396","type":"any","value":"6363578739bd781e3f24e275","key":"productId"}]}},"response":[{"id":"45f45a5c-8cbc-4281-875f-0c560cc99d68","name":"특정 상품 조회","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e275"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"602"},{"key":"ETag","value":"W/\"25a-puAUwWasS9aETiabcDO452Qze9U\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:25:57 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1639588473831-dd9d014646ae?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"6363578739bd781e3f24e275\",\n    \"title\": \"상쾌한 복숭아\",\n    \"price\": 5000,\n    \"quantity\": 6,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment Test용1\",\n            \"rating\": 1,\n            \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n            \"_id\": \"63686c2eb02e859b7dd17006\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63613676b3cd1137208c7e78\",\n        \"name\": \"과일\",\n        \"total\": 2,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n    \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n    \"__v\": 0\n}"}],"_postman_id":"26c2cfa8-98f5-4fdc-a974-79241708b42c"},{"name":"특정 상품 조회(error)","id":"67c24a20-19f2-40fa-afeb-645050991ad1","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/:productId","description":"<p>존재하지 않는 productId를 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"69af7600-f731-4430-8000-5119f5338a5c","type":"any","value":"63633dccd66752f181cfa381","key":"productId"}]}},"response":[{"id":"f214c3eb-afd1-42b1-b72a-308ac426f5eb","name":"특정 상품 조회(error)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/63633dccd66752f181cfa381"},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"66"},{"key":"ETag","value":"W/\"42-VwjGZg1p5c53biH+AcaywagxALw\""},{"key":"Date","value":"Thu, 03 Nov 2022 09:20:43 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 상품입니다.\"\n}"}],"_postman_id":"67c24a20-19f2-40fa-afeb-645050991ad1"},{"name":"카테고리별 상품 조회","id":"6a9ab98d-784c-44c6-9230-d7d9344bdfd4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/categorization/:categoryId","description":"<p>categoryId를 이용해 category별 상품들을 조회하여 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products","categorization",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"80e032b3-7cf1-4e81-8d57-bd33637cf78c","type":"any","value":"63613676b3cd1137208c7e78","key":"categoryId"}]}},"response":[{"id":"424c23db-9425-41e8-920e-cea00072677e","name":"카테고리별 상품 조회","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/products/categorization/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products","categorization",":categoryId"],"variable":[{"key":"categoryId","value":"63613676b3cd1137208c7e78"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1212"},{"key":"ETag","value":"W/\"4bc-AEr09MX+P6fhSgK4PGQUQL12S0M\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:26:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"image\": {\n            \"path\": \"https://images.unsplash.com/photo-1639588473831-dd9d014646ae?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n        },\n        \"sale\": {\n            \"onSale\": false\n        },\n        \"_id\": \"6363578739bd781e3f24e275\",\n        \"title\": \"상쾌한 복숭아\",\n        \"price\": 5000,\n        \"quantity\": 6,\n        \"description\": \"test\",\n        \"comments\": [\n            {\n                \"content\": \"comment Test용1\",\n                \"rating\": 1,\n                \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n                \"_id\": \"63686c2eb02e859b7dd17006\"\n            }\n        ],\n        \"category\": {\n            \"_id\": \"63613676b3cd1137208c7e78\",\n            \"name\": \"과일\",\n            \"total\": 2,\n            \"__v\": 0\n        },\n        \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n        \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n        \"__v\": 0\n    },\n    {\n        \"image\": {\n            \"path\": \"https://images.unsplash.com/photo-1570913149827-d2ac84ab3f9a?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80\"\n        },\n        \"sale\": {\n            \"onSale\": false\n        },\n        \"_id\": \"6363578739bd781e3f24e276\",\n        \"title\": \"아삭아삭 사과\",\n        \"price\": 4000,\n        \"quantity\": 6,\n        \"description\": \"test\",\n        \"comments\": [\n            {\n                \"content\": \"comment 테스트용2\",\n                \"rating\": 2,\n                \"userId\": \"63632d4ddfb91201fe8d5ea6\",\n                \"_id\": \"63686c2eb02e859b7dd17008\"\n            }\n        ],\n        \"category\": {\n            \"_id\": \"63613676b3cd1137208c7e78\",\n            \"name\": \"과일\",\n            \"total\": 2,\n            \"__v\": 0\n        },\n        \"createdAt\": \"2022-11-07T02:23:42.951Z\",\n        \"updatedAt\": \"2022-11-07T02:23:42.951Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"6a9ab98d-784c-44c6-9230-d7d9344bdfd4"},{"name":"카테고리별 상품 조회(error)","id":"afa2311a-01e5-4574-8430-34bd37435f91","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/categorization/:categoryId","description":"<p>존재하지 않는 categoryId를 보내주면 error로 응답합니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","products","categorization",":categoryId"],"host":["localhost"],"query":[],"variable":[{"id":"6d9c812a-b168-43c0-af7d-5fff1974856c","type":"any","value":"63633cdfd66752f181cfa371","key":"categoryId"}]}},"response":[{"id":"ec1c371c-752a-49c9-9b3c-1efab3fabdbb","name":"카테고리별 상품 조회(error)","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/products/categorization/:categoryId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products","categorization",":categoryId"],"variable":[{"key":"categoryId","value":"63633cdfd66752f181cfa371"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"72"},{"key":"ETag","value":"W/\"48-8Q15YMA4VcQ/4g27tbiRY6rppIg\""},{"key":"Date","value":"Thu, 03 Nov 2022 09:28:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"존재하지 않는 카테고리입니다.\"\n}"}],"_postman_id":"afa2311a-01e5-4574-8430-34bd37435f91"},{"name":"리뷰 등록","id":"7f4d8de0-820f-4207-9813-fde9391e1a67","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰 등록 테스트입니다.\",\r\n    \"rating\" : 4,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/:productId/comments","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments"],"host":["localhost"],"query":[],"variable":[{"id":"da444040-220d-459b-acda-51ed21132d78","type":"any","value":"6363578739bd781e3f24e277","key":"productId"}]}},"response":[{"id":"1311c064-c27c-4126-9cf8-2a5a707bd8e3","name":"리뷰 등록","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰 등록 테스트입니다.\",\r\n    \"rating\" : 4,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/products/:productId/comments","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e277"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"756"},{"key":"ETag","value":"W/\"2f4-pp/vbMblCuiSvfOTtbSHIiiq0BY\""},{"key":"Date","value":"Mon, 07 Nov 2022 14:37:46 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1622205313162-be1d5712a43f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"6363578739bd781e3f24e277\",\n    \"title\": \"신선한 상추\",\n    \"price\": 2000,\n    \"quantity\": 10,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment 테스트용3\",\n            \"rating\": 3,\n            \"user\": {\n                \"_id\": \"63632d4ddfb91201fe8d5eec\",\n                \"fullName\": \"root\"\n            },\n            \"_id\": \"636917c1cbb97cda412ccd3c\"\n        },\n        {\n            \"content\": \"리뷰 등록 테스트입니다.\",\n            \"rating\": 4,\n            \"user\": \"63632d4ddfb91201fe8d5ea6\",\n            \"_id\": \"6369183acbb97cda412ccd56\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T14:35:45.430Z\",\n    \"updatedAt\": \"2022-11-07T14:37:46.435Z\",\n    \"__v\": 1\n}"}],"_postman_id":"7f4d8de0-820f-4207-9813-fde9391e1a67"},{"name":"리뷰 등록 후 특정 상품 조회","id":"031262c7-ee95-4b35-9ad6-a9899afe9934","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://localhost:5500/api/products/:productId","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId"],"host":["localhost"],"query":[],"variable":[{"id":"19e63218-64c3-45b3-a6ae-eac1d2654d16","type":"any","value":"6363578739bd781e3f24e277","key":"productId"}]}},"response":[{"id":"ee7be4b6-6141-4ac7-97be-a464a76a74d2","name":"리뷰 등록 후 특정 상품 조회","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/products/:productId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e277"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"787"},{"key":"ETag","value":"W/\"313-Si04jReQaq4FKvbW5mF+7ITEszk\""},{"key":"Date","value":"Mon, 07 Nov 2022 14:39:00 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1622205313162-be1d5712a43f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"6363578739bd781e3f24e277\",\n    \"title\": \"신선한 상추\",\n    \"price\": 2000,\n    \"quantity\": 10,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment 테스트용3\",\n            \"rating\": 3,\n            \"user\": {\n                \"_id\": \"63632d4ddfb91201fe8d5eec\",\n                \"fullName\": \"root\"\n            },\n            \"_id\": \"636917c1cbb97cda412ccd3c\"\n        },\n        {\n            \"content\": \"리뷰 등록 테스트입니다.\",\n            \"rating\": 4,\n            \"user\": {\n                \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n                \"fullName\": \"황규섭\"\n            },\n            \"_id\": \"6369183acbb97cda412ccd56\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T14:35:45.430Z\",\n    \"updatedAt\": \"2022-11-07T14:37:46.435Z\",\n    \"__v\": 1\n}"}],"_postman_id":"031262c7-ee95-4b35-9ad6-a9899afe9934"},{"name":"리뷰 수정","id":"cf456524-9eae-4d0d-9ebd-e651aa6e1197","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰 수정되나 봅시다\",\r\n    \"rating\" : 1\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/:productId/comments/:commentId","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments",":commentId"],"host":["localhost"],"query":[],"variable":[{"id":"708965f0-3a6d-468f-ac9d-2af4592a6e53","type":"any","value":"6363578739bd781e3f24e277","key":"productId"},{"id":"fdf5f8b2-8169-44e0-9948-2acf6d5ef9dc","type":"any","value":"6369183acbb97cda412ccd56","key":"commentId"}]}},"response":[{"id":"2fd28717-1ece-4206-aaff-05bcb26dd982","name":"리뷰 수정","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰 수정되나 봅시다\",\r\n    \"rating\" : 1\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/products/:productId/comments/:commentId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments",":commentId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e277"},{"key":"commentId","value":"6369183acbb97cda412ccd56"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"783"},{"key":"ETag","value":"W/\"30f-o+8Xp4QgbZLAwaJt/IF39XY2SyI\""},{"key":"Date","value":"Mon, 07 Nov 2022 14:40:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"image\": {\n        \"path\": \"https://images.unsplash.com/photo-1622205313162-be1d5712a43f?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1031&q=80\"\n    },\n    \"sale\": {\n        \"onSale\": false\n    },\n    \"_id\": \"6363578739bd781e3f24e277\",\n    \"title\": \"신선한 상추\",\n    \"price\": 2000,\n    \"quantity\": 10,\n    \"description\": \"test\",\n    \"comments\": [\n        {\n            \"content\": \"comment 테스트용3\",\n            \"rating\": 3,\n            \"user\": {\n                \"_id\": \"63632d4ddfb91201fe8d5eec\",\n                \"fullName\": \"root\"\n            },\n            \"_id\": \"636917c1cbb97cda412ccd3c\"\n        },\n        {\n            \"content\": \"리뷰 수정되나 봅시다\",\n            \"rating\": 1,\n            \"user\": {\n                \"_id\": \"63632d4ddfb91201fe8d5ea6\",\n                \"fullName\": \"황규섭\"\n            },\n            \"_id\": \"6369183acbb97cda412ccd56\"\n        }\n    ],\n    \"category\": {\n        \"_id\": \"63613687b3cd1137208c7e7a\",\n        \"name\": \"야채\",\n        \"total\": 1,\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-07T14:35:45.430Z\",\n    \"updatedAt\": \"2022-11-07T14:40:27.213Z\",\n    \"__v\": 1\n}"}],"_postman_id":"cf456524-9eae-4d0d-9ebd-e651aa6e1197"},{"name":"리뷰 삭제","id":"b1e70d80-3a77-454e-8fe9-c13d9f40d732","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/products/:productId/comments/:commentId","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments",":commentId"],"host":["localhost"],"query":[],"variable":[{"id":"128ae097-ded4-47a8-a38a-e546bef1d9f3","type":"any","value":"6363578739bd781e3f24e278","key":"productId"},{"id":"866d9c4e-5b2f-4528-872c-a85b3b72fdcd","type":"any","value":"63686f74f6382fcc6b45a87b","key":"commentId"}]}},"response":[{"id":"e4009b22-d90b-40d0-a313-b4ad7a7f7fb9","name":"리뷰 삭제","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/products/:productId/comments/:commentId","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments",":commentId"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e278"},{"key":"commentId","value":"63686f74f6382fcc6b45a87b"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"81"},{"key":"ETag","value":"W/\"51-966+FEoOPDgBa+oKMNitkf1IH8M\""},{"key":"Date","value":"Mon, 07 Nov 2022 02:39:49 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"success\",\n    \"message\": \"리뷰가 성공적으로 삭제되었습니다.\"\n}"}],"_postman_id":"b1e70d80-3a77-454e-8fe9-c13d9f40d732"},{"name":"리뷰 error1","id":"a71c8310-f4df-4c3e-8718-249c7de21c53","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰\",\r\n    \"rating\" : 4,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/:productId/comments","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments"],"host":["localhost"],"query":[],"variable":[{"id":"6c88e992-0dd2-4377-b665-0c5417826eb3","type":"any","value":"6363578739bd781e3f24e276","key":"productId"}]}},"response":[{"id":"6947adc2-7c57-4f5f-97b8-c6e07b5e042c","name":"리뷰 error1","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰\",\r\n    \"rating\" : 4,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/products/:productId/comments","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e276"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"85"},{"key":"ETag","value":"W/\"55-nRfOKV+yjyG71/bsLyAQI68LGv0\""},{"key":"Date","value":"Tue, 08 Nov 2022 08:58:34 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"리뷰는 5글자 이상 100자 이내여야 합니다.\"\n}"}],"_postman_id":"a71c8310-f4df-4c3e-8718-249c7de21c53"},{"name":"리뷰 error2","id":"e3360795-1752-4cdd-909b-beb9a1dced8b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰입니다!\",\r\n    \"rating\" : 4.5,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/products/:productId/comments","urlObject":{"protocol":"http","port":"5500","path":["api","products",":productId","comments"],"host":["localhost"],"query":[],"variable":[{"id":"12eedec6-c2de-41d0-ba40-e4533abf8dc0","type":"any","value":"6363578739bd781e3f24e276","key":"productId"}]}},"response":[{"id":"d77d0990-77ef-45a5-90f1-5ae5c1adc767","name":"리뷰 error2","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\r\n    \"content\" : \"리뷰입니다!\",\r\n    \"rating\" : 4.5,\r\n    \"user\" : \"63632d4ddfb91201fe8d5ea6\"\r\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/products/:productId/comments","protocol":"http","host":["localhost"],"port":"5500","path":["api","products",":productId","comments"],"variable":[{"key":"productId","value":"6363578739bd781e3f24e276"}]}},"status":"Bad Request","code":400,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"81"},{"key":"ETag","value":"W/\"51-WqAnGYEu2Qfr+CWcf9yyrHld5Fg\""},{"key":"Date","value":"Tue, 08 Nov 2022 08:59:27 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"result\": \"error\",\n    \"reason\": \"별점은 1 이상 5 이하 정수여야 합니다.\"\n}"}],"_postman_id":"e3360795-1752-4cdd-909b-beb9a1dced8b"}],"id":"bd577a3b-f1e0-46ae-87e8-ce60af02e819","_postman_id":"bd577a3b-f1e0-46ae-87e8-ce60af02e819","description":""},{"name":"Order API","item":[{"name":"\b유저 본인의 상세 주문 내역 가져오기","id":"f27b828e-957c-47d2-bec1-412e75924986","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/orders/:orderId","urlObject":{"protocol":"http","port":"5500","path":["api","orders",":orderId"],"host":["localhost"],"query":[],"variable":[{"id":"1e249e0f-3d9d-4b13-97f0-aff7be76e60a","type":"any","value":"6363834966e64222e7cf64db","key":"orderId"}]}},"response":[{"id":"719fdbcf-b659-4260-bfac-4130d283eff4","name":"\b유저 본인의 상세 주문 내역 가져오기","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://localhost:5500/api/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","orders",":orderId"],"variable":[{"id":"1e249e0f-3d9d-4b13-97f0-aff7be76e60a","key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1994"},{"key":"ETag","value":"W/\"7ca-Rm2gb3zhZeUgsdhAUm5Pj4OqaPI\""},{"key":"Date","value":"Fri, 11 Nov 2022 08:33:45 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"주문 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"처음 postalCode\",\n        \"address1\": \"처음 address1\",\n        \"address2\": \"처음 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": {\n                \"image\": {\n                    \"path\": \"https://images.unsplash.com/photo-1571074635691-b910c7a5cdbb?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=903&q=80\"\n                },\n                \"sale\": {\n                    \"onSale\": false\n                },\n                \"_id\": \"6363578739bd781e3f24e279\",\n                \"title\": \"영양만점 버섯\",\n                \"price\": 3000,\n                \"quantity\": 7,\n                \"description\": \"test\",\n                \"comments\": [\n                    {\n                        \"content\": \"comment 테스트용5\",\n                        \"rating\": 5,\n                        \"user\": \"63632d4ddfb91201fe8d5e10\",\n                        \"_id\": \"636e08e4a6126f1333887ce3\"\n                    }\n                ],\n                \"category\": \"63614045b3cd1137208c7ea2\",\n                \"createdAt\": \"2022-11-11T08:33:40.847Z\",\n                \"updatedAt\": \"2022-11-11T08:33:40.847Z\",\n                \"__v\": 0\n            },\n            \"count\": 1,\n            \"_id\": \"636e08e4a6126f1333887ce5\"\n        },\n        {\n            \"product\": {\n                \"image\": {\n                    \"path\": \"https://images.unsplash.com/flagged/photo-1579410137922-543ed48d263e?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=580&q=80\"\n                },\n                \"sale\": {\n                    \"onSale\": false\n                },\n                \"_id\": \"6363578739bd781e3f24e278\",\n                \"title\": \"똑똑한 호두\",\n                \"price\": 10000,\n                \"quantity\": 2,\n                \"description\": \"test\",\n                \"comments\": [\n                    {\n                        \"content\": \"comment 테스트용4\",\n                        \"rating\": 4,\n                        \"user\": \"63632d4ddfb91201fe8d5eec\",\n                        \"_id\": \"636e08e4a6126f1333887ce1\"\n                    }\n                ],\n                \"category\": \"63613692b3cd1137208c7e7c\",\n                \"createdAt\": \"2022-11-11T08:33:40.847Z\",\n                \"updatedAt\": \"2022-11-11T08:33:40.847Z\",\n                \"__v\": 0\n            },\n            \"count\": 2,\n            \"_id\": \"636e08e4a6126f1333887ce6\"\n        }\n    ],\n    \"user\": {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"root\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-2342-1342\",\n        \"address\": {\n            \"postalCode\": \"12345\",\n            \"address1\": \"서울시 행복구 행복동\",\n            \"address2\": \"광주시 광산구 산정동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-11T08:33:40.846Z\",\n        \"updatedAt\": \"2022-11-11T08:33:40.846Z\",\n        \"__v\": 0\n    },\n    \"createdAt\": \"2022-11-11T08:33:40.847Z\",\n    \"updatedAt\": \"2022-11-11T08:33:40.847Z\",\n    \"__v\": 0\n}"}],"_postman_id":"f27b828e-957c-47d2-bec1-412e75924986"},{"name":"주문 생성(create order)","id":"2ee7fe99-6fe1-4765-a173-de9e18e9ef9c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"POST","header":[{"key":"currentUserId","value":"63632d4ddfb91201fe8d5eec","type":"text"}],"body":{"mode":"raw","raw":"{\n    \"recipient\": \"test 1\",\n     \"phoneNumber\" : \"010-0000-0000\",\n     \"products\" : [{\n         \"product\": \"6363578739bd781e3f24e278\",\n         \"count\" : 1\n     },{\n        \"product\": \"6363578739bd781e3f24e276\",\n        \"count\" : 1\n     }],\n     \"shippingAddress\": {\n         \"postalCode\": \"12345\",\n         \"address1\": \"서울시 행복구 행복동\",\n         \"address2\": \"광주시 광산구 산정동\"\n     }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/orders","description":"<p>주문을 생성하는 API 입니다.</p>\n<p>필요한 값들은 다음과 같습니다.</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-javascript\"> {\n        recipient: String, // 주문한 사람\n        phoneNumber String, // 전화 번호\n        shippingAddress: {  // 도착지 정보\n            postalCode: String,\n            address1: String,\n            address2: String,\n        }\n,\n        products: [\n            {\n                product: String, // 상품의 Id\n                count: Number,  // 주문할 상품 개수\n            },\n        ],\n        // 주문할 상품들\n        user:String // 주문한 user의 Id\n    }\n\n</code></pre>\n","urlObject":{"protocol":"http","port":"5500","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"67c16e09-af86-490c-978d-834bb914423d","name":"주문 생성(create order)","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"recipient\": \"test 1\",\n     \"phoneNumber\" : \"010-0000-0000\",\n     \"products\" : [{\n         \"product\": \"6363578739bd781e3f24e278\",\n         \"count\" : 1\n     },{\n        \"product\": \"6363578739bd781e3f24e276\",\n        \"count\" : 1\n     }],\n     \"shippingAddress\": {\n         \"postalCode\": \"12345\",\n         \"address1\": \"서울시 행복구 행복동\",\n         \"address2\": \"광주시 광산구 산정동\"\n     }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/orders"},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"932"},{"key":"ETag","value":"W/\"3a4-H9g/mA2iXbaVZgfd6flovFLaVUM\""},{"key":"Date","value":"Fri, 04 Nov 2022 05:01:37 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"status\": \"주문 완료\",\n    \"recipient\": \"test 1\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"12345\",\n        \"address1\": \"서울시 행복구 행복동\",\n        \"address2\": \"광주시 광산구 산정동\"\n    },\n    \"totalPrice\": 14000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 1,\n            \"_id\": \"63649cb1920e732cb135a7c3\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e276\",\n            \"count\": 1,\n            \"_id\": \"63649cb1920e732cb135a7c4\"\n        }\n    ],\n    \"user\": {\n        \"_id\": \"63632d4ddfb91201fe8d5eec\",\n        \"email\": \"root@root.com\",\n        \"fullName\": \"root\",\n        \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n        \"phoneNumber\": \"010-2342-1342\",\n        \"address\": {\n            \"postalCode\": \"12345\",\n            \"address1\": \"서울시 행복구 행복동\",\n            \"address2\": \"광주시 광산구 산정동\"\n        },\n        \"role\": \"basic-user\",\n        \"createdAt\": \"2022-11-04T05:00:56.486Z\",\n        \"updatedAt\": \"2022-11-04T05:00:56.486Z\",\n        \"__v\": 0\n    },\n    \"_id\": \"63649cb1920e732cb135a7c2\",\n    \"createdAt\": \"2022-11-04T05:01:37.302Z\",\n    \"updatedAt\": \"2022-11-04T05:01:37.302Z\",\n    \"__v\": 0\n}"}],"_postman_id":"2ee7fe99-6fe1-4765-a173-de9e18e9ef9c"},{"name":"배송 상태 변경(update order's status)","id":"80f1d72e-fe61-49f5-b9d1-e6c8d86835a8","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"배송 완료\"\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/admin/orders/6363834966e64222e7cf64db","urlObject":{"protocol":"http","port":"5500","path":["api","admin","orders","6363834966e64222e7cf64db"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f64b5fd3-ca75-4d44-a9b0-0d44336cb4b8","name":"배송 상태 변경(update order's status)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n    \"status\": \"배송 완료\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/admin/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","admin","orders",":orderId"],"variable":[{"key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"535"},{"key":"ETag","value":"W/\"217-dlIZKF/PVhD9eU2tpPgaFDEyR/c\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:42:32 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"배송 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"처음 postalCode\",\n        \"address1\": \"처음 address1\",\n        \"address2\": \"처음 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e279\",\n            \"count\": 1,\n            \"_id\": \"6364c11e24c09e7caa40028d\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 2,\n            \"_id\": \"6364c11e24c09e7caa40028e\"\n        }\n    ],\n    \"user\": \"63632d4ddfb91201fe8d5eec\",\n    \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n    \"updatedAt\": \"2022-11-04T07:42:32.767Z\",\n    \"__v\": 0\n}"}],"_postman_id":"80f1d72e-fe61-49f5-b9d1-e6c8d86835a8"},{"name":"배송지 변경(update order's shippingAddress)","id":"30964831-c646-4d58-baa9-30fb3b324bb0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n   \"shippingAddress\": {\n       \"postalCode\": \"바뀐 postalCode\",\n       \"address1\": \"바뀐 address1\",\n       \"address2\": \"바뀐 address2\"\n   }\n}","options":{"raw":{"language":"json"}}},"url":"http://localhost:5500/api/orders/6363834966e64222e7cf64db","urlObject":{"protocol":"http","port":"5500","path":["api","orders","6363834966e64222e7cf64db"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"e3e4b911-826b-4cb8-b92c-24aafc84968f","name":"배송지 변경(update order's shippingAddress)","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n   \"shippingAddress\": {\n       \"postalCode\": \"바뀐 postalCode\",\n       \"address1\": \"바뀐 address1\",\n       \"address2\": \"바뀐 address2\"\n   }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"http://localhost:5500/api/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","orders",":orderId"],"variable":[{"key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"535"},{"key":"ETag","value":"W/\"217-Jwq7ZAmnxVJc2/ZzRHZJtinjAPc\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:42:51 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"배송 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"바뀐 postalCode\",\n        \"address1\": \"바뀐 address1\",\n        \"address2\": \"바뀐 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e279\",\n            \"count\": 1,\n            \"_id\": \"6364c11e24c09e7caa40028d\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 2,\n            \"_id\": \"6364c11e24c09e7caa40028e\"\n        }\n    ],\n    \"user\": \"63632d4ddfb91201fe8d5eec\",\n    \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n    \"updatedAt\": \"2022-11-04T07:42:51.736Z\",\n    \"__v\": 0\n}"}],"_postman_id":"30964831-c646-4d58-baa9-30fb3b324bb0"},{"name":"관리자가 모든 주문 내역 가져오기(get all orders)","id":"fa60b66c-acbc-45db-a750-8dedc9a1fb7b","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/admin/orders","description":"<p>관리자가 모든 주문을 확인하는 API 입니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","admin","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"64c9d162-6ca6-43e3-9628-44351e978132","name":"관리자가 모든 주문 내역 가져오기(get all orders)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/admin/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1368"},{"key":"ETag","value":"W/\"558-vOMWePBPfsuKzR+OsHey5WwSWVA\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:43:30 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6363834966e64222e7cf64db\",\n        \"status\": \"주문 완료\",\n        \"recipient\": \"root\",\n        \"phoneNumber\": \"010-0000-0000\",\n        \"shippingAddress\": {\n            \"postalCode\": \"처음 postalCode\",\n            \"address1\": \"처음 address1\",\n            \"address2\": \"처음 address2\"\n        },\n        \"totalPrice\": 23000,\n        \"products\": [\n            {\n                \"product\": {\n                    \"_id\": \"6363578739bd781e3f24e279\",\n                    \"title\": \"영양만점 버섯\",\n                    \"imageUrl\": \"test\",\n                    \"price\": 3000,\n                    \"quantity\": 7,\n                    \"description\": \"test\",\n                    \"category\": \"63614045b3cd1137208c7ea2\",\n                    \"createdAt\": \"2022-11-04T07:43:28.844Z\",\n                    \"updatedAt\": \"2022-11-04T07:43:28.844Z\",\n                    \"__v\": 0\n                },\n                \"count\": 1,\n                \"_id\": \"6364c2a056795d2c50e046a2\"\n            },\n            {\n                \"product\": {\n                    \"_id\": \"6363578739bd781e3f24e278\",\n                    \"title\": \"똑똑한 호두\",\n                    \"imageUrl\": \"test\",\n                    \"price\": 10000,\n                    \"quantity\": 2,\n                    \"description\": \"test\",\n                    \"category\": \"63613692b3cd1137208c7e7c\",\n                    \"createdAt\": \"2022-11-04T07:43:28.844Z\",\n                    \"updatedAt\": \"2022-11-04T07:43:28.844Z\",\n                    \"__v\": 0\n                },\n                \"count\": 2,\n                \"_id\": \"6364c2a056795d2c50e046a3\"\n            }\n        ],\n        \"user\": {\n            \"_id\": \"63632d4ddfb91201fe8d5eec\",\n            \"email\": \"root@root.com\",\n            \"fullName\": \"root\",\n            \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n            \"phoneNumber\": \"010-2342-1342\",\n            \"address\": {\n                \"postalCode\": \"12345\",\n                \"address1\": \"서울시 행복구 행복동\",\n                \"address2\": \"광주시 광산구 산정동\"\n            },\n            \"role\": \"basic-user\",\n            \"createdAt\": \"2022-11-04T07:43:28.847Z\",\n            \"updatedAt\": \"2022-11-04T07:43:28.847Z\",\n            \"__v\": 0\n        },\n        \"createdAt\": \"2022-11-04T07:43:28.847Z\",\n        \"updatedAt\": \"2022-11-04T07:43:28.847Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"fa60b66c-acbc-45db-a750-8dedc9a1fb7b"},{"name":"유저 본인의 주문 내역 가져오기(get  order)","id":"00e96b7b-4ca7-4fb1-af23-889717fbdaaa","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"GET","header":[],"url":"http://localhost:5500/api/orders","description":"<p>유저가 본인이 주문한 주문 내역을 불러오는 API 입니다.</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","orders"],"host":["localhost"],"query":[],"variable":[]}},"response":[{"id":"f2f704e4-1b94-46d5-9b1f-850141d277ee","name":"유저 본인의 주문 내역 가져오기(get  order)","originalRequest":{"method":"GET","header":[],"url":"http://localhost:5500/api/orders"},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"1368"},{"key":"ETag","value":"W/\"558-yQouEaxa26emp+ljoT1m4I+gNAQ\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:43:07 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"[\n    {\n        \"_id\": \"6363834966e64222e7cf64db\",\n        \"status\": \"배송 완료\",\n        \"recipient\": \"root\",\n        \"phoneNumber\": \"010-0000-0000\",\n        \"shippingAddress\": {\n            \"postalCode\": \"바뀐 postalCode\",\n            \"address1\": \"바뀐 address1\",\n            \"address2\": \"바뀐 address2\"\n        },\n        \"totalPrice\": 23000,\n        \"products\": [\n            {\n                \"product\": {\n                    \"_id\": \"6363578739bd781e3f24e279\",\n                    \"title\": \"영양만점 버섯\",\n                    \"imageUrl\": \"test\",\n                    \"price\": 3000,\n                    \"quantity\": 7,\n                    \"description\": \"test\",\n                    \"category\": \"63614045b3cd1137208c7ea2\",\n                    \"createdAt\": \"2022-11-04T07:37:02.266Z\",\n                    \"updatedAt\": \"2022-11-04T07:37:02.266Z\",\n                    \"__v\": 0\n                },\n                \"count\": 1,\n                \"_id\": \"6364c11e24c09e7caa40028d\"\n            },\n            {\n                \"product\": {\n                    \"_id\": \"6363578739bd781e3f24e278\",\n                    \"title\": \"똑똑한 호두\",\n                    \"imageUrl\": \"test\",\n                    \"price\": 10000,\n                    \"quantity\": 2,\n                    \"description\": \"test\",\n                    \"category\": \"63613692b3cd1137208c7e7c\",\n                    \"createdAt\": \"2022-11-04T07:37:02.266Z\",\n                    \"updatedAt\": \"2022-11-04T07:37:02.266Z\",\n                    \"__v\": 0\n                },\n                \"count\": 2,\n                \"_id\": \"6364c11e24c09e7caa40028e\"\n            }\n        ],\n        \"user\": {\n            \"_id\": \"63632d4ddfb91201fe8d5eec\",\n            \"email\": \"root@root.com\",\n            \"fullName\": \"root\",\n            \"password\": \"$2b$10$6fPyrhFvBgMUZbjIwnlapOoieg8fSXJem9HldX6mggagG5XDGy0l2\",\n            \"phoneNumber\": \"010-2342-1342\",\n            \"address\": {\n                \"postalCode\": \"12345\",\n                \"address1\": \"서울시 행복구 행복동\",\n                \"address2\": \"광주시 광산구 산정동\"\n            },\n            \"role\": \"basic-user\",\n            \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n            \"updatedAt\": \"2022-11-04T07:37:02.269Z\",\n            \"__v\": 0\n        },\n        \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n        \"updatedAt\": \"2022-11-04T07:42:51.736Z\",\n        \"__v\": 0\n    }\n]"}],"_postman_id":"00e96b7b-4ca7-4fb1-af23-889717fbdaaa"},{"name":"주문 삭제 (delete order)","id":"de49f1ac-d7d1-46f4-8e32-523c4d43786e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/orders/:orderId","description":"<p>주문을 삭제하는 API 입니다!</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","orders",":orderId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"6363834966e64222e7cf64db","key":"orderId"}]}},"response":[{"id":"e7a50f4f-0c19-4893-af19-a38c79433079","name":"주문 삭제 (delete order)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","orders",":orderId"],"variable":[{"key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"535"},{"key":"ETag","value":"W/\"217-Jwq7ZAmnxVJc2/ZzRHZJtinjAPc\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:43:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"배송 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"바뀐 postalCode\",\n        \"address1\": \"바뀐 address1\",\n        \"address2\": \"바뀐 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e279\",\n            \"count\": 1,\n            \"_id\": \"6364c11e24c09e7caa40028d\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 2,\n            \"_id\": \"6364c11e24c09e7caa40028e\"\n        }\n    ],\n    \"user\": \"63632d4ddfb91201fe8d5eec\",\n    \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n    \"updatedAt\": \"2022-11-04T07:42:51.736Z\",\n    \"__v\": 0\n}"}],"_postman_id":"de49f1ac-d7d1-46f4-8e32-523c4d43786e"},{"name":"주문 삭제 (delete order) Copy","id":"eb6060ce-ccfa-4511-9ce3-8b2380079317","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/orders/:orderId","description":"<p>주문을 삭제하는 API 입니다!</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","orders",":orderId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"6363834966e64222e7cf64db","key":"orderId"}]}},"response":[{"id":"9d2f4994-bb88-4c4f-8dc6-7ebe0a936da2","name":"주문 삭제 (delete order)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","orders",":orderId"],"variable":[{"key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"535"},{"key":"ETag","value":"W/\"217-Jwq7ZAmnxVJc2/ZzRHZJtinjAPc\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:43:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"배송 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"바뀐 postalCode\",\n        \"address1\": \"바뀐 address1\",\n        \"address2\": \"바뀐 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e279\",\n            \"count\": 1,\n            \"_id\": \"6364c11e24c09e7caa40028d\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 2,\n            \"_id\": \"6364c11e24c09e7caa40028e\"\n        }\n    ],\n    \"user\": \"63632d4ddfb91201fe8d5eec\",\n    \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n    \"updatedAt\": \"2022-11-04T07:42:51.736Z\",\n    \"__v\": 0\n}"}],"_postman_id":"eb6060ce-ccfa-4511-9ce3-8b2380079317"},{"name":"관리자가 주문 삭제 (delete order)","id":"f00c2adc-f58d-406f-a6c8-d0bba6f8acf4","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"auth":{"type":"bearer","bearer":{"basicConfig":[{"key":"token","value":"<token>"}]},"isInherited":false},"method":"DELETE","header":[],"url":"http://localhost:5500/api/orders/:orderId","description":"<p>주문을 삭제하는 API 입니다!</p>\n","urlObject":{"protocol":"http","port":"5500","path":["api","orders",":orderId"],"host":["localhost"],"query":[],"variable":[{"type":"any","value":"6364f6a4615f0adf9c6e07c8","key":"orderId"}]}},"response":[{"id":"05a12511-d3e0-49d5-82d0-7f561f614a34","name":"주문 삭제 (delete order)","originalRequest":{"method":"DELETE","header":[],"url":{"raw":"http://localhost:5500/api/orders/:orderId","protocol":"http","host":["localhost"],"port":"5500","path":["api","orders",":orderId"],"variable":[{"key":"orderId","value":"6363834966e64222e7cf64db"}]}},"status":"Created","code":201,"_postman_previewlanguage":"json","header":[{"key":"X-Powered-By","value":"Express"},{"key":"Access-Control-Allow-Origin","value":"*"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"535"},{"key":"ETag","value":"W/\"217-Jwq7ZAmnxVJc2/ZzRHZJtinjAPc\""},{"key":"Date","value":"Fri, 04 Nov 2022 07:43:20 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"_id\": \"6363834966e64222e7cf64db\",\n    \"status\": \"배송 완료\",\n    \"recipient\": \"root\",\n    \"phoneNumber\": \"010-0000-0000\",\n    \"shippingAddress\": {\n        \"postalCode\": \"바뀐 postalCode\",\n        \"address1\": \"바뀐 address1\",\n        \"address2\": \"바뀐 address2\"\n    },\n    \"totalPrice\": 23000,\n    \"products\": [\n        {\n            \"product\": \"6363578739bd781e3f24e279\",\n            \"count\": 1,\n            \"_id\": \"6364c11e24c09e7caa40028d\"\n        },\n        {\n            \"product\": \"6363578739bd781e3f24e278\",\n            \"count\": 2,\n            \"_id\": \"6364c11e24c09e7caa40028e\"\n        }\n    ],\n    \"user\": \"63632d4ddfb91201fe8d5eec\",\n    \"createdAt\": \"2022-11-04T07:37:02.269Z\",\n    \"updatedAt\": \"2022-11-04T07:42:51.736Z\",\n    \"__v\": 0\n}"}],"_postman_id":"f00c2adc-f58d-406f-a6c8-d0bba6f8acf4"}],"id":"eec1930e-85c2-4347-a320-3252d2bc7aff","_postman_id":"eec1930e-85c2-4347-a320-3252d2bc7aff","description":""}]}