Skip to content

api_client.api.BaseCarrierApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteCarrier POST /deleteCarrier
getCarrier GET /getCarrier
getCarriers POST /getCarriers
saveCarrier POST /saveCarrier

deleteCarrier

deleteCarrier(id)

Example

import 'package:api_client/api.dart';

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

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

getCarrier

CarrierServiceModel getCarrier(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

CarrierServiceModel

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]

getCarriers

QueryResultCarrierServiceModel getCarriers(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseCarrierApi();
var request = new CarrierQueryRequest(); // CarrierQueryRequest | 

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

Parameters

Name Type Description Notes
request CarrierQueryRequest [optional]

Return type

QueryResultCarrierServiceModel

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]

saveCarrier

CarrierServiceModel saveCarrier(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseCarrierApi();
var model = new CarrierServiceModel(); // CarrierServiceModel | 

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

Parameters

Name Type Description Notes
model CarrierServiceModel [optional]

Return type

CarrierServiceModel

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