Skip to content

fahrgemeinschaft/r2gapi_flutter_sdk

Repository files navigation

r2gapi_flutter_sdk

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

Requirements

Dart 1.20.0 or later OR Flutter 0.0.20 or later

Installation & Usage

Github

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'

Local

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

Getting Started

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");
}

Documentation for API Endpoints

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

Documentation For Models

Documentation For Authorization

basicScheme

  • Type: HTTP basic authentication

Author

ride2go GmbH

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages