php 使用 swagger 自动生成 API 文档

时间:2025-03-17 14:02:16

/**

* @SWG/Resource (

* apiVersion = "版本号",

* basePath = "API地址",

* resourcePath ="项目名称",

* @SWG/Api (

* path = "API文件名",

* description = "功能描述",

* @SWG/Operation (

* method="POST", summary="操作描述", nickname = "显示名",

* @SWG/Parameter (name="参数名", description="参数说明", required = true, paramType = "query", type="string"),

* @SWG/ResponseMessage (code=200, message="返回说明")

* )

* )

*)

*/