Skip to content

api_client.api.BaseEquipmentTypeApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteEquipmentType POST /deleteEquipmentType
getEquipmentType GET /getEquipmentType
getEquipmentTypes POST /getEquipmentTypes
saveEquipmentType POST /saveEquipmentType

deleteEquipmentType

deleteEquipmentType(id)

Example

import 'package:api_client/api.dart';

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

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

getEquipmentType

EquipmentTypeServiceModel getEquipmentType(id)

Example

import 'package:api_client/api.dart';

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

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

Parameters

Name Type Description Notes
id String [optional]

Return type

EquipmentTypeServiceModel

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]

getEquipmentTypes

QueryResultEquipmentTypeServiceModel getEquipmentTypes(request)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseEquipmentTypeApi();
var request = new EquipmentTypeQueryRequest(); // EquipmentTypeQueryRequest | 

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

Parameters

Name Type Description Notes
request EquipmentTypeQueryRequest [optional]

Return type

QueryResultEquipmentTypeServiceModel

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]

saveEquipmentType

EquipmentTypeServiceModel saveEquipmentType(model)

Example

import 'package:api_client/api.dart';

var api_instance = new BaseEquipmentTypeApi();
var model = new EquipmentTypeServiceModel(); // EquipmentTypeServiceModel | 

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

Parameters

Name Type Description Notes
model EquipmentTypeServiceModel [optional]

Return type

EquipmentTypeServiceModel

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