This request delivers all objects of a certain resort.
objects/id of resort
GET
This header must be used for each subsequent request after the first one. Please make sure that you provide the timestamp of your last successful request as shown in "Response headers" section below.
If-Modified-Since: Sun, 01 Mar 2020 14:25:00 GMT
Accept-encoding: deflate
Optional parameters should not be used with empty values. Just leave them out if empty.
This parameter is optional. This lets you filter objects by season.
season=winter|summer
This parameter is optional. This lets you filter facility type(s). No comma at the beginning or end of this string. Individual groups have a numeric identifier.
facilities=lifts,slopes,505044
You can further restrict facility type(s) by a list of comma separated object ids. Don't forget the brackets.
facilities=lifts[7,9],slopes[83,84,85],505044[1456892]
This parameter is optional. This lets you filter report type(s). No comma at the beginning or end of this string.
reports=dangers
This parameter is optional. Using this you may activate operation hours (time) and/or the full schedules (plan).
schedule=time,plan
Use this timestamp for your subsequent requests as value for your If-Modified-Since header. This header will be missing if nothing has changed according to the If-Modfied-Since header you provided.
Last-Modified: Sun, 01 Mar 2020 14:25:00 GMT
You will get the following http state if nothing has changed. Such responses do not contain any content.
HTTP/1.1 304 Not Modified
Entity | Type | Values | Description |
---|---|---|---|
facilities | object | facility types | list of facilities |
reports | object | report types | list of reports |
Entity | Type | Values | Description |
---|---|---|---|
lifts | object | lifts | conveyors |
slopes | object | slopes | slopes |
toboganning | object | toboganning | toboganning |
hiking | object | hiking | hiking and biking |
funparks | object | funparks | funparks |
cross-country | object | cross-country | cross-country skiing |
restaurants | object | restaurants | restaurants |
accommodation | object | accommodation | accommodation |
parking | object | parking | parking spaces |
connections | object | connections | resort connections |
divers | object | divers | divers objects |
routes | object | routes | routes |
Entity | Type | Values | Description |
---|---|---|---|
tip | object | tip | tip |
season | object | season | season |
tickers | object | tickers | tickers |
dangers | object | dangers | avalanche danger |
snow | object | snow | snow |
meteo | object | meteo | meteo data |
weather | object | weather | weather (SRF) | weather prognosis |
divers | object | divers | divers report data |
{ "facilities":{ "lifts":{ "count":2, "items":[{ "id": 14, "name": "Bergbahn 1", "state": 1 },{ "id": 15, "name": "Bergbahn 2", "state": 2 }] }, "slopes":{ "count":2, "items":[{ "id": 31, "name": "Piste 1", "state": 0 },{ "id": 21, "name": "Piste 2", "state": 0 }] } }, "reports":{ "dangers":{ "count":2, "items":[{ "id": 40, "name": "Lawinengefahr 1", "state": 0 },{ "id": 41, "name": "Lawinengefahr 2", "state": 0 }] } } }
1) If you want to use these filters with a total size close to or above 8000 Bytes, you must use POST as method and send both values as body.
Beware: at least one filter must be present in this case or your POST-Request will fail.
In this case, we don't provide a Last-Modified date for caching, but an ETag. Therefore you have to use If-None-Match as parameter to check for changes.
Content-Type: application/x-www-form-urlencoded Content-Length: 32000 If-None-Match: 422b93131f984625869cd922eca7af03
ETag: 422b93131f984625869cd922eca7af03
Beware: if nothing has changed, you will not get an 304 Not Modified, but an 412 Precondition Failed.
{ "error": 1002 }
Code | Description |
---|---|
1002 | Access denied |