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.
- Request
- Response
- Request Details
- Response Details
/// no request parameter required
{
"content": [
{
"name": "Yonca Lodge",
"id": "sws8syzv17fd"
},
{
"name": "Old City Viva Hotel",
"id": "sxk976k5k0fj"
},
{
"name": "Yasmin Bodrum Resort",
"id": "xrn009qpatqn"
},
{
"name": "The Hubi Hotel",
"id": "sxk9e83885sc"
},
{
"name": "Hotel Devman",
"id": "sxk97m6e1z64"
},
{
"name": "Aprilis Deluxe Hotel",
"id": "sxk971p34m5h"
},
{
"name": "Serel Hotel",
"id": "sx5c6qnp8zcr"
},
{
"name": "Dalyan Gürkan Apart Otel",
"id": "sws781p4j4h9"
},
{
"name": "Ünlü Hotel",
"id": "sws8ncydwfnd"
},
{
"name": "Sevgi Otel",
"id": "swtccty84hbz"
}
],
"number": 0,
"size": 10,
"totalElements": 27770,
"totalPages": 2777,
"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 |