/mbta-v3-swagger-api-client-rs

Autogenerated MBTA V3 API Client

Primary LanguageRust

Rust API client for swagger

MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api

Overview

This API client was generated by the swagger-codegen project. By using the swagger-spec from a remote server, you can easily generate an API client.

Installation

Put the package under your project folder and add the following in import:

    "./swagger"

Documentation for API Endpoints

All URIs are relative to https://localhost

Class Method HTTP request Description
AlertApi api_web_alert_controller_index Get /alerts
AlertApi api_web_alert_controller_show Get /alerts/{id}
FacilityApi api_web_facility_controller_index Get /facilities
FacilityApi api_web_facility_controller_show Get /facilities/{id}
LineApi api_web_line_controller_index Get /lines
LineApi api_web_line_controller_show Get /lines/{id}
LiveFacilityApi api_web_live_facility_controller_index Get /live-facilities
LiveFacilityApi api_web_live_facility_controller_show Get /live-facilities/{id}
PredictionApi api_web_prediction_controller_index Get /predictions
RouteApi api_web_route_controller_index Get /routes
RouteApi api_web_route_controller_show Get /routes/{id}
RoutePatternApi api_web_route_pattern_controller_index Get /route-patterns
RoutePatternApi api_web_route_pattern_controller_show Get /route-patterns/{id}
ScheduleApi api_web_schedule_controller_index Get /schedules
ServiceApi api_web_service_controller_index Get /services
ServiceApi api_web_service_controller_show Get /services/{id}
ShapeApi api_web_shape_controller_index Get /shapes
ShapeApi api_web_shape_controller_show Get /shapes/{id}
StopApi api_web_stop_controller_index Get /stops
StopApi api_web_stop_controller_show Get /stops/{id}
TripApi api_web_trip_controller_index Get /trips
TripApi api_web_trip_controller_show Get /trips/{id}
VehicleApi api_web_vehicle_controller_index Get /vehicles
VehicleApi api_web_vehicle_controller_show Get /vehicles/{id}

Documentation For Models

Documentation For Authorization

api_key_in_header

  • Type: API key

Example

	auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
		Key: "APIKEY",
		Prefix: "Bearer", // Omit if not necessary.
	})
    r, err := client.Service.Operation(auth, args)

api_key_in_query

  • Type: API key

Example

	auth := context.WithValue(context.TODO(), sw.ContextAPIKey, sw.APIKey{
		Key: "APIKEY",
		Prefix: "Bearer", // Omit if not necessary.
	})
    r, err := client.Service.Operation(auth, args)

Author

developer@mbta.com