Click here for a complete list of routes.
/districts
GET /districts
This request returns a list of districts.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/districts HTTP/1.1 Host: api.lions.at
Response example
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
[
{
"id": 1,
"name": "District Name #1",
"...": "...",
"regions": [
{
"id": 1,
"name": "Region Name #1",
"...": "..."
}
]
},
{
"id": 2,
"name": "District Name #2",
"...": "...",
"regions": [
{
"id": 3,
"name": "Region Name #3",
"...": "..."
}
]
}
]
GET /districts/id
This request returns the district with a given identifier.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/districts/id
HTTP/1.1
Host: api.lions.at
Response example
HTTP/1.1 200 OK Content-Type: application/json Content-Length:length
{ "id":id
, "name": "District Name", "...": "...", "regions": [ { "id": 1, "name": "Region Name #1", "...": "..." } ] }
GET /districts/id
/committee
restricted
This request returns the committee of the district with the given identifier.
The following is a sample HTTP GET request and response. The placeholders
shown need to be replaced with actual values.
Request example
GET /v2/districts/id
/committee HTTP/1.1 Host: api.lions.at X-Authorization:access-token
Optional parameters
Name | Type | Description |
---|---|---|
locale | string | de , fr , ... to get localized function names. Defaults to English. |
year | int | Lions Year of the committee. Bound to range 1917 – 2024. Defaults to current Lions Year. |
Response example
HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: length
{
"success": true,
"groups": [
{
"name": "Executive board",
"members": [
{
"function": "District Governor",
"id": 7,
"firstName": "John",
"middleName": "",
"lastName": "Doo",
"fullName": "John Doo",
"active": true,
"photo": "",
"club": 123
},
{
"...": "..."
}
]
}
]
}