Hotels
GET
/api/v1/generic-api-service/content/hotel/find-by-paging?page=0&size=100
The hotel find by paging endpoint is used to see all hotel list.
- cURL
- Request
- Response
- Request Details
- Response Details
curl --location 'https://test-api.etscore.com/api/v1/generic-api-service/content/hotel/find-by-paging?page=0&size=1000' \
--header 'Authorization: Bearer <token>'
/// no request parameter required
{
"content": [
{
"name": "Royal Garden Suite and Hotel",
"id": "sxk9ed7z54eb-516472"
},
{
"name": "Sefer Tepe Otel",
"id": "syee6ehk3kcs"
},
{
"name": "Dalya Resort Aqua & Spa Hotel",
"id": "swe8y5fmr8mn"
},
{
"name": "Limak Limra Hotel & Resort",
"id": "swr057bytpxn"
},
{
"name": "Kayı Snow Otel",
"id": "swrabcfg5t19"
},
{
"name": "Maroon Hotel Tomtom",
"id": "sxk97mu0zpqb"
},
{
"name": "My Sun Hotel",
"id": "swg69g1vqhvn"
},
{
"name": "Oli Hotel ",
"id": "swtcc967pypf"
},
{
"name": "Kaya Ninova Otel",
"id": "sysur08q5w9w"
},
{
"name": "Green Erek Otel",
"id": "sz4p2h8gqxhb"
}
],
"number": 0,
"size": 10,
"totalElements": 9420,
"totalPages": 942,
"numberOfElements": 10
}
Name | Type | Required | Description |
---|---|---|---|
page | int | No | Pagination offset. Integer starting at 0. |
size | int | No | The number of hotels is requested response. |
Name | Type | Required | Description |
---|---|---|---|
content | object-array | Yes | Object containing hotel names and ids. |
content/name | string | Yes | Hotel name |
content/id | string | Yes | Hotel id |
number | string | Yes | It is sent with a request and indicates which page results are displayed. |
size | string | No | It is sent with a request and Shows how many hotels are on a page. |
totalElements | object-array | Yes | Total hotel count |
totalPages | int | Yes | Indicates how many pages are shown according to the number of hotels on the page. |
numberOfElements | string | Yes | Information on how many hotels are on a page |