Forum Discussion
RonRatovsky
Staff
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
5 years agoNew Contributor
Thanks for your reply.
Do you think such an endpoint design breaks any principles of good REST APIs?
- RonRatovsky5 years agoStaff
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.
Related Content
- 4 years ago
Recent Discussions
- 9 days ago
- 15 days ago