Services Get Item[GET]
Operation
Get the list of services in a paged array.
GET
https://{environment}.ulysescloud.com/public/api/{version}/con/chain/{chainId}/property/{propertyId}/service
Request
Property | Type | Required | Type parameter | Default value | Description |
---|---|---|---|---|---|
chainId | Integer | true | path parameter | Unique identificator of the chain. | |
propertyId | Integer | true | path parameter | Unique identificator of the property. | |
offset | Integer | false | request parameter | 0 | Offset of the array of results. |
limit | Integer | false | request parameter | 10 | Limit of results. |
sort | string | false | request parameter | id | Property of the entity to sort by. |
sortMode | string | false | request parameter | asc | Mode of sorting. |
Example request
GET https://publicapi-providers.ulysescloud.com:9797/public/api/v1/con/chain/1/property/1/service/{productId}/item
Response
Entity
The entity returned is a list of Product's. Description of the Product entity:
Field Type Required Description id int true Unique identifier for the Product. code String true Code of the Product. name String true Name of the Product. productType ProductType true Type of Product (payment, service, accomodation... nameI18n String false itemList Item false List of Items. Only show if you call of Services Endpoint
Example response
{ "id": 55, "code": "MB", "name": "Minibar", "productType": { "id": 2, "code": "SER", "name": "Service", "nameI18n": "Service" }, "itemList": [ { "id": 2, "code": "AG", "name": "AGUA SIN GAS", "nameI18n": "AGUA SIN GAS", "description": null, "descriptionI18n": null, "imageURL": null, "amountAfterTax": 2.5, "active": true, "quantity": null }, { "id": 3, "code": "AGG", "name": "AGUA CON GAS", "nameI18n": "AGUA CON GAS", "description": null, "descriptionI18n": null, "imageURL": null, "amountAfterTax": 2.5, "active": true, "quantity": null } ] }