mirror of
https://bitbucket.org/FransoletThomas/tablet-app.git
synced 2025-12-06 08:31:19 +00:00
230 lines
6.0 KiB
Markdown
230 lines
6.0 KiB
Markdown
# managerapi.api.ConfigurationApi
|
|
|
|
## Load the API package
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
```
|
|
|
|
All URIs are relative to *http://192.168.31.96*
|
|
|
|
Method | HTTP request | Description
|
|
------------- | ------------- | -------------
|
|
[**configurationCreate**](ConfigurationApi.md#configurationcreate) | **POST** /api/Configuration |
|
|
[**configurationDelete**](ConfigurationApi.md#configurationdelete) | **DELETE** /api/Configuration/{id} |
|
|
[**configurationGet**](ConfigurationApi.md#configurationget) | **GET** /api/Configuration |
|
|
[**configurationGetDetail**](ConfigurationApi.md#configurationgetdetail) | **GET** /api/Configuration/{id} |
|
|
[**configurationUpdate**](ConfigurationApi.md#configurationupdate) | **PUT** /api/Configuration |
|
|
|
|
|
|
# **configurationCreate**
|
|
> ConfigurationDTO configurationCreate(configurationDTO)
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = ConfigurationApi();
|
|
final configurationDTO = ConfigurationDTO(); // ConfigurationDTO |
|
|
|
|
try {
|
|
final result = api_instance.configurationCreate(configurationDTO);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling ConfigurationApi->configurationCreate: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**configurationDTO** | [**ConfigurationDTO**](ConfigurationDTO.md)| |
|
|
|
|
### Return type
|
|
|
|
[**ConfigurationDTO**](ConfigurationDTO.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|
|
# **configurationDelete**
|
|
> String configurationDelete(id)
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = ConfigurationApi();
|
|
final id = id_example; // String |
|
|
|
|
try {
|
|
final result = api_instance.configurationDelete(id);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling ConfigurationApi->configurationDelete: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**id** | **String**| |
|
|
|
|
### Return type
|
|
|
|
**String**
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|
|
# **configurationGet**
|
|
> List<ConfigurationDTO> configurationGet()
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = ConfigurationApi();
|
|
|
|
try {
|
|
final result = api_instance.configurationGet();
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling ConfigurationApi->configurationGet: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
This endpoint does not need any parameter.
|
|
|
|
### Return type
|
|
|
|
[**List<ConfigurationDTO>**](ConfigurationDTO.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|
|
# **configurationGetDetail**
|
|
> ConfigurationDTO configurationGetDetail(id)
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = ConfigurationApi();
|
|
final id = id_example; // String |
|
|
|
|
try {
|
|
final result = api_instance.configurationGetDetail(id);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling ConfigurationApi->configurationGetDetail: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**id** | **String**| |
|
|
|
|
### Return type
|
|
|
|
[**ConfigurationDTO**](ConfigurationDTO.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: Not defined
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|
|
# **configurationUpdate**
|
|
> ConfigurationDTO configurationUpdate(configurationDTO)
|
|
|
|
|
|
|
|
### Example
|
|
```dart
|
|
import 'package:managerapi/api.dart';
|
|
// TODO Configure OAuth2 access token for authorization: bearer
|
|
//defaultApiClient.getAuthentication<OAuth>('bearer').accessToken = 'YOUR_ACCESS_TOKEN';
|
|
|
|
final api_instance = ConfigurationApi();
|
|
final configurationDTO = ConfigurationDTO(); // ConfigurationDTO |
|
|
|
|
try {
|
|
final result = api_instance.configurationUpdate(configurationDTO);
|
|
print(result);
|
|
} catch (e) {
|
|
print('Exception when calling ConfigurationApi->configurationUpdate: $e\n');
|
|
}
|
|
```
|
|
|
|
### Parameters
|
|
|
|
Name | Type | Description | Notes
|
|
------------- | ------------- | ------------- | -------------
|
|
**configurationDTO** | [**ConfigurationDTO**](ConfigurationDTO.md)| |
|
|
|
|
### Return type
|
|
|
|
[**ConfigurationDTO**](ConfigurationDTO.md)
|
|
|
|
### Authorization
|
|
|
|
[bearer](../README.md#bearer)
|
|
|
|
### HTTP request headers
|
|
|
|
- **Content-Type**: application/json
|
|
- **Accept**: application/json
|
|
|
|
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
|
|
|