On Thursday, 24 November 2016 16:11:02 UTC+5:30, Arindam Mukherjee wrote:
>
>
>
> 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.
>

My bad, that doesn't work. Still awaiting the answer. 

-- 
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.

Reply via email to