Not sure, I'm fully understanding your question but modelling a returned
array of objects in Swagger is simply something like
responses:
200:
description: OK
schema:
type: array
items:
"$ref/definitions/<object>"
where <object> would point to a complex type in your data definitions
On Thursday, 24 November 2016 06:56:54 UTC, Arindam Mukherjee wrote:
>
> Some of my Rails APIs return an array of objects. How such a response be
> modeled in Swagger?
>
> Arindam
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.