Open JerryNixon opened 1 week ago
Great stuff! Thanks
I don't know if it makes sense to add the following which is already covered in #1771 ?
Honor methods property for entities backed by tables/views Today, Open API documentation includes methods that are not listed in the rest.methods property of the entity. Honoring the rest.methods property would allow the simplification of the Open API endpoint.
There are several issues around OpenAPI necessary to consider it fully implemented.
1. Obey "request-body-strict"
Today, the openAPI includes object types that are not required by the endpoint. See #1838
2. Export role-specific OpenAPI document in the CLI
Today, the OpenAPI defaults to every CRUD operation, even those not enabled or allowed.
Support syntax like:
dab export --openapi:<role-name>
3. Allow role-specific OpenAPI documents in the configuration
Today, the only OpenAPI is the default OpenAPI, this provides custom documents without engine overhead.
4. Support role-name in OpenAPI endpoint
Today, the OpenAPI endpoint returns only one document. A custom route can support specific roles.
Support syntax like:
https://server/api/openapi/anonymous
Allow the old syntax
https://server/api/openapi
to indicatedefault
.5. Include object descriptions in the OpenAPI document.
Today, these values are not included - neither are they available through the configuration. See #2262