Regan_API_SpringBoot 文档项目 Regan API 项目是基于注释自动生成api文档,很大缩短了开始与后期维护API接口文档的时间。Regan API 利用jdk提供的Doclet 类读取文档注释,可手动配置须要读取的文件,同时增长了读取过滤指定方法过滤等功能。前端
/** * 用户管理 * @action /user * @author zhangby * @date 2018/6/12 下午3:26 */ public class UserController extends Controller { /** * 用户登陆功 * @title 登陆接口 * @param username|用户名|string|必填 * @param password|密码|string|必填 * @resqParam code|用户名|String|必填 * @resqParam data|数据|object|非必填 * @resqParam msg|消息信息|String|必填 * @respBody {"code":"000","data":"","msg":"success"} * @requestType post,get * @author zhangby * @date 2018/6/12 下午4:23 */ public void login() { renderJson(Kv.create().set("code","000")); } }
软件架构说明 Regan API 基础项目基于 springboot 开发,前端基于飞冰开发的API接口文档管理项目。java