How I can define response like this?
array(
"status": 1,
"msg": "some message",
"results": array(myobject, myobject, etc..)
);
Now I have defined:
* @SWG\Response(
* response=200,
* description="List of my objects",
* @SWG\Schema(
* type="array",
* @SWG\Items(ref="#/definitions/myobject")
* ),
* ),
Please help
Like this:
/**
* @SWG\Response(
* response=200,
* description="List of my objects",
* @SWG\Schema(
* type="object",
* @SWG\Property(property="status", type="integer"),
* @SWG\Property(property="msg", type="string", description="some message"),
* @SWG\Property(property="results", type="array",
* @SWG\Items(ref="#/definitions/myobject")
* )
* )
* )
*/
Thanks a lot!
Most helpful comment
Like this: