This endpoint is used to fetch all available room types.
Method | URI | Headers |
---|---|---|
GET | /api/roomTypes | Authorization: Bearer <token> Accept: application/json Accept-Language: <language> |
Example request
curl \
--request GET \
--url https://api.luxstay.com/api/roomTypes \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>'
Example response
{
"data": [
{
"id": 1,
"name": "Entire home",
"description": "Entire home/apt"
},
{
"id": 2,
"name": "Private room",
"description": "Private room"
},
{
"id": 3,
"name": "Shared room",
"description": "Shared room"
}
]
}
Reason invalid access token
Example response
{
"message": "Unauthenticated."
}