Я использую Swagger 2.0. Мне нужна модель определения, подобная приведенной ниже.
/**
* 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"),
* )
*/
Также я хочу сделать следующие общие утверждения
@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="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"),
* )
*/