diff --git a/frontend/.gitignore b/frontend/.gitignore index dbef116d..586b829f 100644 --- a/frontend/.gitignore +++ b/frontend/.gitignore @@ -19,3 +19,8 @@ doc/api/ *.js_ *.js.deps *.js.map + +.flutter-plugins* + +# Generated code +*.freezed.dart \ No newline at end of file diff --git a/frontend/analysis_options.yaml b/frontend/analysis_options.yaml index 61b6c4de..bdbd6bd5 100644 --- a/frontend/analysis_options.yaml +++ b/frontend/analysis_options.yaml @@ -1,29 +1,10 @@ -# This file configures the analyzer, which statically analyzes Dart code to -# check for errors, warnings, and lints. -# -# The issues identified by the analyzer are surfaced in the UI of Dart-enabled -# IDEs (https://dart.dev/tools#ides-and-editors). The analyzer can also be -# invoked from the command line by running `flutter analyze`. - # The following line activates a set of recommended lints for Flutter apps, # packages, and plugins designed to encourage good coding practices. include: package:flutter_lints/flutter.yaml linter: - # The lint rules applied to this project can be customized in the - # section below to disable rules from the `package:flutter_lints/flutter.yaml` - # included above or to enable additional rules. A list of all available lints - # and their documentation is published at - # https://dart-lang.github.io/linter/lints/index.html. - # - # Instead of disabling a lint rule for the entire project in the - # section below, it can also be suppressed for a single line of code - # or a specific dart file by using the `// ignore: name_of_lint` and - # `// ignore_for_file: name_of_lint` syntax on the line or in the file - # producing the lint. rules: - # avoid_print: false # Uncomment to disable the `avoid_print` rule - # prefer_single_quotes: true # Uncomment to enable the `prefer_single_quotes` rule - -# Additional information about this file can be found at -# https://dart.dev/guides/language/analysis-options + - prefer_single_quotes + - require_trailing_commas + - prefer_relative_imports + - prefer_final_locals diff --git a/frontend/assets/canonical.png b/frontend/assets/canonical.png new file mode 100644 index 00000000..917876f4 Binary files /dev/null and b/frontend/assets/canonical.png differ diff --git a/frontend/external/testcases-api/.gitignore b/frontend/external/testcases-api/.gitignore deleted file mode 100644 index 1be28ced..00000000 --- a/frontend/external/testcases-api/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://dart.dev/guides/libraries/private-files - -.dart_tool/ -.packages -build/ -pubspec.lock # Except for application packages - -doc/api/ - -# IntelliJ -*.iml -*.ipr -*.iws -.idea/ - -# Mac -.DS_Store diff --git a/frontend/external/testcases-api/.openapi-generator-ignore b/frontend/external/testcases-api/.openapi-generator-ignore deleted file mode 100644 index 7484ee59..00000000 --- a/frontend/external/testcases-api/.openapi-generator-ignore +++ /dev/null @@ -1,23 +0,0 @@ -# OpenAPI Generator Ignore -# Generated by openapi-generator https://github.com/openapitools/openapi-generator - -# Use this file to prevent files from being overwritten by the generator. -# The patterns follow closely to .gitignore or .dockerignore. - -# As an example, the C# client generator defines ApiClient.cs. -# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line: -#ApiClient.cs - -# You can match any string of characters against a directory, file or extension with a single asterisk (*): -#foo/*/qux -# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux - -# You can recursively match patterns against a directory, file or extension with a double asterisk (**): -#foo/**/qux -# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux - -# You can also negate patterns with an exclamation (!). -# For example, you can ignore all files in a docs folder with the file extension .md: -#docs/*.md -# Then explicitly reverse the ignore rule for a single file: -#!docs/README.md diff --git a/frontend/external/testcases-api/.openapi-generator/FILES b/frontend/external/testcases-api/.openapi-generator/FILES deleted file mode 100644 index d5ad3799..00000000 --- a/frontend/external/testcases-api/.openapi-generator/FILES +++ /dev/null @@ -1,67 +0,0 @@ -.gitignore -.openapi-generator-ignore -.travis.yml -README.md -analysis_options.yaml -doc/AddBoardRequest.md -doc/AddCardRequest.md -doc/AddChecklistRequest.md -doc/AddCommentToCardRequest.md -doc/AddLabelToCardRequest.md -doc/AddListRequest.md -doc/Board.md -doc/BoardApi.md -doc/Card.md -doc/CardApi.md -doc/CheckItem.md -doc/Checklist.md -doc/ChecklistApi.md -doc/Comment.md -doc/Label.md -doc/ListApi.md -doc/ModelList.md -git_push.sh -lib/api.dart -lib/api/board_api.dart -lib/api/card_api.dart -lib/api/checklist_api.dart -lib/api/list_api.dart -lib/api_client.dart -lib/api_exception.dart -lib/api_helper.dart -lib/auth/api_key_auth.dart -lib/auth/authentication.dart -lib/auth/http_basic_auth.dart -lib/auth/http_bearer_auth.dart -lib/auth/oauth.dart -lib/model/add_board_request.dart -lib/model/add_card_request.dart -lib/model/add_checklist_request.dart -lib/model/add_comment_to_card_request.dart -lib/model/add_label_to_card_request.dart -lib/model/add_list_request.dart -lib/model/board.dart -lib/model/card.dart -lib/model/check_item.dart -lib/model/checklist.dart -lib/model/comment.dart -lib/model/label.dart -lib/model/model_list.dart -pubspec.yaml -test/add_board_request_test.dart -test/add_card_request_test.dart -test/add_checklist_request_test.dart -test/add_comment_to_card_request_test.dart -test/add_label_to_card_request_test.dart -test/add_list_request_test.dart -test/board_api_test.dart -test/board_test.dart -test/card_api_test.dart -test/card_test.dart -test/check_item_test.dart -test/checklist_api_test.dart -test/checklist_test.dart -test/comment_test.dart -test/label_test.dart -test/list_api_test.dart -test/model_list_test.dart diff --git a/frontend/external/testcases-api/.openapi-generator/VERSION b/frontend/external/testcases-api/.openapi-generator/VERSION deleted file mode 100644 index 717311e3..00000000 --- a/frontend/external/testcases-api/.openapi-generator/VERSION +++ /dev/null @@ -1 +0,0 @@ -unset \ No newline at end of file diff --git a/frontend/external/testcases-api/.travis.yml b/frontend/external/testcases-api/.travis.yml deleted file mode 100644 index 2774ccbb..00000000 --- a/frontend/external/testcases-api/.travis.yml +++ /dev/null @@ -1,14 +0,0 @@ -# -# AUTO-GENERATED FILE, DO NOT MODIFY! -# -# https://docs.travis-ci.com/user/languages/dart/ -# -language: dart -dart: -# Install a specific stable release -- "2.12" -install: -- pub get - -script: -- pub run test diff --git a/frontend/external/testcases-api/README.md b/frontend/external/testcases-api/README.md deleted file mode 100644 index a525736c..00000000 --- a/frontend/external/testcases-api/README.md +++ /dev/null @@ -1,122 +0,0 @@ -# testcases -This is a sample OpenAPI for a Cards Hosting Application. - -This Dart package is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project: - -- API version: 0.0.1 -- Build package: org.openapitools.codegen.languages.DartClientCodegen - -## Requirements - -Dart 2.12 or later - -## Installation & Usage - -### Github -If this Dart package is published to Github, add the following dependency to your pubspec.yaml -``` -dependencies: - testcases: - git: https://github.com/GIT_USER_ID/GIT_REPO_ID.git -``` - -### Local -To use the package in your local drive, add the following dependency to your pubspec.yaml -``` -dependencies: - testcases: - path: /path/to/testcases -``` - -## Tests - -TODO - -## Getting Started - -Please follow the [installation procedure](#installation--usage) and then run the following: - -```dart -import 'package:testcases/api.dart'; - -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final addBoardRequest = AddBoardRequest(); // AddBoardRequest | A new board description - -try { - final result = api_instance.addBoard(addBoardRequest); - print(result); -} catch (e) { - print('Exception when calling BoardApi->addBoard: $e\n'); -} - -``` - -## Documentation for API Endpoints - -All URIs are relative to *http://localhost* - -Class | Method | HTTP request | Description ------------- | ------------- | ------------- | ------------- -*BoardApi* | [**addBoard**](doc//BoardApi.md#addboard) | **POST** /board | Add a new board -*BoardApi* | [**deleteBoard**](doc//BoardApi.md#deleteboard) | **DELETE** /board/{boardId} | Delete a board -*BoardApi* | [**getBoardById**](doc//BoardApi.md#getboardbyid) | **GET** /board/{boardId} | Fetch a board by ID -*BoardApi* | [**getCardsOnBoard**](doc//BoardApi.md#getcardsonboard) | **GET** /board/{boardId}/cards | Get all cards on the board -*BoardApi* | [**getListsOnBoard**](doc//BoardApi.md#getlistsonboard) | **GET** /board/{boardId}/lists | Get all lists on the board -*BoardApi* | [**updateBoard**](doc//BoardApi.md#updateboard) | **PUT** /board/{boardId} | Update an existent board -*CardApi* | [**addCard**](doc//CardApi.md#addcard) | **POST** /card | Add a new card -*CardApi* | [**addCommentToCard**](doc//CardApi.md#addcommenttocard) | **POST** /card/{cardId}/comments | Add comment an existent card -*CardApi* | [**addLabelToCard**](doc//CardApi.md#addlabeltocard) | **POST** /card/{cardId}/labels | Attach a label an existent card -*CardApi* | [**deleteCard**](doc//CardApi.md#deletecard) | **DELETE** /card/{cardId} | Delete a card -*CardApi* | [**getCardById**](doc//CardApi.md#getcardbyid) | **GET** /card/{cardId} | Get card by its Id -*CardApi* | [**getChecklistsInCard**](doc//CardApi.md#getchecklistsincard) | **GET** /card/{cardId}/checklists | Get card checklists -*CardApi* | [**getCommentInCardById**](doc//CardApi.md#getcommentincardbyid) | **GET** /card/{cardId}/comments/{commentId} | Get card comments -*CardApi* | [**getCommentsInCard**](doc//CardApi.md#getcommentsincard) | **GET** /card/{cardId}/comments | Get card comments -*CardApi* | [**getLabelsInCard**](doc//CardApi.md#getlabelsincard) | **GET** /card/{cardId}/labels | Get card labels -*CardApi* | [**updateCard**](doc//CardApi.md#updatecard) | **PUT** /card/{cardId} | Update an existent card -*ChecklistApi* | [**addChecklist**](doc//ChecklistApi.md#addchecklist) | **POST** /checklist | Add a new checklist -*ChecklistApi* | [**deleteChecklist**](doc//ChecklistApi.md#deletechecklist) | **DELETE** /checklist/{checklistId} | Delete a checklist -*ChecklistApi* | [**getChecklistById**](doc//ChecklistApi.md#getchecklistbyid) | **GET** /checklist/{checklistId} | Get checklist by its Id -*ChecklistApi* | [**updateChecklist**](doc//ChecklistApi.md#updatechecklist) | **PUT** /checklist/{checklistId} | Update an existent checklist -*ListApi* | [**addList**](doc//ListApi.md#addlist) | **POST** /list | Add a new list -*ListApi* | [**deleteList**](doc//ListApi.md#deletelist) | **DELETE** /list/{listId} | Delete a list -*ListApi* | [**getCardsInList**](doc//ListApi.md#getcardsinlist) | **GET** /list/{listId}/cards | Get all cards in the list -*ListApi* | [**getListById**](doc//ListApi.md#getlistbyid) | **GET** /list/{listId} | Get JSON representation of the list by its Id -*ListApi* | [**updateList**](doc//ListApi.md#updatelist) | **PUT** /list/{listId} | Update an existent list - - -## Documentation For Models - - - [AddBoardRequest](doc//AddBoardRequest.md) - - [AddCardRequest](doc//AddCardRequest.md) - - [AddChecklistRequest](doc//AddChecklistRequest.md) - - [AddCommentToCardRequest](doc//AddCommentToCardRequest.md) - - [AddLabelToCardRequest](doc//AddLabelToCardRequest.md) - - [AddListRequest](doc//AddListRequest.md) - - [Board](doc//Board.md) - - [Card](doc//Card.md) - - [CheckItem](doc//CheckItem.md) - - [Checklist](doc//Checklist.md) - - [Comment](doc//Comment.md) - - [Label](doc//Label.md) - - [ModelList](doc//ModelList.md) - - -## Documentation For Authorization - - -## api_key - -- **Type**: API key -- **API key parameter name**: api_key -- **Location**: HTTP header - - -## Author - -nadzeya.hutsko@canonical.com - diff --git a/frontend/external/testcases-api/analysis_options.yaml b/frontend/external/testcases-api/analysis_options.yaml deleted file mode 100644 index e69de29b..00000000 diff --git a/frontend/external/testcases-api/doc/AddBoardRequest.md b/frontend/external/testcases-api/doc/AddBoardRequest.md deleted file mode 100644 index 7660f29d..00000000 --- a/frontend/external/testcases-api/doc/AddBoardRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# testcases.model.AddBoardRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/AddCardRequest.md b/frontend/external/testcases-api/doc/AddCardRequest.md deleted file mode 100644 index 98d35fb9..00000000 --- a/frontend/external/testcases-api/doc/AddCardRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# testcases.model.AddCardRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**listId** | **String** | ID of the list where the card is located | [optional] -**boardId** | **String** | Id of the board where the card is located | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/AddChecklistRequest.md b/frontend/external/testcases-api/doc/AddChecklistRequest.md deleted file mode 100644 index ab77ee5e..00000000 --- a/frontend/external/testcases-api/doc/AddChecklistRequest.md +++ /dev/null @@ -1,18 +0,0 @@ -# testcases.model.AddChecklistRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] -**cardId** | **String** | Id of the card where checklist is located | [optional] -**boardId** | **String** | | [optional] -**checklistItems** | [**List**](CheckItem.md) | | [optional] [default to const []] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/AddCommentToCardRequest.md b/frontend/external/testcases-api/doc/AddCommentToCardRequest.md deleted file mode 100644 index 36af2035..00000000 --- a/frontend/external/testcases-api/doc/AddCommentToCardRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# testcases.model.AddCommentToCardRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**text** | **String** | Comment text | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/AddLabelToCardRequest.md b/frontend/external/testcases-api/doc/AddLabelToCardRequest.md deleted file mode 100644 index fe330581..00000000 --- a/frontend/external/testcases-api/doc/AddLabelToCardRequest.md +++ /dev/null @@ -1,15 +0,0 @@ -# testcases.model.AddLabelToCardRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**name** | **String** | | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/AddListRequest.md b/frontend/external/testcases-api/doc/AddListRequest.md deleted file mode 100644 index 91010eee..00000000 --- a/frontend/external/testcases-api/doc/AddListRequest.md +++ /dev/null @@ -1,17 +0,0 @@ -# testcases.model.AddListRequest - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**boardId** | **String** | | [optional] -**name** | **String** | | [optional] -**status** | **String** | List status | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/Board.md b/frontend/external/testcases-api/doc/Board.md deleted file mode 100644 index ee61dc32..00000000 --- a/frontend/external/testcases-api/doc/Board.md +++ /dev/null @@ -1,17 +0,0 @@ -# testcases.model.Board - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**name** | **String** | | -**status** | **String** | Board status | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/frontend/external/testcases-api/doc/BoardApi.md b/frontend/external/testcases-api/doc/BoardApi.md deleted file mode 100644 index b9e9b4d4..00000000 --- a/frontend/external/testcases-api/doc/BoardApi.md +++ /dev/null @@ -1,301 +0,0 @@ -# testcases.api.BoardApi - -## Load the API package -```dart -import 'package:testcases/api.dart'; -``` - -All URIs are relative to *http://localhost* - -Method | HTTP request | Description -------------- | ------------- | ------------- -[**addBoard**](BoardApi.md#addboard) | **POST** /board | Add a new board -[**deleteBoard**](BoardApi.md#deleteboard) | **DELETE** /board/{boardId} | Delete a board -[**getBoardById**](BoardApi.md#getboardbyid) | **GET** /board/{boardId} | Fetch a board by ID -[**getCardsOnBoard**](BoardApi.md#getcardsonboard) | **GET** /board/{boardId}/cards | Get all cards on the board -[**getListsOnBoard**](BoardApi.md#getlistsonboard) | **GET** /board/{boardId}/lists | Get all lists on the board -[**updateBoard**](BoardApi.md#updateboard) | **PUT** /board/{boardId} | Update an existent board - - -# **addBoard** -> String addBoard(addBoardRequest) - -Add a new board - -Create a new board. Here we specify board name, the status of the board is open. The response should contian of board ID - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final addBoardRequest = AddBoardRequest(); // AddBoardRequest | A new board description - -try { - final result = api_instance.addBoard(addBoardRequest); - print(result); -} catch (e) { - print('Exception when calling BoardApi->addBoard: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **addBoardRequest** | [**AddBoardRequest**](AddBoardRequest.md)| A new board description | - -### Return type - -**String** - -### Authorization - -[api_key](../README.md#api_key) - -### 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) - -# **deleteBoard** -> deleteBoard(boardId) - -Delete a board - -Permanently delete an existing board - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final boardId = 38400000-8cf0-11bd-b23e-10b96e4ef00d; // String | board Id to delete - -try { - api_instance.deleteBoard(boardId); -} catch (e) { - print('Exception when calling BoardApi->deleteBoard: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **boardId** | **String**| board Id to delete | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: Not defined - - **Accept**: Not defined - -[[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) - -# **getBoardById** -> Board getBoardById(boardId) - -Fetch a board by ID - -Returns a single board JSON representation - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final boardId = 123e4567-e89b-12d3-a456-426614174000; // String | ID of board to return - -try { - final result = api_instance.getBoardById(boardId); - print(result); -} catch (e) { - print('Exception when calling BoardApi->getBoardById: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **boardId** | **String**| ID of board to return | - -### Return type - -[**Board**](Board.md) - -### Authorization - -[api_key](../README.md#api_key) - -### 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) - -# **getCardsOnBoard** -> List getCardsOnBoard(boardId) - -Get all cards on the board - -Returns an array of cards on the board - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final boardId = 123e4567-e89b-12d3-a456-426614174000; // String | ID of board to return - -try { - final result = api_instance.getCardsOnBoard(boardId); - print(result); -} catch (e) { - print('Exception when calling BoardApi->getCardsOnBoard: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **boardId** | **String**| ID of board to return | - -### Return type - -[**List**](Card.md) - -### Authorization - -[api_key](../README.md#api_key) - -### 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) - -# **getListsOnBoard** -> List getListsOnBoard(boardId) - -Get all lists on the board - -Returns an array of lists on the board - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final boardId = 123e4567-e89b-12d3-a456-426614174000; // String | ID of board to return - -try { - final result = api_instance.getListsOnBoard(boardId); - print(result); -} catch (e) { - print('Exception when calling BoardApi->getListsOnBoard: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **boardId** | **String**| ID of board to return | - -### Return type - -[**List**](List.md) - -### Authorization - -[api_key](../README.md#api_key) - -### 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) - -# **updateBoard** -> updateBoard(boardId, board) - -Update an existent board - -With this method we should be able to update board name and status (and maybe id). If we close the board here, the cards and lists on it should also be closed - -### Example -```dart -import 'package:testcases/api.dart'; -// TODO Configure API key authorization: api_key -//defaultApiClient.getAuthentication('api_key').apiKey = 'YOUR_API_KEY'; -// uncomment below to setup prefix (e.g. Bearer) for API key, if needed -//defaultApiClient.getAuthentication('api_key').apiKeyPrefix = 'Bearer'; - -final api_instance = BoardApi(); -final boardId = 123e4567-e89b-12d3-a456-426614174000; // String | ID of board to return -final board = Board(); // Board | Update an existent board - -try { - api_instance.updateBoard(boardId, board); -} catch (e) { - print('Exception when calling BoardApi->updateBoard: $e\n'); -} -``` - -### Parameters - -Name | Type | Description | Notes -------------- | ------------- | ------------- | ------------- - **boardId** | **String**| ID of board to return | - **board** | [**Board**](Board.md)| Update an existent board | - -### Return type - -void (empty response body) - -### Authorization - -[api_key](../README.md#api_key) - -### HTTP request headers - - - **Content-Type**: application/json - - **Accept**: Not defined - -[[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) - diff --git a/frontend/external/testcases-api/doc/Card.md b/frontend/external/testcases-api/doc/Card.md deleted file mode 100644 index 20884b0a..00000000 --- a/frontend/external/testcases-api/doc/Card.md +++ /dev/null @@ -1,22 +0,0 @@ -# testcases.model.Card - -## Load the model package -```dart -import 'package:testcases/api.dart'; -``` - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**id** | **String** | | -**name** | **String** | | -**listId** | **String** | ID of the list where the card is located | -**boardId** | **String** | | -**status** | **String** | List status | -**checklistsIds** | **List** | | [optional] [default to const []] -**labels** | [**List