On Thursday, 24 November 2016 12:26:54 UTC+5:30, Arindam Mukherjee wrote:
>
> Some of my Rails APIs return an array of objects. How such a response be
> modeled in Swagger?
>
> Arindam
>
I found that this can be done using something like:
response :ok, V2::ApplicationController::html_status(:ok), [:my_model]
where :my_model defines the swagger model for each object in the array.
--
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.