Skip to main content

Amenities

Overview

This resource represents the available Amenities, that can be assigned to the Rentals by creating Rentals Amenities.

Parameters

NameTypeRead/WriteDescription
idIntegerReadAmenity's id.
keyStringReadAmenity's key.
titleObjectReadAmenity's title, list of locales described in enums section
created_atTimeReadAmenity's create time
updated_atTimeReadAmenity's update time

List amenities

List all the existing amenities.

GET /amenities
response.json
{
"amenities": [
{
"id": 1,
"key": "internet",
"title": {
"en": "Internet"
}
}
],
"meta": {}
}

Get a single amenity

Returns a single amenity identified by ID.

GET /amenities/:amenity_id
response.json
{
"amenities": [
{
"id": 1,
"key": "internet",
"title": {
"en": "Internet"
}
}
],
"meta": {}
}