Skip to content

Latest commit

 

History

History
41 lines (26 loc) · 1.55 KB

File metadata and controls

41 lines (26 loc) · 1.55 KB

opentransportdata.swiss API-Explorer

This repo allows to browse the OpenAPI specs for opentransportdata.swiss. It publishes a simple site (via GitHub Pages) where each API is rendered with Swagger UI so you can read endpoints, schemas, and pre-authorized try requests directly from the browser.

URL: https://opentdatach.github.io/api-explorer/

Local Development

$ npm install

# duplicate local API credential file
$ cp ./src/app/config/api-tokens.ts ./src/app/config/api-tokens.local.ts

# edit api-tokens.local.ts
# fill with tokens obtained from https://api-manager.opentransportdata.swiss/

# develop on localhost
$ ng serve

# open http://localhost:4200

Adds a new API

Deployment

A GitHub Actions workflow (under .github/workflows/deploy-pages.yml) builds the site and publishes it to GitHub Pages on push to the default branch

License

The project is released under a MIT license.

Copyright (c) 2025 - 2026 Open Data Platform Mobility Switzerland - opentransportdata.swiss.