Skip to content

api_client.api.CommodityTypeApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

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

deleteCommodityType

deleteCommodityType(id)

Example

import 'package:api_client/api.dart';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

void (empty response body)

Authorization

oauth2

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';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

CommodityTypeServiceModel

Authorization

oauth2

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';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

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

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

Parameters

Name Type Description Notes
request CommodityTypeQueryRequest [optional]

Return type

QueryResultCommodityTypeServiceModel

Authorization

oauth2

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';
// TODO Configure OAuth2 access token for authorization: oauth2
//api_client.api.Configuration.accessToken = 'YOUR_ACCESS_TOKEN';

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

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

Parameters

Name Type Description Notes
model CommodityTypeServiceModel [optional]

Return type

CommodityTypeServiceModel

Authorization

oauth2

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