calculate Emissions for specified Transport
Please Note: this Api uses rate limits: max. 100 requests/second and max 7 simultaneous connections are allowed!
Exceeding the rate limit will result in a http 429 error ("too many requests")
Please visit get Access Token and provide username and password as given to you by the EcoTransIT staff.
After successful login you will r./eceive an access token and a refresh token. Use this access token as bearer token in your calculateTransport request (see first code snippet in Authorization section)
Please note that the access token expires after a while. You can use the refresh token to get a new access token, like in the following curl request.
curl -X POST https://customer-name.ecotransit.org/auth/realms/ETW/protocol/openid-connect/token \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "client_id=webservice-rest" \
-d "client_secret=<my-client-secret>" \
-d "grant_type=refresh_token" \
-d "refresh_token=<my-refresh-token>"
⚠️ Warning: Store the refresh token at a safe place as it contains sensitive information!!
An overview of the OpenId Endpoint Overview of the authorization server can be found here
curl -i -X GET \
https://rest-api.ecotransit.world/_mock/apis/openapi/etw-rest/getVersion
{ "restWebservice": { "property1": "string", "property2": "string" }, "calculationModule": { "general": { … }, "databases": [ … ] } }