Solved
Forum Discussion
RonRatovsky
Moderator
At the moment, the OpenAPI does not allow separating responses based on query parameters.
There should be an open issue for it at https://github.com/OAI/OpenAPI-Specification/, though I can't find it at the moment.
Olumide
4 years agoNew Contributor
Thanks for your reply.
Do you think such an endpoint design breaks any principles of good REST APIs?
- RonRatovsky4 years agoModerator
I do not. Just because something is not supported by the spec, it doesn't mean it's a bad practice. Whether it makes sense in your situation really depends on the use case.