Don't include REST methods and schemas in OpenAPI when corresponding actions are not available according to the dab config #2118
Closed
Benjamin Talmard (Benjiiim)
started this conversation in
Ideas
Replies: 3 comments
|
Upvote all of this! |
0 replies
|
Related to #1771. Respecting rest.methods from tables and views when generating the OpenAPI document might help here. |
0 replies
|
We will have a big push to polish our OpenAPI output soon. #2368 |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Today, the OpenAPI generated by DAB is including actions that are not supported by the API.
Why not filtering out these methods?
For example, when using the following entity configuration:
We can expect not to see the PUT, PATCH, DELETE or POST verbs in the OpenAPI document.
Corresponding schemas (I'm thinking about NoAutoPK and NoPK for example) might be filtering out as well.
That would make the OpenAPI more production-ready, which can be useful to generate a better Swagger documentation or to more easily import the API in Azure API Management for example.
All reactions