Annotation Interface ApiOperationSupport


@Target(METHOD) @Retention(RUNTIME) @Documented public @interface ApiOperationSupport

Help Java development engineers build powerful Swagger documents

This annotation belongs to the enhanced annotation of @ApiOperation, which is unique to swagger-bootstrap-ui and provides Swagger's extended attributes.

从以下版本开始:
1.9.4
作者:
xiaoymin@foxmail.com 2019/06/06 19:26
  • 元素详细资料

    • order

      int order
      Sort Fields
      返回:
      排序
      默认值:
      0
    • author

      String author
      author
      返回:
      开发者
      默认值:
      ""
    • authors

      String[] authors
      作者,提供数组形式以展示多个,会和author()进行合并展示

      issues: Gitee#I6SZMK

      返回:
      作者
      从以下版本开始:
      v4.2.0
      默认值:
      {}
    • params

      A list of DynamicParameters available to the API operation. Note: 自Knife4j 4.0版本起,放弃维护此属性值,建议开发者建实体类
      返回:
      动态类声明
      默认值:
      @com.github.xiaoymin.knife4j.annotations.DynamicParameters
    • responses

      动态构建response响应参数说明 Note: 自Knife4j 4.0版本起,放弃维护此属性值,建议开发者建实体类
      返回:
      响应类动态说明
      从以下版本开始:
      1.9.5
      默认值:
      @com.github.xiaoymin.knife4j.annotations.DynamicResponseParameters
    • ignoreParameters

      String[] ignoreParameters
      请求忽略参数数组
      返回:
      过滤参数数组
      从以下版本开始:
      1.9.5
      • 例如新增接口时,某实体类不需要显示Id,即可使用该属性对参数进行忽略.ignoreParameters={"id"}
      • 如果存在多个层次的参数过滤,则使用名称.属性的方式,例如 ignoreParameters={"uptModel.id","uptModel.uptPo.id"},其中uptModel是实体对象参数名称,id为其属性,uptPo为实体类,作为uptModel类的属性名称
      • 如果参数层级只是一级的情况下,并且参数是实体类的情况下,不需要设置参数名称,直接给定属性值名称即可.
      Note: 自Knife4j 4.0版本起,放弃维护此属性值,建议开发者建实体类
      默认值:
      {}
    • includeParameters

      String[] includeParameters
      请求接口包含的参数数组,和ignoreParameters属性对立 Note: 自Knife4j 4.0版本起,放弃维护此属性值,建议开发者建实体类
      返回:
      包含参数数组
      从以下版本开始:
      2.0.3
      默认值:
      {}