Skip to content

api_client.api.BasePackageTypeApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deletePackageType POST /deletePackageType
getPackageType GET /getPackageType
getPackageTypes POST /getPackageTypes
savePackageType POST /savePackageType

deletePackageType

deletePackageType(id)

Example

import 'package:api_client/api.dart';

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

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

getPackageType

PackageTypeServiceModel getPackageType(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

PackageTypeServiceModel

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]

getPackageTypes

QueryResultPackageTypeServiceModel getPackageTypes(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePackageTypeApi();
var request = new PackageTypeQueryRequest(); // PackageTypeQueryRequest | 

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

Parameters

Name Type Description Notes
request PackageTypeQueryRequest [optional]

Return type

QueryResultPackageTypeServiceModel

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]

savePackageType

PackageTypeServiceModel savePackageType(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BasePackageTypeApi();
var model = new PackageTypeServiceModel(); // PackageTypeServiceModel | 

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

Parameters

Name Type Description Notes
model PackageTypeServiceModel [optional]

Return type

PackageTypeServiceModel

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