This endpoint is used to retrieve tags associated with a single photo inside the collection of photos of a given room. The tags are generally related to different portion of the room. Here are some example tags (in English):
| Method | URI | Headers |
|---|---|---|
| GET | /api/rooms/{room}/photos/{photo}/tags | Authorization: Bearer <token> Accept: application/json Accept-Language: <language> |
| Param | Description | Type | Required |
|---|---|---|---|
| {room} | The ID of a given room. | Integer | Yes |
| {photo} | The ID of a photo associated with a given room. | Integer | Yes |
Example request
curl \
--request GET \
--url https://api.luxstay.com/api/rooms/10000/photos/4400/tags \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>'
Example response
{
"data": [
{
"id": 1,
"name": "Garden",
"normalized": "garden"
},
{
"id": 2,
"name": "Bathroom",
"normalized": "bathroom"
},
{
"id": 3,
"name": "Kitchen",
"normalized": "kitchen"
}
]
}
Reason invalid access token
Example response
{
"message": "Unauthenticated."
}
Reason unauthorized to access room
Example response
{
"message": "You are not allowed to access or change information associated with this room."
}
Example response
{
"message": "Cannot find the given room"
}
Example response
{
"message": "Cannot find the given photo."
}