GET /photoStationsByCountry/{country}
List stations by country
Returns only the primary photo of each station. Stations can optionally be filtered by 'hasPhoto' and/or 'isActive' flag.
Request Traces
Request Headers
GET https://api.railway-stations.org/photoStationsByCountry/{country}
Accept: application/json
HTTP Response
HTTP 200
successful operation
{
"photoBaseUrl": "string",
"licenses": [
{
"id": "string",
"name": "string",
"url": "string",
},
],
"photographers": [
{
"name": "string",
"url": "string",
},
],
"stations": [
{
"country": "string",
"id": "string",
"title": "string",
"lat": 0,
"lon": 0,
"shortCode": "string",
"inactive": false,
"photos": [
{
"id": 0,
"photographer": "string",
"path": "string",
"createdAt": 0,
"license": "string",
"outdated": false,
},
],
},
],
}
HTTP default
Unexpected error
