You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I saw this issues was marked as won't fix here #15, but I think there are valid uses cases for it and Spring supports it. Springfox also supported this as well.
For example
// handle save draft of audit@PatchMapping(value = "/audits/{auditId}", params = "action=saveDraft")
publicAuditDtosaveDraft(@PathVariableintauditId, @RequestBodyAuditPatchRequestauditPatchRequest) {
}
// save audit and mark it as reviewed@PatchMapping(value = "/audits/{auditId}", params = "action=markReviewed")
publicAuditDtomarkedReviewed(@PathVariableintauditId, @RequestBodyAuditPatchRequestauditPatchRequest) {
}
// marks audit as complete, but makes no other changes@PatchMapping(value = "/audits/{auditId}", params = "action=markComplete")
publicAuditDtomarkComplete(@PathVariableintauditId) {
}
I would expect to see these endpoints generated in the documentation:
I'm open to an alternate way to do handle such endpoints if you can suggest one along with constructive criticism as to why may not be good REST API practice. Keep up the good work.
The text was updated successfully, but these errors were encountered:
With OpenAPI 3, you can not have 3 endpoints for the same path:
You will have one endpoint and only one OpenAPI description.
paths:
'/audits/{auditId}':
patch:
What you can do is add the @Operation annotation on the top of one of the methods, where you add the OpenAPI documentation of the merged OpenAPI description of all your other methods as well and add the @Hidden annotation on the two others
I saw this issues was marked as won't fix here #15, but I think there are valid uses cases for it and Spring supports it. Springfox also supported this as well.
For example
I would expect to see these endpoints generated in the documentation:
PATCH /audits/{auditId}?action=saveDraft
PATCH /audits/{auditId}?action=markReviewed
PATCH /audits/{auditId}?action=markComplete
I'm open to an alternate way to do handle such endpoints if you can suggest one along with constructive criticism as to why may not be good REST API practice. Keep up the good work.
The text was updated successfully, but these errors were encountered: