Closed tciuro closed 9 years ago
Note this may be a limitation in API Blueprint itself. While it is possible to have multiple responses with the same status code every one should be preceded by a request section.
@zdne indeed, it's possible and gets rendered properly. Thanks!
+1 I'm so looking forward to support multiple responses with same http status code
It would be awesome if an API section could specify more than one response with the same status code and label it to differentiate it.
For example, the following API could return two different payloads based on the parameter used:
If I call
/things/something?foo=true
it may return:If I call
/things/something?bar="abc"
it may return:I'd like to specify two
Response
sections:This way it would be clear what response payload is associated with each parameter.