RSAPI

Backend Service for https://www.railway-stations.org/. Sourcecode available at: https://codeberg.org/RailwayStations/RSAPI.

Service Url

https://api.railway-stations.org/openapi.yaml

EndpointDescription
 DELETE /myProfileDelete the users profile. The delete request closes the account of the logged in user on railway-stations.org. The account will be changed to anonymous. The email-address, nickname, link and…
 POST /adminInboxImport or reject an uploaded photo or a problem report from the inbox
 POST /myProfileUpdate the users profile. In case the email has been changed, only the email is saved and a new password is send.
 POST /userInboxQuery the state of photo uploads of the authorized user
 DELETE /userInbox/{id}Delete an unprocessed inbox entry
 GET /adminInboxGet the current inbox, photos and problem reports under review.
 GET /adminInboxCountCount pending inbox items
 GET /countriesList of all supported countries with their configuration
 GET /emailVerification/{token}Verify eMail-Address with verification token
 GET /inbox/{filename}downloads the given photo from the inbox
 GET /inbox/done/{filename}downloads the given photo from the done inbox
 GET /inbox/processed/{filename}downloads the given photo from the processed inbox
 GET /inbox/rejected/{filename}downloads the given photo from the rejected inbox
 GET /myProfileGet the users profile
 GET /oauth2/authorizeOAuth2 authorization endpoint Redirect the user to this URL to start the authorization code flow. Specification: https://datatracker.ietf.org/doc/html/rfc6749#section-3.1 PKCE:…
 GET /photographersList of all photographers with their number of photos taken
 GET /photos/{country}/{filename}downloads the given photo
 GET /photoStationById/{country}/{id}Get a railway station of a country by its id with all its photos
 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.
 GET /photoStationsByPhotographer/{photographer}List stations with photos by the given photographer Returns only the photos of a station which belong to the photographer. Can return several photos per station, not necessarily the primary photo.
 GET /photoStationsByRecentPhotoImportsList stations with photos uploaded in the last 24h Returns only the recently imported photos of a station, defined by the sinceHours parameter. Can return several photos per station, not necessarily…
 GET /publicInboxGet the current public inbox, stations where photos have been uploaded
 GET /statsOverall statistic of photos with and without photos
 GET /userInboxQuery all uploads of the authorized user
 POST /changePasswordChange user password
 POST /oauth2/revokeOAuth2 revoke token endpoint https://datatracker.ietf.org/doc/html/rfc7009#section-2.1
 POST /oauth2/tokenOAuth2 token endpoint https://datatracker.ietf.org/doc/html/rfc6749#section-3.2
 POST /photoUploadUpload a new Photo
 POST /reportProblemReport a problem for a Railway-Station
 POST /resendEmailVerificationSends a new eMail-Verification mail