{"info":{"_postman_id":"650ba168-75f9-43b9-9bd1-023ec88048c5","name":"Airbnb Server","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"15316683","collectionId":"650ba168-75f9-43b9-9bd1-023ec88048c5","publishedId":"TzRa8Qes","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"EF5B25"},"publishDate":"2021-05-21T02:44:59.000Z"},"item":[{"name":"[FE] JWT request","id":"b4807213-03c4-4450-9cdb-763507ad291d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://13.209.33.94:8080/oauth/login?code=코드정보","description":"<p>해당 url로 JWT 요청을 보내기 전, 클라이언트에서는 github 서버를 통해 code를 받아와야 한다.</p>\n<p>아래 링크에 접속하면 code 정보를 얻을 수 있다.</p>\n<ul>\n<li>[WEB] client id : c23f951c86ed309fa181<ul>\n<li>full url : <a href=\"https://github.com/login/oauth/authorize?client_id=c23f951c86ed309fa181\">https://github.com/login/oauth/authorize?client_id=c23f951c86ed309fa181</a></li>\n</ul>\n</li>\n</ul>\n<p>Response 예시</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"jwt\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjb2Rlc3F1YWQtdGVhbTA5IiwibmFtZSI6Ildvb2R5IiwibG9naW4iOiJqaWh5ZS13b28iLCJpYXQiOjE2MjE5MjM4MjV9.oiTHwXKJRkB-qb6jQTRm1_CousYBJRq-i5sISTABNVs\",\n    \"user\": {\n        \"login\": \"jihye-woo\",\n        \"name\": \"Woody\"\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["oauth","login"],"host":["13.209.33.94"],"query":[{"description":{"content":"<p>github 서버에서 받아온 code 정보를 쿼리 파라미터로 함께 넘겨줌(일정 주기로 갱신되므로 해당 url로 테스트를 원하면 \"코드정보\" 부분에 code를 직접 넣어주어야 함.</p>\n","type":"text/plain"},"key":"code","value":"코드정보"}],"variable":[]}},"response":[],"_postman_id":"b4807213-03c4-4450-9cdb-763507ad291d"},{"name":"[iOS] JWT request","id":"af8e745b-d032-4f38-85f4-e6455f52b575","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"http://13.209.33.94:8080/oauth/iOS/login?code=코드정보","description":"<p>해당 url로 JWT 요청을 보내기 전, 클라이언트에서는 github 서버를 통해 code를 받아와야 한다.</p>\n<p>아래 링크에 접속하면 code 정보를 얻을 수 있다.</p>\n<ul>\n<li>[iOS] client id : f612a3befaa3b899dbbf <ul>\n<li>full url : <a href=\"https://github.com/login/oauth/authorize?client_id=f612a3befaa3b899dbbf\">https://github.com/login/oauth/authorize?client_id=f612a3befaa3b899dbbf</a> </li>\n<li>callback url : airbnb://login</li>\n</ul>\n</li>\n</ul>\n<p>Response 예시</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n    \"jwt\": \"eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJjb2Rlc3F1YWQtdGVhbTA5IiwibmFtZSI6Ildvb2R5IiwibG9naW4iOiJqaWh5ZS13b28iLCJpYXQiOjE2MjE5MjM4MjV9.oiTHwXKJRkB-qb6jQTRm1_CousYBJRq-i5sISTABNVs\",\n    \"user\": {\n        \"login\": \"jihye-woo\",\n        \"name\": \"Woody\"\n    }\n}\n</code></pre>\n","urlObject":{"protocol":"http","port":"8080","path":["oauth","iOS","login"],"host":["13.209.33.94"],"query":[{"description":{"content":"<p>github 서버에서 받아온 code 정보를 쿼리 파라미터로 함께 넘겨줌(일정 주기로 갱신되므로 해당 url로 테스트를 원하면 \"코드정보\" 부분에 code를 직접 넣어주어야 함.</p>\n","type":"text/plain"},"key":"code","value":"코드정보"}],"variable":[]}},"response":[],"_postman_id":"af8e745b-d032-4f38-85f4-e6455f52b575"},{"name":"[FE/iOS] price request","id":"54c4e931-2a52-4cc7-8836-f233f253f928","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://13.209.33.94:8080/price?checkin=2021-06-01&checkout=2021-06-14&latitude=37.498063&longitude=127.030187","urlObject":{"protocol":"http","port":"8080","path":["price"],"host":["13.209.33.94"],"query":[{"key":"checkin","value":"2021-06-01"},{"key":"checkout","value":"2021-06-14"},{"disabled":true,"key":"fraction","value":"10"},{"key":"latitude","value":"37.498063"},{"key":"longitude","value":"127.030187"}],"variable":[]}},"response":[],"_postman_id":"54c4e931-2a52-4cc7-8836-f233f253f928"},{"name":"[FE/iOS] home list request","id":"c78e24bb-4b0e-4000-b6b6-a05f646abf8a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://13.209.33.94:8080/hotels/?checkin=2021-06-01&checkout=2021-06-14&pricemax=1500000&pricemin=100000&adults=2&children=0&infants=1&latitude=37.498063&longitude=127.030187","urlObject":{"protocol":"http","port":"8080","path":["hotels",""],"host":["13.209.33.94"],"query":[{"key":"checkin","value":"2021-06-01"},{"key":"checkout","value":"2021-06-14"},{"key":"pricemax","value":"1500000"},{"key":"pricemin","value":"100000"},{"key":"adults","value":"2"},{"key":"children","value":"0"},{"key":"infants","value":"1"},{"key":"latitude","value":"37.498063"},{"key":"longitude","value":"127.030187"}],"variable":[]}},"response":[],"_postman_id":"c78e24bb-4b0e-4000-b6b6-a05f646abf8a"},{"name":"[FE/iOS] room detail request","id":"9b83b2d1-6a54-4243-8547-e1e87f939f0d","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://13.209.33.94:8080/hotels/1","urlObject":{"protocol":"http","port":"8080","path":["hotels","1"],"host":["13.209.33.94"],"query":[{"disabled":true,"key":"checkin","value":"2021-06-01"},{"disabled":true,"key":"checkout","value":"2021-06-14"}],"variable":[]}},"response":[],"_postman_id":"9b83b2d1-6a54-4243-8547-e1e87f939f0d"},{"name":"[FE/iOS] reserve list request","id":"fabccdb5-3a25-4860-84cc-91c1ceb88075","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://13.209.33.94:8080/reserve","urlObject":{"protocol":"http","port":"8080","path":["reserve"],"host":["13.209.33.94"],"query":[],"variable":[]}},"response":[],"_postman_id":"fabccdb5-3a25-4860-84cc-91c1ceb88075"},{"name":"[FE/iOS] reserve list request Copy","id":"5758429b-f451-470d-ba17-7590f4433293","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"http://13.209.33.94:8080/reserve/1","urlObject":{"protocol":"http","port":"8080","path":["reserve","1"],"host":["13.209.33.94"],"query":[],"variable":[]}},"response":[],"_postman_id":"5758429b-f451-470d-ba17-7590f4433293"},{"name":"[FE/iOS] reserve request","id":"52f50f0e-8304-4cdd-843f-9dd0ba476199","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"hotelId\": 1,\n    \"checkin\": \"2021-05-19\",\n    \"checkout\": \"2021-06-14\",\n    \"adults\": 2,\n    \"children\": 1,\n    \"infants\": 1,\n    \"username\": \"jihye-woo\"\n}","options":{"raw":{"language":"json"}}},"url":"http://13.209.33.94:8080/reserve","urlObject":{"protocol":"http","port":"8080","path":["reserve"],"host":["13.209.33.94"],"query":[],"variable":[]}},"response":[],"_postman_id":"52f50f0e-8304-4cdd-843f-9dd0ba476199"},{"name":"[FE/iOS] like request","id":"e49c2a54-c8cf-488c-a20f-c8276276f401","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"url":"http://13.209.33.94:8080/like/1","urlObject":{"protocol":"http","port":"8080","path":["like","1"],"host":["13.209.33.94"],"query":[],"variable":[]}},"response":[],"_postman_id":"e49c2a54-c8cf-488c-a20f-c8276276f401"},{"name":"[FE/iOS] unlike request","id":"3f556484-9d8a-418f-a528-a3b29468f777","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"url":"http://13.209.33.94:8080/like/1","urlObject":{"protocol":"http","port":"8080","path":["like","1"],"host":["13.209.33.94"],"query":[],"variable":[]}},"response":[],"_postman_id":"3f556484-9d8a-418f-a528-a3b29468f777"}],"event":[{"listen":"prerequest","script":{"id":"37fb098a-aef8-4217-9acb-dab9c726a68a","type":"text/javascript","exec":["pm.collectionVariables.set(\"base_ip\", \"13.209.33.94\");","// pm.collectionVariables.set(\"base_ip\", \"localhost\");"]}},{"listen":"test","script":{"id":"3010dbb7-f78c-4061-9d8c-9406608c0a43","type":"text/javascript","exec":[""]}}],"variable":[{"key":"base_ip","value":"13.209.33.94"}]}