{"info":{"_postman_id":"52c1fe0c-f23b-41ac-8a54-64815122d4db","name":"디어코퍼레이션 기업 과제 - 어나더글라스 팀","description":"<html><head></head><body><p>어나더글라스팀의 휴먼스케이프 기업과제입니다.</p>\n</body></html>","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"owner":"18068137","collectionId":"52c1fe0c-f23b-41ac-8a54-64815122d4db","publishedId":"UVJWpzT4","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-11-20T12:24:32.000Z"},"item":[{"name":"서버 동작 확인","event":[{"listen":"test","script":{"exec":["\r","pm.test(`Server is on at ${pm.request.url}`, function (){\r","    pm.expect(pm.response.code / 100).to.be.equal(2)\r","})\r","    "],"type":"text/javascript","id":"56ccecea-abd0-49d1-9bca-93969793a88d"}}],"id":"efe2d90a-8cfb-4fcf-8101-f06a2f2bdfed","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000","description":"<h3 id=\"서버-동작-확인\">서버 동작 확인</h3>\n<ul>\n<li>서버가 실행이 잘 되는 지 확인합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","host":["54.180.139.105"],"query":[],"variable":[]}},"response":[{"id":"a04c85a0-644d-469f-976f-844edbd4ca39","name":"서버 동작 성공","originalRequest":{"method":"GET","header":[],"url":"http://54.180.139.105:3000"},"status":"OK","code":200,"_postman_previewlanguage":"html","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"text/html; charset=utf-8"},{"key":"Content-Length","value":"10"},{"key":"ETag","value":"W/\"a-24rBwlnridShMbJTus/KXzGdVPI\""},{"key":"Date","value":"Tue, 09 Nov 2021 12:15:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"HelloWorld"}],"_postman_id":"efe2d90a-8cfb-4fcf-8101-f06a2f2bdfed"},{"name":"API 공통 에러 모음 (예시 확인용)","event":[{"listen":"test","script":{"exec":["\r","pm.test(`Server is on at ${pm.request.url}`, function (){\r","    pm.expect(pm.response.code / 100).to.be.equal(2)\r","})\r","    "],"type":"text/javascript","id":"48788919-c82d-42e9-879e-272d1414f9f7"}}],"id":"563c91e2-ff22-4339-941a-b9f63f3c2161","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000","description":"<h3 id=\"공통-에러-모음\">공통 에러 모음</h3>\n<ul>\n<li>API 공통 에러 확인용 항목입니다.</li>\n<li>예시를 보시면 됩니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","host":["54.180.139.105"],"query":[],"variable":[]}},"response":[{"id":"1229acfb-cae8-41c3-b1d7-8319cbda8cf9","name":"존재하지 않는 API","originalRequest":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/useraaaa"},"status":"Not Found","code":404,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-wzV0l3Q2anW3TPLi7CyENMh8ahk\""},{"key":"Date","value":"Fri, 12 Nov 2021 08:21:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"해당 라우트는 존재하지 않습니다.\"\n}"},{"id":"220ac93f-3bce-4a9e-b93d-06d3be920ff1","name":"서버 자체 오류","originalRequest":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/useraaaa"},"status":"Internal Server Error","code":500,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-wzV0l3Q2anW3TPLi7CyENMh8ahk\""},{"key":"Date","value":"Fri, 12 Nov 2021 08:21:31 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": false,\n    \"message\": \"서버 오류입니다.\"\n}"}],"_postman_id":"563c91e2-ff22-4339-941a-b9f63f3c2161"},{"name":"유저 목록 조회","event":[{"listen":"test","script":{"exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript","id":"e5ba8233-ad5e-4f28-8dfa-1868d587a72d"}}],"id":"cc114b59-ba62-49b2-a135-4db5b5ed4066","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/users","description":"<ul>\n<li>유저 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["users"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"cc114b59-ba62-49b2-a135-4db5b5ed4066"},{"name":"이용내역 목록 조회","event":[{"listen":"test","script":{"exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript","id":"ce947079-8a35-4632-ac4d-18af57b5c53e"}}],"id":"6aed189f-0f06-4221-920a-467ca9ad9f26","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories","description":"<ul>\n<li>이용내역 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["histories"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"6aed189f-0f06-4221-920a-467ca9ad9f26"},{"name":"지역 목록 조회","event":[{"listen":"test","script":{"exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript","id":"152cdbbb-8de1-4f96-826c-39bb7d9dc865"}}],"id":"ea536246-246f-4ef5-ac3e-da8151420089","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/areas","description":"<ul>\n<li>지역 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["areas"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"ea536246-246f-4ef5-ac3e-da8151420089"},{"name":"파킹존 목록 조회","event":[{"listen":"test","script":{"exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript","id":"198d7c01-5ac8-46c4-9d40-d2d30b8b4766"}}],"id":"817d3d05-6e4a-4a39-9366-9478f8732027","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/parkingzones","description":"<ul>\n<li>파킹존 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["parkingzones"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"817d3d05-6e4a-4a39-9366-9478f8732027"},{"name":"금지구역 목록 조회","event":[{"listen":"test","script":{"exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript","id":"3c6356d2-25db-4b74-b5ed-d0e3c6b59beb"}}],"id":"c3cd4542-9389-4f37-bfaf-eb1a77ba371c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/forbiddenAreas","description":"<ul>\n<li>금지구역 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["forbiddenAreas"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"c3cd4542-9389-4f37-bfaf-eb1a77ba371c"},{"name":"킥보드 목록 조회","event":[{"listen":"test","script":{"id":"b40a9673-4b60-4b48-acc2-d7985720d782","exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"c1d7c08c-6061-4a1e-b07c-7f7160d985d0","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/deers","description":"<ul>\n<li>킥보드 목록을 조회합니다.</li>\n</ul>\n","urlObject":{"protocol":"http","port":"3000","path":["deers"],"host":["54.180.139.105"],"query":[],"variable":[]}},"response":[],"_postman_id":"c1d7c08c-6061-4a1e-b07c-7f7160d985d0"},{"name":"요금계산 - 기본료만","event":[{"listen":"test","script":{"id":"29f83495-1a55-4dec-9e15-4e43def3a2dd","exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"0ead222b-3776-46be-ba67-d20be9d6165c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories/:historyId/cost","description":"<ul>\n<li>해당 이용내역의 요금을 계산합니다.</li>\n<li>기본료만 나오는 경우입니다.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스)\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 25분\n그 외 할인/벌금 조건 없음\n예상요금: 2400\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["histories",":historyId","cost"],"host":["54.180.139.105"],"query":[],"variable":[{"id":"c2025a9f-b34e-4155-b782-80ea181ef28e","type":"any","value":"1","key":"historyId"}]}},"response":[{"id":"60af60bb-c546-4450-9e0c-9013736af0cb","name":"기본료만","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-6KvT1WcC5HrQuslsFVgi9lSJG+Y\""},{"key":"Date","value":"Fri, 19 Nov 2021 08:44:18 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 2400\n    }\n}"}],"_postman_id":"0ead222b-3776-46be-ba67-d20be9d6165c"},{"name":"요금계산 - 사용시간 1분이내","event":[{"listen":"test","script":{"id":"e8f5c760-50d8-40cf-a011-926d07a3db58","exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"f100d877-5d4c-47d1-8fe5-8e729d5f5c9e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories/:historyId/cost","description":"<ul>\n<li>해당 이용내역의 요금을 계산합니다.</li>\n<li>사용시간 1분 이내(무료)인 경우입니다.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 1) - 사용 시간이 1분 이내인 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 30초\n그 외 할인/벌금 조건 없음\n예상요금: 0\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 2) - 사용 시간이 1분 이내가 아닌 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 20분\n그 외 할인/벌금 조건 없음\n예상요금: 2000\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["histories",":historyId","cost"],"host":["54.180.139.105"],"query":[],"variable":[{"id":"26b1dc13-f51c-477d-a955-7c1b7176b15a","type":"any","value":"4","key":"historyId"}]}},"response":[{"id":"68ae02a9-70a8-4df9-93d2-b5f7f913f3e7","name":"사용시간 1분이내 일때","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"4"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"73"},{"key":"ETag","value":"W/\"49-DWx+dspg1+Gx9kivg52ii1yk7Iw\""},{"key":"Date","value":"Fri, 19 Nov 2021 08:42:06 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 0\n    }\n}"},{"id":"431b32dc-182e-4f21-b077-5a7a27f56837","name":"사용시간 1분이내 아닐때","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"2"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-HTvW9/4TxEtOI4mrfD5pw3VsKvY\""},{"key":"Date","value":"Fri, 19 Nov 2021 08:41:35 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 2000\n    }\n}"}],"_postman_id":"f100d877-5d4c-47d1-8fe5-8e729d5f5c9e"},{"name":"요금계산 - 지역 벗어남 + 금지구역에 반납","event":[{"listen":"test","script":{"id":"deb12d7b-1987-440e-9e5f-8d4c9d8ca973","exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"e02bf438-385d-4eed-b39e-6daf4e7fc95f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories/:historyId/cost","description":"<ul>\n<li>해당 이용내역의 요금을 계산합니다.</li>\n<li>지역 벗어남(거리비례 벌금) + 금지구역에 반납(6000원 벌금)인 경우입니다.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 1) - 지역 벗어남 + 금지구역에 반납인 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 35분\n지역이탈: 92005m 이탈\n금지구역 ok\n환승적용 ok\n예상요금: 9209300\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 2) - 지역 벗어남은 맞지만, 금지구역은 아닌 경우\nareaId: 4\n기본요금: 630\n분당요금: 100\n주행시간: 10분\n지역이탈: 97817m 이탈\n금지구역 no\n파킹존 ok\n예상요금: 9782841\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["histories",":historyId","cost"],"host":["54.180.139.105"],"query":[],"variable":[{"id":"ee5dac3a-c43a-4755-8404-36e8451d965f","type":"any","value":"10","key":"historyId"}]}},"response":[{"id":"1464c48a-88ca-440f-a975-ca54631f6f31","name":"지역 벗어남 + 금지구역에 반납 일 경우","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"9"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"ETag","value":"W/\"59-DhJeCGMrOgOzTGabaZEADGM8hxg\""},{"key":"Date","value":"Fri, 19 Nov 2021 14:29:40 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 9209300\n    }\n}"},{"id":"83b1896b-fd89-44de-9f59-71f2de6c1d57","name":"지역 벗어남은 맞지만, 금지구역은 아닌 경우","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"10"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"89"},{"key":"ETag","value":"W/\"59-Sv4N80++jJSmYhM1MgP/nAL/fHY\""},{"key":"Date","value":"Fri, 19 Nov 2021 15:12:15 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 9782841\n    }\n}"}],"_postman_id":"e02bf438-385d-4eed-b39e-6daf4e7fc95f"},{"name":"요금계산 - 30분이내 다시사용","event":[{"listen":"test","script":{"id":"24c45713-1969-4a30-9a8f-2efed03f3aa9","exec":["//pm.test(`찾아낸 누적 과제 갯수 : ${pm.collectionVariables.get(\"trialIndex\")}`, () => {\r","//    pm.response.to.have.status(200)\r","//})\r","\r","\r","\r",""],"type":"text/javascript"}}],"id":"9b677f68-3ead-4a96-a3ca-9d1acdc53b63","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories/:historyId/cost","description":"<ul>\n<li>해당 이용내역의 요금을 계산합니다.</li>\n<li>30분이내 다시사용(기본료 면제)인 경우입니다.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 1) - 30분이내 다시사용(기본료 면제)인 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 35분\n그 외 할인/벌금 조건 없음\n예상요금: 2800\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 2) - 30분이내 다시사용(기본료 면제)이 아닌 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 25분\n그 외 할인/벌금 조건 없음\n예상요금: 2400\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["histories",":historyId","cost"],"host":["54.180.139.105"],"query":[],"variable":[{"id":"6c63e076-9455-4152-b882-ce946cdb4518","type":"any","value":"6","key":"historyId"}]}},"response":[{"id":"5257b715-f2ba-40a0-ac47-12bdfc24a82f","name":"30분이내 다시사용 일때","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"6"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-KRlJ01c8L3iZ3EQg1KYnkEM6MS4\""},{"key":"Date","value":"Fri, 19 Nov 2021 12:06:33 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 2800\n    }\n}"},{"id":"eb5c972f-5388-4e6b-ad0e-8c6ed804dd48","name":"30분이내 다시사용 아닐때","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"1"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-6KvT1WcC5HrQuslsFVgi9lSJG+Y\""},{"key":"Date","value":"Fri, 19 Nov 2021 12:07:23 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 2400\n    }\n}"}],"_postman_id":"9b677f68-3ead-4a96-a3ca-9d1acdc53b63"},{"name":"요금계산 - 파킹존에서 반납","id":"851133fe-a9f2-4f27-9659-793483b2d052","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://54.180.139.105:3000/histories/:historyId/cost","description":"<ul>\n<li>해당 이용내역의 요금을 계산합니다.</li>\n<li>파킹존에 반납(30% 할인)인 경우입니다.</li>\n</ul>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 1) - 파킹존에서 반납인 경우\nareaId: 4\n기본요금: 630\n분당요금: 100\n주행시간: 15분\n파킹존 외 할인/벌금 조건 없음\n예상요금: 1491\n</code></pre><pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>(예시 케이스 2) - 파킹존에서 반납이 아닌 경우\nareaId: 2\n기본요금: 400\n분당요금: 80\n주행시간: 10분\n그 외 할인/벌금 조건 없음\n예상요금: 1200\n</code></pre>","urlObject":{"protocol":"http","port":"3000","path":["histories",":historyId","cost"],"host":["54.180.139.105"],"query":[],"variable":[{"type":"any","value":"11","key":"historyId"}]}},"response":[{"id":"87db1e2f-468d-4ac7-96bd-278fe4ad333c","name":"파킹존에서 반납일 경우","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"11"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-+zLKXGtV6Ay9nNc/ZiaRy9Ggo8w\""},{"key":"Date","value":"Fri, 19 Nov 2021 14:36:03 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 1491\n    }\n}"},{"id":"6300a90b-84ed-4894-8b0a-2d18810d779f","name":"파킹존에서 반납이 아닌 경우","originalRequest":{"method":"GET","header":[],"url":{"raw":"http://54.180.139.105:3000/histories/:historyId/cost","protocol":"http","host":["54.180.139.105"],"port":"3000","path":["histories",":historyId","cost"],"variable":[{"key":"historyId","value":"8"}]}},"status":"OK","code":200,"_postman_previewlanguage":"json","header":[{"key":"X-DNS-Prefetch-Control","value":"off"},{"key":"Expect-CT","value":"max-age=0"},{"key":"X-Frame-Options","value":"SAMEORIGIN"},{"key":"Strict-Transport-Security","value":"max-age=15552000; includeSubDomains"},{"key":"X-Download-Options","value":"noopen"},{"key":"X-Content-Type-Options","value":"nosniff"},{"key":"X-Permitted-Cross-Domain-Policies","value":"none"},{"key":"Referrer-Policy","value":"no-referrer"},{"key":"X-XSS-Protection","value":"0"},{"key":"Content-Type","value":"application/json; charset=utf-8"},{"key":"Content-Length","value":"76"},{"key":"ETag","value":"W/\"4c-aTDHSd+3lQCjIHq8soyRAMB5eEg\""},{"key":"Date","value":"Fri, 19 Nov 2021 14:37:50 GMT"},{"key":"Connection","value":"keep-alive"},{"key":"Keep-Alive","value":"timeout=5"}],"cookie":[],"responseTime":null,"body":"{\n    \"success\": true,\n    \"message\": \"이용요금 조회 성공\",\n    \"data\": {\n        \"cost\": 1200\n    }\n}"}],"_postman_id":"851133fe-a9f2-4f27-9659-793483b2d052"}],"event":[{"listen":"prerequest","script":{"id":"98fee8ae-ba01-43c8-bfc6-99b37feb4f4f","type":"text/javascript","exec":[""]}},{"listen":"test","script":{"id":"07bc8f32-3883-40ad-98a6-597ba221a0da","type":"text/javascript","exec":[""]}}],"variable":[{"key":"host","value":"54.180.139.105"},{"key":"port","value":"3000"},{"key":"historyId_case1","value":"1"},{"key":"historyId_case2","value":"2"},{"key":"historyId_case4","value":"4"},{"key":"historyId_case6","value":"6"},{"key":"historyId_case8","value":"8"},{"key":"historyId_case9","value":"9"},{"key":"historyId_case10","value":"10"},{"key":"historyId_case11","value":"11"}]}