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 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 createTableApiCreateTableTableNamePost(String tableName, BuiltList requestBody, { String accessToken }) async test('test createTableApiCreateTableTableNamePost', () async { // TODO }); // Create User // //Future createUserApiUsersPost(CreateUserDefinition createUserDefinition, { String accessToken }) async test('test createUserApiUsersPost', () async { // TODO }); // Delete Item From Table // //Future deleteItemFromTableItemsTableNamePost(String tableName, BuiltList columnConditionCompat, { String accessToken }) async test('test deleteItemFromTableItemsTableNamePost', () async { // TODO }); // Drop Table // //Future dropTableApiDropTableTableNamePost(String tableName, { String accessToken }) async test('test dropTableApiDropTableTableNamePost', () async { // TODO }); // Get Access Token // //Future getAccessTokenApiGetAccessTokenPost(AuthModel authModel) async test('test getAccessTokenApiGetAccessTokenPost', () async { // TODO }); // Get Asset // //Future getAssetAssetsFidGet(String fid) async test('test getAssetAssetsFidGet', () async { // TODO }); // Get Items From Table // //Future getItemsFromTableItemsTableNamePost(String tableName, ItemsFieldSelectorList itemsFieldSelectorList, { String accessToken }) async test('test getItemsFromTableItemsTableNamePost', () async { // TODO }); // List Tables // //Future> listTablesApiListTablesGet({ String accessToken }) async test('test listTablesApiListTablesGet', () async { // TODO }); // Put Asset // //Future putAssetAssetsPost(MultipartFile asset, { String accessToken }) async test('test putAssetAssetsPost', () async { // TODO }); // Remove Asset // //Future removeAssetAssetsAssetIdPost(int assetId, { bool checkReferences, bool deleteReferencing, String accessToken }) async test('test removeAssetAssetsAssetIdPost', () async { // TODO }); // Remove User // //Future removeUserApiUsersPost(int userId, { String accessToken }) async test('test removeUserApiUsersPost', () async { // TODO }); // Update Asset Description // //Future updateAssetDescriptionAssetsAssetIdPost(int assetId, String assetDescription, { String accessToken }) async test('test updateAssetDescriptionAssetsAssetIdPost', () async { // TODO }); // Update Item In Table // //Future updateItemInTableItemsTableNamePost(String tableName, BodyUpdateItemInTableItemsTableNamePost bodyUpdateItemInTableItemsTableNamePost, { String accessToken }) async test('test updateItemInTableItemsTableNamePost', () async { // TODO }); // Update User // //Future updateUserApiUsersPost(UserUpdateDefinition userUpdateDefinition, { String accessToken }) async test('test updateUserApiUsersPost', () async { // TODO }); }); }