Forum Discussion

Olumide's avatar
Olumide
New Contributor
4 years ago
Solved

Spec'ing an endpoint that returns different responses depending on params sent

I am new to openapi and am evaluating it in order to spec a REST API characterized by endpoints that return different(ly structured) responses depending on which query parameters are sent to the serv...
  • RonRatovsky's avatar
    4 years ago

    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.