내가 찜한 숙소 목록 가져오기

.Token인증된 사용자의 찜한 숙소 목록을 불러옵니다.

get
Get saved_rooms

https://backends.xyz/api/user/saved/
Get user's saved rooms
Request
Response
Request
Headers
Authentication
required
string
postman bearer token c02dcc25e4abeef0f2500302b02e647155222f79
Response
200: OK
.정상적인 리턴 값.
{
"pk": 3,
"bathrooms": 1,
"bedrooms": 1,
"beds": 1,
"person_capacity": 2,
"room_name": "Mapo basecamp",
"room_type": "집 전체",
"room_and_property_type": "타운하우스 전체",
"public_address": "마포구, 서울, 한국",
"city": "마포구",
"price": 33995,
"lat": 37.5547964923974,
"lng": 126.930692657888,
"created_at": "2018-11-26T20:31:17.025657+09:00",
"amenities": [
"tv",
"wireless_internet",
"ac",
"kitchen",
"heating",
"washer",
"smoke_detector",
"carbon_monoxide_detector",
"first_aid_kit",
"safety_card",
"fire_extinguisher",
"essentials",
"shampoo",
"hangers",
"hair-dryer",
"iron",
"laptop-friendly",
"keypad",
"private-entrance",
"hot_water",
"long_term_stays_allowed"
],
"roominfo": {
"room_info_1": "",
"room_info_2": "",
"room_info_3": "",
"room_info_4": "",
"room_photo_1": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/22320269-1.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=f6d2b4aa41370e982fcfba70097826ebe30457056f3be27410b1fcf580b0155c",
"room_photo_2": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/22320269-2.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=405329e5b26b668354cd0f05484029878ad63ff7b5426b11d9405edeaf6a9e3f",
"room_photo_3": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/22320269-3.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=b436a1be258c9c9c8677b7b7fb31e4c06e6e270dff45522f72162e404d45141f",
"room_photo_4": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/22320269-4.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=2e56a37a23feff623b15157719346ee07879d0aea4a607d6dfeadd1d2a67e393",
"room_photo_5": "https://fc-team-project.s3.amazonaws.com/media/picture/host/listing/22320269-5.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=4420609d50958485b23d37707f65f4a3bc3a77db9d01159e1939829b24916816"
},
"hostimages": {
"host_thumbnail_url": "https://fc-team-project.s3.amazonaws.com/media/pictures/host/22320269-thumbnail.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=5a9431ba12185c23fd68e6a5bca25295eb9a2b928b5d08cd9f07dbb2a6e4e898",
"host_thumbnail_url_small": "https://fc-team-project.s3.amazonaws.com/media/pictures/host/22320269-thumbnail_small.jpg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIXFXEGR3MLO4K2BQ%2F20181129%2Fap-northeast-2%2Fs3%2Faws4_request&X-Amz-Date=20181129T071154Z&X-Amz-Expires=3600&X-Amz-SignedHeaders=host&X-Amz-Signature=984295c1f0eb6474b875e341f7d6f2dcf32854857f152be7da8b3fa36f8076b7"
}
}
401: Unauthorized
.token이 없거나 틀린경우
{
"detail": "Invalid token."
}
500: Internal Server Error
.저장된 숙소가 없는 경우(request처리 추후 변경 예정)
{
"internal server error"
}