Rust API client for openapi
API for the Mobility Database Catalog. See https://mobilitydatabase.org/.
The Mobility Database API uses OAuth2 authentication. To initiate a successful API request, an access token must be included as a bearer token in the HTTP header. Access tokens are valid for one hour. To obtain an access token, you'll first need a refresh token, which is long-lived and does not expire.
For more information, please visit https://mobilitydata.org/
Overview
This API client was generated by the OpenAPI Generator project. By using the openapi-spec from a remote server, you can easily generate an API client.
- API version: 1.0.0
- Package version: 1.0.0
- Generator version: 7.19.0
- Build package:
org.openapitools.codegen.languages.RustClientCodegen
Installation
Put the package under your project folder in a directory named openapi and add the following to Cargo.toml under [dependencies]:
openapi = { path = "./openapi" }
Documentation for API Endpoints
All URIs are relative to https://api.mobilitydatabase.org
| Class | Method | HTTP request | Description |
|---|---|---|---|
| BetaApi | get_gbfs_feeds | GET /v1/gbfs_feeds | |
| BetaApi | get_gtfs_feed | GET /v1/gtfs_feeds/{id} | |
| DatasetsApi | get_dataset_gtfs | GET /v1/datasets/gtfs/{id} | |
| FeedsApi | get_feed | GET /v1/feeds/{id} | |
| FeedsApi | get_feeds | GET /v1/feeds | |
| FeedsApi | get_gbfs_feed | GET /v1/gbfs_feeds/{id} | |
| FeedsApi | get_gbfs_feeds | GET /v1/gbfs_feeds | |
| FeedsApi | get_gtfs_feed | GET /v1/gtfs_feeds/{id} | |
| FeedsApi | get_gtfs_feed_datasets | GET /v1/gtfs_feeds/{id}/datasets | |
| FeedsApi | get_gtfs_feed_gtfs_rt_feeds | GET /v1/gtfs_feeds/{id}/gtfs_rt_feeds | |
| FeedsApi | get_gtfs_feeds | GET /v1/gtfs_feeds | |
| FeedsApi | get_gtfs_rt_feed | GET /v1/gtfs_rt_feeds/{id} | |
| FeedsApi | get_gtfs_rt_feeds | GET /v1/gtfs_rt_feeds | |
| LicensesApi | get_license | GET /v1/licenses/{id} | |
| LicensesApi | get_licenses | GET /v1/licenses | |
| LicensesApi | get_matching_licenses | POST /v1/licenses:match | |
| MetadataApi | get_metadata | GET /v1/metadata | |
| SearchApi | search_feeds | GET /v1/search |
Documentation For Models
- BasicDataset
- BasicFeed
- BoundingBox
- ExternalId
- Feed
- FeedRelatedLink
- GbfsEndpoint
- GbfsFeed
- GbfsValidationReport
- GbfsVersion
- GetMatchingLicensesRequest
- GtfsDataset
- GtfsFeed
- GtfsRtFeed
- LatestDataset
- LatestDatasetValidationReport
- LicenseBase
- LicenseRule
- LicenseWithRules
- Location
- MatchingLicense
- Metadata
- Redirect
- SearchFeedItemResult
- SearchFeeds200Response
- SourceInfo
- ValidationReport
To get access to the crate's generated documentation, use:
cargo doc --open