Skip to content

api_client.api.BaseCommodityTypeApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteCommodityType POST /deleteCommodityType
getCommodityType GET /getCommodityType
getCommodityTypes POST /getCommodityTypes
saveCommodityType POST /saveCommodityType

deleteCommodityType

deleteCommodityType(id)

Example

import 'package:api_client/api.dart';

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

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

getCommodityType

CommodityTypeServiceModel getCommodityType(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

CommodityTypeServiceModel

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]

getCommodityTypes

QueryResultCommodityTypeServiceModel getCommodityTypes(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseCommodityTypeApi();
var request = new CommodityTypeQueryRequest(); // CommodityTypeQueryRequest | 

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

Parameters

Name Type Description Notes
request CommodityTypeQueryRequest [optional]

Return type

QueryResultCommodityTypeServiceModel

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]

saveCommodityType

CommodityTypeServiceModel saveCommodityType(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseCommodityTypeApi();
var model = new CommodityTypeServiceModel(); // CommodityTypeServiceModel | 

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

Parameters

Name Type Description Notes
model CommodityTypeServiceModel [optional]

Return type

CommodityTypeServiceModel

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