숙소 상세정보 요청하기

url에 주어진 pk값에 해당하는 숙소의 상세 정보를 요청합니다.

get
get room detail

https://backends.xyz/api/home/listings/<int:pk>/
returns room details
Request
Response
Request
Path Parameters
pk
required
integer
pk값을 요청(현재 dummy는 1-3까지 지 생성되어있음)
Response
200: OK
Cake successfully retrieved.
{
"pk": 1,
"bathrooms": 2,
"bedrooms": 1,
"beds": 1,
"person_capacity": 3,
"room_name": "test room1",
"room_type": "private",
"room_and_property_type": "private room",
"public_address": "우리집",
"city": "서울특별시",
"price": 50000,
"lat": 1.1,
"lng": 2.1,
"created_at": "2018-11-26T00:31:12.770201+09:00",
"amenities": [
"wifi",
"shower",
"parking"
],
"room_info": {
"room_info_1": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"room_info_2": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"room_info_3": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"room_info_4": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"room_info_5": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
"room_photo_1": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/avatar.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=56e1c5b306aa520663ef095561ec47e8820019b795c5fc02ac82d741f8d62bb0",
"room_photo_2": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/avatar.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=56e1c5b306aa520663ef095561ec47e8820019b795c5fc02ac82d741f8d62bb0",
"room_photo_3": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/avatar.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=56e1c5b306aa520663ef095561ec47e8820019b795c5fc02ac82d741f8d62bb0",
"room_photo_4": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/avatar.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=56e1c5b306aa520663ef095561ec47e8820019b795c5fc02ac82d741f8d62bb0",
"room_photo_5": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/avatar.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=56e1c5b306aa520663ef095561ec47e8820019b795c5fc02ac82d741f8d62bb0"
},
"host_images": {
"host_thumbnail_url": "https://fc-team-project.s3.amazonaws.com/media/pictures/host/IMG_3067.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181125%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181125T154024Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=4650ed8763303ce8cadd4163d562e775983d29238703e50c32e457c9065b1222",
"host_thumbnail_url_small": null
}
}