Skip to content

api_client.api.CompanyApi

Load the API package

import 'package:api_client/api.dart';

All URIs are relative to https://localhost

Method HTTP request Description
deleteCompany POST /api/Company/deleteCompany
getCompanies POST /api/Company/getCompanies
getCompany GET /api/Company/getCompany
saveCompany POST /api/Company/saveCompany

deleteCompany

deleteCompany(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 CompanyApi();
var id = id_example; // String | 

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

getCompanies

QueryResultCompanyServiceModel getCompanies(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 CompanyApi();
var request = new CompanyQueryRequest(); // CompanyQueryRequest | 

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

Parameters

Name Type Description Notes
request CompanyQueryRequest [optional]

Return type

QueryResultCompanyServiceModel

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]

getCompany

CompanyServiceModel getCompany(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 CompanyApi();
var id = id_example; // String | 

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

Parameters

Name Type Description Notes
id String [optional]

Return type

CompanyServiceModel

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]

saveCompany

CompanyServiceModel saveCompany(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 CompanyApi();
var model = new CompanyServiceModel(); // CompanyServiceModel | 

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

Parameters

Name Type Description Notes
model CompanyServiceModel [optional]

Return type

CompanyServiceModel

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