I am using swagger 2.0 I want definition model as similar below
/** * Definition * * @SWG\Definition( * definition="GroupPostData", * type="object", * @SWG\Property(property="name", type="string", description="group name"), * @SWG\Property(property="type", type="string", description="group type"), * @SWG\Property(property="status", type="integer",description="status active or inactive"), * @SWG\Property(property="description", type="string", description="name"), * @SWG\Property(property="created_by", type="string", description="group created by"), * @SWG\Property(property="updated_by", type="string", description="group updated by"), * ) */
Also I want to make following statements common
@SWG\Property(property="name", type="string", description="group name"), * @SWG\Property(property="type", type="string", description="group type"), * @SWG\Property(property="status", type="integer",description="status active or inactive"), * @SWG\Property(property="description", type="string", description="name"), * @SWG\Property(property="created_by", type="string", description="group created by"), * @SWG\Property(property="updated_by", type="string", description="group updated by"),
Currently i have put and post
/** * Definition * * @SWG\Definition( * definition="GroupPostData", * type="object", * @SWG\Property(property="name", type="string", description="group name"), * @SWG\Property(property="type", type="string", description="group type"), * @SWG\Property(property="status", type="integer",description="status active or inactive"), * @SWG\Property(property="description", type="string", description="name"), * @SWG\Property(property="created_by", type="string", description="group created by"), * @SWG\Property(property="updated_by", type="string", description="group updated by"), * ) */ /** * Definition * * @SWG\Definition( * definition="GroupPutData", * type="object", * @SWG\Property(property="name", type="string", description="group name"), * @SWG\Property(property="type", type="string", description="group type"), * @SWG\Property(property="description", type="string", description="name"), * @SWG\Property(property="status", type="integer",description="status active or inactive"), * @SWG\Property(property="updated_by", type="string", description="group updated by"), * ) */