Problem/Motivation
The OpenAPI generators expose the endpoints but do not describe response schemas, query parameters or error responses in full. Consumers cannot generate a reliable client from the specification.
Proposed resolution
- Declare request and response schemas per resource plugin, including error shapes.
- Document query parameters (pagination, language, filters) with types and defaults.
- Add at least one example response per endpoint.
- Validate the generated specification against the OpenAPI 3 schema in CI.
Remaining tasks
Extend the generator base class and annotate the resource plugins.
User interface changes
Richer Swagger UI output.
API changes
None.
Issue fork myrest-3616432
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
sergeydruua commentedComment #6
sergeydruua commented