This endpoint is used to fetch all available property types that can be assigned to rooms.
Method | URI | Headers |
---|---|---|
GET | /api/propertyTypes | Authorization: Bearer <token> Accept: application/json Accept-Language: <language> |
Example request
curl \
--request GET \
--url https://api.luxstay.com/api/propertyTypes \
--header 'Accept: application/json' \
--header 'Accept-Language: en' \
--header 'Authorization: Bearer <token>'
Example response
{
"data": [
{
"id": 1,
"name": "Apartment",
"description": "Apartment"
},
{
"id": 2,
"name": "Villa",
"description": "Villa"
},
{
"id": 3,
"name": "Studio",
"description": ""
},
{
"id": 4,
"name": "Other",
"description": "other"
}
]
}
Reason invalid access token
Example response
{
"message": "Unauthenticated."
}
← Amenities Room Types →