docs: document GET /api/geschichten?documentId= filter in OpenAPI spec #794
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Context
GET /api/geschichtenaccepts adocumentIdquery parameter that filters results to journeys containing that document (via a JPQL EXISTS subquery onJourneyItem). This filter was introduced as part of the journey editor feature (#750/#753).The parameter is currently not declared in the controller's OpenAPI annotations, so:
What needs to be done
In
GeschichteQueryController(or wherever theGET /api/geschichtenendpoint is declared), add@Parameter/@OperationOpenAPI annotations for thedocumentIdquery parameter, e.g.:After annotating, run
npm run generate:apiinfrontend/to regenerate the TypeScript types so the parameter becomes part of the typed client.Why this matters
Without documentation, the filter is only discoverable by reading the source. Future callers (e.g. a document detail page showing linked journeys) won't know to use it.