feat(server): tests API, contrats OpenAPI et vérification d'intégration (ticket #53)

Ajoute la spécification openapi.yaml documentant les 12 endpoints
réels du serveur (health, auth, sync, shares), les tests API auth
(test/auth_api_test.dart couvrant register/login/logout) et la
checklist de vérification d'intégration (docs/integration-checklist.md).
dart analyze clean, dart test 29/29 vert. Dernier ticket du chantier
serveur (#47 à #53), tous terminés.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
2026-07-19 15:56:29 +02:00
parent 00c83921c9
commit c1dce3cae7
4 changed files with 993 additions and 0 deletions

View File

@ -125,6 +125,15 @@ without failing the whole request. Accepting a share creates a new
`409` for revoked or already answered shares, while missing shares or recipients
return `404`.
## API Contract
The current HTTP contract is documented in [`openapi.yaml`](openapi.yaml). It
covers health, authentication, sync and targeted sharing endpoints implemented
by this server package.
To inspect it, paste the file into <https://editor.swagger.io/> or open it with
a local OpenAPI-compatible viewer.
## Docker Deployment
Ticket #52 adds Docker packaging for a headless Linux deployment. TLS is not