Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Next »

Operation

Get a list of all the accommodations.

GET
https://{environment}.ulysescloud.com/api/{version}/chain/{chainId}/property/{propertyId}/accommodation


Request

PropertyTypeRequiredDefault valueDescription
chainIdIntegertrue
Unique identificator of the chain.
propertyIdIntegertrue
Unique identificator of the property.
offsetIntegerfalse0Offset of the array of results.
limitIntegerfalse10Limit of results.
sortstringfalseidProperty of the entity to sort by.
sortModestringfalseAscMode of sorting.

Example request

GET https://prod.ulysescloud.com/api/v1/chain/1/property/1/service


Response

PropertyTypeRequiredDescription
PagePagetrueDescription of the response of the success operation

Entity

PropertyTypeRequiredDescription
IdStringtrueUnique identifier of the entity.
CreatedDateDatetrueThe date when the entity was persisted on the database.



Example response

{
  "count": 9,
  "offset": 0,
  "limit": 3,
  "list": [
    {
      "id": 1,
      "name": "Single"
    },
    {
      "id": 6,
      "name": "Single Deluxe"
    },
    {
      "id": 11,
      "name": "Double"
    }
  ]
}
  • No labels