Skip to content

api_client.api.BaseVehicleApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteVehicle POST /deleteVehicle
getVehicle GET /getVehicle
getVehicles POST /getVehicles
saveVehicle POST /saveVehicle

deleteVehicle

deleteVehicle(id)

Example

import 'package:api_client/api.dart';

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

try { 
    api_instance.deleteVehicle(id);
} catch (e) {
    print("Exception when calling BaseVehicleApi->deleteVehicle: $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]

getVehicle

VehicleServiceModel getVehicle(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

VehicleServiceModel

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]

getVehicles

QueryResultVehicleServiceModel getVehicles(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseVehicleApi();
var request = new VehicleQueryRequest(); // VehicleQueryRequest | 

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

Parameters

Name Type Description Notes
request VehicleQueryRequest [optional]

Return type

QueryResultVehicleServiceModel

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]

saveVehicle

VehicleServiceModel saveVehicle(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseVehicleApi();
var model = new VehicleServiceModel(); // VehicleServiceModel | 

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

Parameters

Name Type Description Notes
model VehicleServiceModel [optional]

Return type

VehicleServiceModel

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