====================== auto generate api document by using comment for yii2.
composer require chatfeed/yii2-doc "*"
"module"=>[
"doc" => [
"class" => "cfd\doc\Module",
"modelDescriptions"=>require __DIR__."/model_description.php",
"modelsMap"=>[
"\common\base_models\kds\\",
]
]
]
return [
"demo"=>[
["object","demo","模型"],
["integer","id","ID"],
["string","name","名称"],
["string","desc","描述"],
["integer","created_at","创建时间"],
["integer","updated_at","更新时间"],
]
];
Thanks yii2-fast-api