1.0.0
This commit is contained in:
commit
f076ae3790
82 changed files with 7250 additions and 0 deletions
685
doc/DefaultApi.md
Normal file
685
doc/DefaultApi.md
Normal file
|
|
@ -0,0 +1,685 @@
|
|||
# tuuli_api.api.DefaultApi
|
||||
|
||||
## Load the API package
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
```
|
||||
|
||||
All URIs are relative to *http://localhost*
|
||||
|
||||
Method | HTTP request | Description
|
||||
------------- | ------------- | -------------
|
||||
[**createItemItemsTableNamePost**](DefaultApi.md#createitemitemstablenamepost) | **POST** /items/{tableName}/+ | Create Item
|
||||
[**createTableApiCreateTableTableNamePost**](DefaultApi.md#createtableapicreatetabletablenamepost) | **POST** /api/createTable/{tableName} | Create Table
|
||||
[**createUserApiUsersPost**](DefaultApi.md#createuserapiuserspost) | **POST** /api/users/+ | Create User
|
||||
[**deleteItemFromTableItemsTableNamePost**](DefaultApi.md#deleteitemfromtableitemstablenamepost) | **POST** /items/{tableName}/- | Delete Item From Table
|
||||
[**dropTableApiDropTableTableNamePost**](DefaultApi.md#droptableapidroptabletablenamepost) | **POST** /api/dropTable/{tableName} | Drop Table
|
||||
[**getAccessTokenApiGetAccessTokenPost**](DefaultApi.md#getaccesstokenapigetaccesstokenpost) | **POST** /api/getAccessToken | Get Access Token
|
||||
[**getAssetAssetsFidGet**](DefaultApi.md#getassetassetsfidget) | **GET** /assets/{fid} | Get Asset
|
||||
[**getItemsFromTableItemsTableNamePost**](DefaultApi.md#getitemsfromtableitemstablenamepost) | **POST** /items/{tableName} | Get Items From Table
|
||||
[**listTablesApiListTablesGet**](DefaultApi.md#listtablesapilisttablesget) | **GET** /api/listTables | List Tables
|
||||
[**putAssetAssetsPost**](DefaultApi.md#putassetassetspost) | **POST** /assets/+ | Put Asset
|
||||
[**removeAssetAssetsAssetIdPost**](DefaultApi.md#removeassetassetsassetidpost) | **POST** /assets/{asset_id}/- | Remove Asset
|
||||
[**removeUserApiUsersPost**](DefaultApi.md#removeuserapiuserspost) | **POST** /api/users/- | Remove User
|
||||
[**updateAssetDescriptionAssetsAssetIdPost**](DefaultApi.md#updateassetdescriptionassetsassetidpost) | **POST** /assets/{asset_id}/* | Update Asset Description
|
||||
[**updateItemInTableItemsTableNamePost**](DefaultApi.md#updateitemintableitemstablenamepost) | **POST** /items/{tableName}/* | Update Item In Table
|
||||
[**updateUserApiUsersPost**](DefaultApi.md#updateuserapiuserspost) | **POST** /api/users/* | Update User
|
||||
|
||||
|
||||
# **createItemItemsTableNamePost**
|
||||
> OkResponse createItemItemsTableNamePost(tableName, body, accessToken)
|
||||
|
||||
Create Item
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final JsonObject body = Object; // JsonObject |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.createItemItemsTableNamePost(tableName, body, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->createItemItemsTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**body** | **JsonObject**| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **createTableApiCreateTableTableNamePost**
|
||||
> OkResponse createTableApiCreateTableTableNamePost(tableName, requestBody, accessToken)
|
||||
|
||||
Create Table
|
||||
|
||||
Parameter `columns` should be a list of strings Each string should be in a following format: `column_name:column_type[:column_options]` Where *column_type* should be one of the following: - serial - str - bool - datetime - float - int - int:asset - int:user Also *column_options* can be one of the following: - unique - default Example: ```json [ \"id:serial:primary\", \"name:str:unique\", \"description:str\", \"is_active:bool\", \"price:float\", \"quantity:int\", \"creator_id:int:user\", \"asset_id:int:asset\" ] ``` Notes: 1. you cannot use *unique* and *default* at the same time 2. in current implementation you cannot use *default*, because there is no way to specify default value
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final BuiltList<String> requestBody = ; // BuiltList<String> |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.createTableApiCreateTableTableNamePost(tableName, requestBody, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->createTableApiCreateTableTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**requestBody** | [**BuiltList<String>**](String.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **createUserApiUsersPost**
|
||||
> OkResponse createUserApiUsersPost(createUserDefinition, accessToken)
|
||||
|
||||
Create User
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final CreateUserDefinition createUserDefinition = ; // CreateUserDefinition |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.createUserApiUsersPost(createUserDefinition, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->createUserApiUsersPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**createUserDefinition** | [**CreateUserDefinition**](CreateUserDefinition.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **deleteItemFromTableItemsTableNamePost**
|
||||
> OkResponse deleteItemFromTableItemsTableNamePost(tableName, columnConditionCompat, accessToken)
|
||||
|
||||
Delete Item From Table
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final BuiltList<ColumnConditionCompat> columnConditionCompat = ; // BuiltList<ColumnConditionCompat> |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.deleteItemFromTableItemsTableNamePost(tableName, columnConditionCompat, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->deleteItemFromTableItemsTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**columnConditionCompat** | [**BuiltList<ColumnConditionCompat>**](ColumnConditionCompat.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **dropTableApiDropTableTableNamePost**
|
||||
> OkResponse dropTableApiDropTableTableNamePost(tableName, accessToken)
|
||||
|
||||
Drop Table
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.dropTableApiDropTableTableNamePost(tableName, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->dropTableApiDropTableTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **getAccessTokenApiGetAccessTokenPost**
|
||||
> AccessTokenResponse getAccessTokenApiGetAccessTokenPost(authModel)
|
||||
|
||||
Get Access Token
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final AuthModel authModel = ; // AuthModel |
|
||||
|
||||
try {
|
||||
final response = api.getAccessTokenApiGetAccessTokenPost(authModel);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->getAccessTokenApiGetAccessTokenPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**authModel** | [**AuthModel**](AuthModel.md)| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**AccessTokenResponse**](AccessTokenResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **getAssetAssetsFidGet**
|
||||
> JsonObject getAssetAssetsFidGet(fid)
|
||||
|
||||
Get Asset
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String fid = fid_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.getAssetAssetsFidGet(fid);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->getAssetAssetsFidGet: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**fid** | **String**| |
|
||||
|
||||
### Return type
|
||||
|
||||
[**JsonObject**](JsonObject.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: Not defined
|
||||
- **Accept**: application/json, application/octet-stream
|
||||
|
||||
[[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)
|
||||
|
||||
# **getItemsFromTableItemsTableNamePost**
|
||||
> TableItemsResponse getItemsFromTableItemsTableNamePost(tableName, itemsFieldSelectorList, accessToken)
|
||||
|
||||
Get Items From Table
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final ItemsFieldSelectorList itemsFieldSelectorList = ; // ItemsFieldSelectorList |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.getItemsFromTableItemsTableNamePost(tableName, itemsFieldSelectorList, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->getItemsFromTableItemsTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**itemsFieldSelectorList** | [**ItemsFieldSelectorList**](ItemsFieldSelectorList.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**TableItemsResponse**](TableItemsResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **listTablesApiListTablesGet**
|
||||
> BuiltList<TableDefinition> listTablesApiListTablesGet(accessToken)
|
||||
|
||||
List Tables
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.listTablesApiListTablesGet(accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->listTablesApiListTablesGet: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**BuiltList<TableDefinition>**](TableDefinition.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **putAssetAssetsPost**
|
||||
> CreateAssetResponse putAssetAssetsPost(asset, accessToken)
|
||||
|
||||
Put Asset
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final MultipartFile asset = BINARY_DATA_HERE; // MultipartFile |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.putAssetAssetsPost(asset, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->putAssetAssetsPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**asset** | **MultipartFile**| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**CreateAssetResponse**](CreateAssetResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### HTTP request headers
|
||||
|
||||
- **Content-Type**: multipart/form-data
|
||||
- **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)
|
||||
|
||||
# **removeAssetAssetsAssetIdPost**
|
||||
> OkResponse removeAssetAssetsAssetIdPost(assetId, checkReferences, deleteReferencing, accessToken)
|
||||
|
||||
Remove Asset
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final int assetId = 56; // int |
|
||||
final bool checkReferences = true; // bool |
|
||||
final bool deleteReferencing = true; // bool |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.removeAssetAssetsAssetIdPost(assetId, checkReferences, deleteReferencing, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->removeAssetAssetsAssetIdPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**assetId** | **int**| |
|
||||
**checkReferences** | **bool**| | [optional] [default to true]
|
||||
**deleteReferencing** | **bool**| | [optional] [default to false]
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **removeUserApiUsersPost**
|
||||
> OkResponse removeUserApiUsersPost(userId, accessToken)
|
||||
|
||||
Remove User
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final int userId = 56; // int |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.removeUserApiUsersPost(userId, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->removeUserApiUsersPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**userId** | **int**| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **updateAssetDescriptionAssetsAssetIdPost**
|
||||
> OkResponse updateAssetDescriptionAssetsAssetIdPost(assetId, assetDescription, accessToken)
|
||||
|
||||
Update Asset Description
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final int assetId = 56; // int |
|
||||
final String assetDescription = assetDescription_example; // String |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.updateAssetDescriptionAssetsAssetIdPost(assetId, assetDescription, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->updateAssetDescriptionAssetsAssetIdPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**assetId** | **int**| |
|
||||
**assetDescription** | **String**| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **updateItemInTableItemsTableNamePost**
|
||||
> OkResponse updateItemInTableItemsTableNamePost(tableName, bodyUpdateItemInTableItemsTableNamePost, accessToken)
|
||||
|
||||
Update Item In Table
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final String tableName = tableName_example; // String |
|
||||
final BodyUpdateItemInTableItemsTableNamePost bodyUpdateItemInTableItemsTableNamePost = ; // BodyUpdateItemInTableItemsTableNamePost |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.updateItemInTableItemsTableNamePost(tableName, bodyUpdateItemInTableItemsTableNamePost, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->updateItemInTableItemsTableNamePost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**bodyUpdateItemInTableItemsTableNamePost** | [**BodyUpdateItemInTableItemsTableNamePost**](BodyUpdateItemInTableItemsTableNamePost.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
# **updateUserApiUsersPost**
|
||||
> OkResponse updateUserApiUsersPost(userUpdateDefinition, accessToken)
|
||||
|
||||
Update User
|
||||
|
||||
### Example
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
|
||||
final api = TuuliApi().getDefaultApi();
|
||||
final UserUpdateDefinition userUpdateDefinition = ; // UserUpdateDefinition |
|
||||
final String accessToken = accessToken_example; // String |
|
||||
|
||||
try {
|
||||
final response = api.updateUserApiUsersPost(userUpdateDefinition, accessToken);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->updateUserApiUsersPost: $e\n');
|
||||
}
|
||||
```
|
||||
|
||||
### Parameters
|
||||
|
||||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**userUpdateDefinition** | [**UserUpdateDefinition**](UserUpdateDefinition.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**OkResponse**](OkResponse.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
No authorization required
|
||||
|
||||
### 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)
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue