118 lines
4.4 KiB
Dart
118 lines
4.4 KiB
Dart
import 'package:test/test.dart';
|
|
import 'package:tuuli_api/tuuli_api.dart';
|
|
|
|
|
|
/// tests for DefaultApi
|
|
void main() {
|
|
final instance = TuuliApi().getDefaultApi();
|
|
|
|
group(DefaultApi, () {
|
|
// Create Item
|
|
//
|
|
//Future<OkResponse> createItemItemsTableNamePost(String tableName, JsonObject body, { String accessToken }) async
|
|
test('test createItemItemsTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// 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
|
|
//
|
|
//Future<OkResponse> createTableApiCreateTableTableNamePost(String tableName, BuiltList<String> requestBody, { String accessToken }) async
|
|
test('test createTableApiCreateTableTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Create User
|
|
//
|
|
//Future<OkResponse> createUserApiUsersPost(CreateUserDefinition createUserDefinition, { String accessToken }) async
|
|
test('test createUserApiUsersPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Delete Item From Table
|
|
//
|
|
//Future<OkResponse> deleteItemFromTableItemsTableNamePost(String tableName, BuiltList<ColumnConditionCompat> columnConditionCompat, { String accessToken }) async
|
|
test('test deleteItemFromTableItemsTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Drop Table
|
|
//
|
|
//Future<OkResponse> dropTableApiDropTableTableNamePost(String tableName, { String accessToken }) async
|
|
test('test dropTableApiDropTableTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get Access Token
|
|
//
|
|
//Future<AccessTokenResponse> getAccessTokenApiGetAccessTokenPost(AuthModel authModel) async
|
|
test('test getAccessTokenApiGetAccessTokenPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get Asset
|
|
//
|
|
//Future<JsonObject> getAssetAssetsFidGet(String fid) async
|
|
test('test getAssetAssetsFidGet', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Get Items From Table
|
|
//
|
|
//Future<TableItemsResponse> getItemsFromTableItemsTableNamePost(String tableName, ItemsFieldSelectorList itemsFieldSelectorList, { String accessToken }) async
|
|
test('test getItemsFromTableItemsTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// List Tables
|
|
//
|
|
//Future<BuiltList<TableDefinition>> listTablesApiListTablesGet({ String accessToken }) async
|
|
test('test listTablesApiListTablesGet', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Put Asset
|
|
//
|
|
//Future<CreateAssetResponse> putAssetAssetsPost(MultipartFile asset, { String accessToken }) async
|
|
test('test putAssetAssetsPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Remove Asset
|
|
//
|
|
//Future<OkResponse> removeAssetAssetsAssetIdPost(int assetId, { bool checkReferences, bool deleteReferencing, String accessToken }) async
|
|
test('test removeAssetAssetsAssetIdPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Remove User
|
|
//
|
|
//Future<OkResponse> removeUserApiUsersPost(int userId, { String accessToken }) async
|
|
test('test removeUserApiUsersPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Update Asset Description
|
|
//
|
|
//Future<OkResponse> updateAssetDescriptionAssetsAssetIdPost(int assetId, String assetDescription, { String accessToken }) async
|
|
test('test updateAssetDescriptionAssetsAssetIdPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Update Item In Table
|
|
//
|
|
//Future<OkResponse> updateItemInTableItemsTableNamePost(String tableName, BodyUpdateItemInTableItemsTableNamePost bodyUpdateItemInTableItemsTableNamePost, { String accessToken }) async
|
|
test('test updateItemInTableItemsTableNamePost', () async {
|
|
// TODO
|
|
});
|
|
|
|
// Update User
|
|
//
|
|
//Future<OkResponse> updateUserApiUsersPost(UserUpdateDefinition userUpdateDefinition, { String accessToken }) async
|
|
test('test updateUserApiUsersPost', () async {
|
|
// TODO
|
|
});
|
|
|
|
});
|
|
}
|