Introduction
Trafikförvaltningen public API portal
This is the public API portal for Trafikförvaltningen (SL, Waxholmsbolaget, Färdtjänsten and Spårvägsmuseet)
Here you can find our open APIs. With the help of the API's interested parties can build up their own applications and services based on the information supplied.
Open data may be used free of charge and without needing licences.
APIs
Anypoint Exchange (Mule Anypoint Platform) that is the API platform used by Trafikförvaltningen. Each API published here are linked to an individual portal page in Anypoint Exchange.
Each APIs page has:
- API Documentation
- Console for API testing (at least a mocked backend)
- Access handling where access can be requested
Client Applications
A system that consumes one or more APIs is called a client application. A client applications has to be registred in the API portal to before the system can consume the APIs.
Each client application has their own set of credentials with "clientid" (username) and clientsecret (password). One set of clientid/clientsecret can be used to consume several APIs.
The clientid/clientsecret is sent in every API call. The client application is authenticated and access control is checked for the specific API.
If the wrong credentials or authorization "401 Unauthorized" is returned.
Application developers handles one or more client applications in Anypoint Exchange.
On each client application page the developer can:
- Check application overview
- Get credentials (clientid/clientsecret)
- List used APIs
- Change client application name
- Generate new clientsecret
- Remove client application