Api upgrade
This commit is contained in:
parent
aa04b550c6
commit
9e67cc912b
11 changed files with 392 additions and 107 deletions
16
doc/BodyGetItemsFromTableItemsTableNamePost.md
Normal file
16
doc/BodyGetItemsFromTableItemsTableNamePost.md
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
# tuuli_api.model.BodyGetItemsFromTableItemsTableNamePost
|
||||
|
||||
## Load the model package
|
||||
```dart
|
||||
import 'package:tuuli_api/api.dart';
|
||||
```
|
||||
|
||||
## Properties
|
||||
Name | Type | Description | Notes
|
||||
------------ | ------------- | ------------- | -------------
|
||||
**fields** | **BuiltList<String>** | | [optional] [default to ListBuilder()]
|
||||
**where** | [**BuiltList<ColumnConditionCompat>**](ColumnConditionCompat.md) | | [optional] [default to ListBuilder()]
|
||||
|
||||
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
|
||||
|
||||
|
||||
|
|
@ -76,7 +76,7 @@ No authorization required
|
|||
|
||||
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
|
||||
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:primary - 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
|
||||
|
|
@ -332,7 +332,7 @@ No authorization required
|
|||
[[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)
|
||||
> BuiltList<JsonObject> getItemsFromTableItemsTableNamePost(tableName, accessToken, bodyGetItemsFromTableItemsTableNamePost)
|
||||
|
||||
Get Items From Table
|
||||
|
||||
|
|
@ -342,11 +342,11 @@ 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 |
|
||||
final BodyGetItemsFromTableItemsTableNamePost bodyGetItemsFromTableItemsTableNamePost = ; // BodyGetItemsFromTableItemsTableNamePost |
|
||||
|
||||
try {
|
||||
final response = api.getItemsFromTableItemsTableNamePost(tableName, itemsFieldSelectorList, accessToken);
|
||||
final response = api.getItemsFromTableItemsTableNamePost(tableName, accessToken, bodyGetItemsFromTableItemsTableNamePost);
|
||||
print(response);
|
||||
} catch on DioError (e) {
|
||||
print('Exception when calling DefaultApi->getItemsFromTableItemsTableNamePost: $e\n');
|
||||
|
|
@ -358,12 +358,12 @@ try {
|
|||
Name | Type | Description | Notes
|
||||
------------- | ------------- | ------------- | -------------
|
||||
**tableName** | **String**| |
|
||||
**itemsFieldSelectorList** | [**ItemsFieldSelectorList**](ItemsFieldSelectorList.md)| |
|
||||
**accessToken** | **String**| | [optional]
|
||||
**bodyGetItemsFromTableItemsTableNamePost** | [**BodyGetItemsFromTableItemsTableNamePost**](BodyGetItemsFromTableItemsTableNamePost.md)| | [optional]
|
||||
|
||||
### Return type
|
||||
|
||||
[**TableItemsResponse**](TableItemsResponse.md)
|
||||
[**BuiltList<JsonObject>**](JsonObject.md)
|
||||
|
||||
### Authorization
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue