Is there a way to specify an entirely different response object for a RESTAPI (in Swagger) for a different specification of a query param?
e.g. URL : /A/B/C query param format=short response ... query param format=long response ... NOTES: Found this stack overflow thread: https://stackoverflow.com/questions/40495880/having-different-query-parameters-on-same-path-in-yaml So aparently it's not supported in swagger 2.0 spec. The original poster proposes a workaround, which is to define two different endpoints with the query params of significance shown with the URL: <baseURL>/path?filter1={value}&filter2={value}.....&filterN={value} Would this be a good practice or is there some other workaround that would be preferred? Thanks -- You received this message because you are subscribed to the Google Groups "Swagger" group. To unsubscribe from this group and stop receiving emails from it, send an email to swagger-swaggersocket+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.