例子:
myapp目录下的MyCode.java

/**
 *
 * @api {get} /company/list 获取公司信息
 * @apiName 获取公司列表
 * @apiGroup All
 * @apiVersion 0.1.0
 * @apiDescription 接口详细描述
 *
 * @apiParam {int} pageNum分页大小
 *
 * @apiSuccess {String} code 结果码
 * @apiSuccess {String} msg 消息说明
 * @apiSuccess {Object} data 分页数据封装
 * @apiSuccess {int} data.count 总记录数
 * @apiSuccess {Object[]} data.list 分页数据对象数组
 * @apiSuccessExample Success-Response:
 *  HTTP/1.1 200 OK
 * {
 *     code:0,
 *     msg:'success',
 *     data:{}
 *  }
 *
 *  @apiError All 对应<code>id</code>的用户没找到 asdfasdf
 *  @apiErrorExample {json} Error-Response:
 *  HTTP/1.1 404 Not Found
 *  {
 *      code:1,
 *      msg:'user not found',
 *  }
 *
 * @param param
 * @return
 * @throws Exception
 */
@Deprecated
public interface MyCode {
    void a();
}

 

生成html文档

apidoc -i myapp/ -o apidoc/

 

相关文章:

  • 2021-04-01
  • 2021-08-27
  • 2022-02-06
  • 2021-11-27
  • 2021-04-25
  • 2022-12-23
  • 2022-12-23
  • 2022-03-03
猜你喜欢
  • 2022-12-23
  • 2021-12-18
  • 2022-12-23
  • 2021-10-01
  • 2022-01-29
  • 2022-12-23
  • 2021-12-16
相关资源
相似解决方案