Facility Groups
GET
/api/v1/generic-api-service/content/list-facilities-by-group-id
The facility groups endpoint ensures that all facilities in the Etstur structure are listed as groups. However, the facility group's details can be accessed with the given facility group id.
- Request
- Response
- Response Details
/// no request parameter required
{
"1": [
{
"facilityId": 1019,
"facilityName": "Isıtma",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 232,
"facilityName": "Otel",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 223,
"facilityName": "Hotel",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 280,
"facilityName": "Rent a Car",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 1130,
"facilityName": "Free WIFI",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 1195,
"facilityName": "Wireless Internet",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 1306,
"facilityName": "Sports Information",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
{
"facilityId": 161,
"facilityName": "Kids Pool ",
"groupId": 1,
"groupName": "Tesis Olanakları"
},
...
],
"2": [
{
"facilityId": 4404,
"facilityName": "Yaşam Dostu Otel",
"groupId": 2,
"groupName": "Otel Teması"
},
{
"facilityId": 19,
"facilityName": "Denize Sıfır Otel",
"groupId": 2,
"groupName": "Otel Teması"
},
{
"facilityId": 20,
"facilityName": "Tarihi Otel",
"groupId": 2,
"groupName": "Otel Teması"
},
{
"facilityId": 21,
"facilityName": "Spor Otel",
"groupId": 2,
"groupName": "Otel Teması"
},
{
"facilityId": 22,
"facilityName": "Doğa Dostu Otel",
"groupId": 2,
"groupName": "Otel Teması"
},
{
"facilityId": 23,
"facilityName": "Dizany otel",
"groupId": 2,
"groupName": "Otel Teması"
},
...
],
...
}
Name | Type | Required | Description |
---|---|---|---|
1 | string | Yes | For each facility group, the parameter changes as 1,2,3.... |
facilityId | int | Yes | Facility id |
facilityName | string | Yes | Facility name |
groupId | int | Yes | Group id the facility belongs to. |
groupName | string | Yes | Group name the facility belongs to. |