SLF - Bulletin API (4.0)

Download OpenAPI specification:Download

API for querying the bulletin.

V3 (default)

The default service version

Active bulletin as geojson

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the features list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active bulletin as caamlV6

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the bulletins list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

V4

Release Notes

  • The value type of elevation lower and upper bound is now a string instead of number.
  • The full montain is now represented as an empty elevation object "elevation": {} instead of "elevation": {"lowerBound": 0, "upperBound":null}
  • With the exception of the empty elevation object, all empty values such as empty strings "" , null or empty objects ({}) have been removed recursively
    For example:
    {"mainValue": "low", "elevation": null, "aspects": [], "validTimePeriod": "all_day", "customData": {"CH": {"subdivision": null}}}
    is now renderd as
    {"mainValue": "low", "validTimePeriod": "all_day"}

Active bulletin as geojson

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the features list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "type": "FeatureCollection",
  • "features": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}

Active bulletin as caamlV6

Returns the bulletin active at the specified time.

  • If no time is specified, 'Now' is assumed as the time
  • If no active bulletin exists, the bulletins list will be empty.
path Parameters
lang
required
string
Enum: "de" "fr" "it" "en"
Example: de

Desired language. If the desired language does not exists, a german bulletin will be returned

query Parameters
activeAt
string <date-time>
Example: activeAt=2018-04-06T01:00:00+02:00

Timestamp, to search for active bulletins.

Responses

Response samples

Content type
application/json
{
  • "bulletins": [
    ],
  • "metaData": {
    },
  • "customData": {
    }
}