MBTA service API. https://www.mbta.com Source code: https://github.com/mbta/api
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.
- API version: 3.0
- Package version: 1.0.0
- Build package: io.swagger.codegen.languages.RustClientCodegen For more information, please visit https://groups.google.com/forum/#!forum/massdotdevelopers
Put the package under your project folder and add the following in import:
"./swagger"
All URIs are relative to https://localhost
- ActivePeriod
- Activity
- Alert
- AlertResource
- AlertResourceAttributes
- AlertResourceRelationships
- AlertResourceRelationshipsFacility
- AlertResourceRelationshipsFacilityData
- AlertResourceRelationshipsFacilityLinks
- Alerts
- BadRequest
- BadRequestErrors
- BadRequestSource
- Facilities
- Facility
- FacilityProperty
- FacilityResource
- FacilityResourceAttributes
- FacilityResourceRelationships
- Forbidden
- ForbiddenErrors
- InformedEntity
- Line
- LineResource
- LineResourceAttributes
- Lines
- LiveFacilities
- LiveFacility
- LiveFacilityResource
- LiveFacilityResourceAttributes
- NotFound
- NotFoundErrors
- NotFoundSource
- PredictionResource
- PredictionResourceAttributes
- PredictionResourceRelationships
- PredictionResourceRelationshipsAlerts
- PredictionResourceRelationshipsAlertsData
- PredictionResourceRelationshipsAlertsLinks
- PredictionResourceRelationshipsSchedule
- PredictionResourceRelationshipsScheduleData
- PredictionResourceRelationshipsScheduleLinks
- PredictionResourceRelationshipsVehicle
- PredictionResourceRelationshipsVehicleData
- PredictionResourceRelationshipsVehicleLinks
- Predictions
- Route
- RoutePattern
- RoutePatternResource
- RoutePatternResourceAttributes
- RoutePatternResourceRelationships
- RoutePatternResourceRelationshipsRepresentativeTrip
- RoutePatternResourceRelationshipsRepresentativeTripData
- RoutePatternResourceRelationshipsRepresentativeTripLinks
- RoutePatterns
- RouteResource
- RouteResourceAttributes
- Routes
- ScheduleResource
- ScheduleResourceAttributes
- ScheduleResourceRelationships
- ScheduleResourceRelationshipsPrediction
- ScheduleResourceRelationshipsPredictionData
- ScheduleResourceRelationshipsPredictionLinks
- Schedules
- Service
- ServiceResource
- ServiceResourceAttributes
- Services
- Shape
- ShapeResource
- ShapeResourceAttributes
- ShapeResourceRelationships
- ShapeResourceRelationshipsRoute
- ShapeResourceRelationshipsRouteData
- ShapeResourceRelationshipsRouteLinks
- ShapeResourceRelationshipsStops
- ShapeResourceRelationshipsStopsData
- ShapeResourceRelationshipsStopsLinks
- Shapes
- Stop
- StopResource
- StopResourceAttributes
- StopResourceRelationships
- StopResourceRelationshipsParentStation
- StopResourceRelationshipsParentStationData
- StopResourceRelationshipsParentStationLinks
- Stops
- TooManyRequests
- TooManyRequestsErrors
- Trip
- TripResource
- TripResourceAttributes
- TripResourceRelationships
- TripResourceRelationshipsRoutePattern
- TripResourceRelationshipsRoutePatternData
- TripResourceRelationshipsRoutePatternLinks
- TripResourceRelationshipsService
- TripResourceRelationshipsServiceData
- TripResourceRelationshipsServiceLinks
- TripResourceRelationshipsShape
- TripResourceRelationshipsShapeData
- TripResourceRelationshipsShapeLinks
- Trips
- Vehicle
- VehicleIncluded
- VehicleLinks
- VehicleResource
- VehicleResourceAttributes
- VehicleResourceRelationships
- VehicleResourceRelationshipsStop
- VehicleResourceRelationshipsStopData
- VehicleResourceRelationshipsStopLinks
- VehicleResourceRelationshipsTrip
- VehicleResourceRelationshipsTripData
- VehicleResourceRelationshipsTripLinks
- Vehicles
- VehiclesLinks
- 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)
- 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)