Commit Graph

2 Commits

Author SHA1 Message Date
9a46561716 chore: Add SPDX header
Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
2024-08-08 15:35:37 +02:00
e53bc51291 enh(api): renew API docs and setup API v2 (#615)
- 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



fix php 7.4 backwards compatibility



add tests for basic column creations



add a endpoint to request column objects



update openapi.json



make psalm return type more precise



fix psalm types recognition



fix route



cleanup debug info



Cleanup annotations



Hide sensitive data from showing to the users.



Refactor OCS-API-Controller to abstract class



Update lib/Db/Column.php




Update lib/Controller/ApiGeneralController.php




Update lib/Controller/ApiTablesController.php




Update lib/Controller/ApiTablesController.php




Update lib/Controller/MyOCSController.php




add specific endpoints to create different columns by type
- fix error handling in ColumnService.php



add basic integration tests for the api v2 table endpoints



fix api routes & update API docs



cypress fix typo



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



Setup skeleton to keep old api v1 and setup v2 with integration testing



try to use php8.1 for over all CI



add openapi.json



CI settings



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>
2023-11-13 13:57:41 +01:00