Skip to content

api_client.api.BaseDriverApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteDriver POST /deleteDriver
getDriver GET /getDriver
getDrivers POST /getDrivers
saveDriver POST /saveDriver

deleteDriver

deleteDriver(id)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseDriverApi();
var id = id_example; // String | 

try { 
    api_instance.deleteDriver(id);
} catch (e) {
    print("Exception when calling BaseDriverApi->deleteDriver: $e\n");
}

Parameters

Name Type Description Notes
id String [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getDriver

DriverServiceModel getDriver(id)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseDriverApi();
var id = id_example; // String | 

try { 
    var result = api_instance.getDriver(id);
    print(result);
} catch (e) {
    print("Exception when calling BaseDriverApi->getDriver: $e\n");
}

Parameters

Name Type Description Notes
id String [optional]

Return type

DriverServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

getDrivers

QueryResultDriverServiceModel getDrivers(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseDriverApi();
var request = new DriverQueryRequest(); // DriverQueryRequest | 

try { 
    var result = api_instance.getDrivers(request);
    print(result);
} catch (e) {
    print("Exception when calling BaseDriverApi->getDrivers: $e\n");
}

Parameters

Name Type Description Notes
request DriverQueryRequest [optional]

Return type

QueryResultDriverServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]

saveDriver

DriverServiceModel saveDriver(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseDriverApi();
var model = new DriverServiceModel(); // DriverServiceModel | 

try { 
    var result = api_instance.saveDriver(model);
    print(result);
} catch (e) {
    print("Exception when calling BaseDriverApi->saveDriver: $e\n");
}

Parameters

Name Type Description Notes
model DriverServiceModel [optional]

Return type

DriverServiceModel

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json-patch+json, application/json, text/json, application/_*+json
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]


Last update: July 4, 2020