Ride2Go Ridesharing API. You can find out more about Swagger at http://swagger.io or on irc.freenode.net, #swagger. For this sample, you can use the api key special-key
to test the authorization filters.
This Dart package is automatically generated by the OpenAPI Generator project:
- API version: 1
- Build package: org.openapitools.codegen.languages.DartDioClientCodegen
Dart 1.20.0 or later OR Flutter 0.0.20 or later
If this Dart package is published to Github, please include the following in pubspec.yaml
name: r2gapi_flutter_sdk
version: 1.0.0
description: Ride2Go API SDK for Flutter. Built with Dio.
dependencies:
r2gapi_flutter_sdk:
git: https://github.com/fahrgemeinschaft/r2gapi_flutter_sdk.git
version: 'any'
To use the package in your local drive, please include the following in pubspec.yaml
dependencies:
r2gapi_flutter_sdk:
path: /path/to/r2gapi_flutter_sdk
Please follow the installation procedure and then run the following:
import 'package:r2gapi_flutter_sdk/api.dart';
var api_instance = new DemandsApi();
var demandDto = new DemandDto(); // DemandDto | Offer Data
try {
var result = api_instance.create(demandDto);
print(result);
} catch (e) {
print("Exception when calling DemandsApi->create: $e\n");
}
All URIs are relative to https://r2g.api.dev.services.rd2g.de
Class | Method | HTTP request | Description |
---|---|---|---|
DemandsApi | create | post /demand/ | |
DemandsApi | delete | delete /demand/ | |
DemandsApi | deleteById | delete /demand/{id} | |
DemandsApi | getById | get /demand/{id} | |
DemandsApi | search | post /demand/search | |
DemandsApi | update | put /demand/ | |
OffersApi | create1 | post /offer/ | |
OffersApi | delete1 | delete /offer/ | |
OffersApi | deleteById1 | delete /offer/{id} | |
OffersApi | getById1 | get /offer/{id} | |
OffersApi | search1 | post /offer/search | |
OffersApi | update1 | put /offer/ | |
PersonasApi | getById2 | get /persona/{id} | |
PersonasApi | getContactPoints | get /persona/{id}/contact | |
PersonasApi | search2 | post /persona/search | |
TripsApi | getById3 | get /trip/{id} | |
TripsApi | search3 | post /trip/search | |
TripsApi | searchMinimal | post /trip/search/minimal |
- ContactPointDto
- DemandDto
- GeoLocation
- IntegerRange
- OfferDto
- PageDemandDto
- PageOfferDto
- PageRequest
- PageResponse
- PageTripDto
- ParticipationDto
- PersonaDto
- Search
- SearchDto
- SearchRadius
- TimeRange
- TimeRangeDto
- TransportDto
- TripDto
- UserSearch
- Type: HTTP basic authentication
ride2go GmbH