Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
enh(api): renew API docs and setup API v2
- adjust setup to make use of the new API extractor - add all needed types to extract API v1 - setup structure and first endpoints for API v2 add selection column description and test it Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> fix php 7.4 backwards compatibility Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> add tests for basic column creations Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> add a endpoint to request column objects Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> update openapi.json Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> make psalm return type more precise Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> fix psalm types recognition Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> fix route Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> cleanup debug info Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Cleanup annotations Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Hide sensitive data from showing to the users. Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Refactor OCS-API-Controller to abstract class Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Update lib/Db/Column.php Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Florian <florian.steffens@nextcloud.com> Update lib/Controller/ApiGeneralController.php Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Florian <florian.steffens@nextcloud.com> Update lib/Controller/ApiTablesController.php Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Florian <florian.steffens@nextcloud.com> Update lib/Controller/ApiTablesController.php Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Florian <florian.steffens@nextcloud.com> Update lib/Controller/MyOCSController.php Co-authored-by: Julius Härtl <jus@bitgrid.net> Signed-off-by: Florian <florian.steffens@nextcloud.com> add specific endpoints to create different columns by type - fix error handling in ColumnService.php Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> add basic integration tests for the api v2 table endpoints Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> fix api routes & update API docs Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> cypress fix typo Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> initial new API setup - introduce api v2 - organise API methods in own controllers - Add virtual version tag to the names in docs - use OCS routes and controllers Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Setup skeleton to keep old api v1 and setup v2 with integration testing Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> try to use php8.1 for over all CI Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> add openapi.json Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> CI settings Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com> Make use of automated API doc generating - add annotations for API routed methods - refactor to ensure type safety - add psalm types and usage - correct API return codes ⚡️breaking changes ⚡️ Signed-off-by: Florian Steffens <florian.steffens@nextcloud.com>
- Loading branch information