当前位置:网站首页>Internship: the annotation under swagger involves the provision of interfaces
Internship: the annotation under swagger involves the provision of interfaces
2022-06-25 16:53:00 【ahyo】
knife4j:
Knife4j Is a can provide online API Document framework , Is based on Swagger Framework implementation
That is, compared with the previous Unused annotations :
@API
Has two properties :value、tags, Source code is as follows
//If tags is not used,this value will be used to set the tag for the operations described by this resource. Otherwise, the value will be ignored.
String value() default "";
//Tags can be used for logical grouping of operations by resources or any other qualifier.
String[] tags() default {
""};
@Api(tags = "list1")
@Api(tags = {
"list1","list2"})
@ApiOperation
Used in methods , It means a http Requested operation
There are too many attributes in the source code , Remember some commonly used
value—— Used for method description
notes—— Used to prompt content
tags—— You can regroup
@ApiParam
Use on methods or parameters , Field description ; Represents adding metadata to parameters ( Description or whether it is required, etc )
name– Parameter name
value– Parameter description
required– If required
@ApiModel()
Use on class , Represents a description of a class , Used for parameter receiving with entity class
value– Represents the object name
description– describe
@ApiModelProperty()
Use in method , Field , Said to model Property description or data operation change
value– Field description
name– Override property name
dataType– Override property type
required– If required
example– Illustrate with examples
hidden– hide
边栏推荐
猜你喜欢

【NLP】今年英语高考,CMU用重构预训练交出134高分,大幅超越GPT3

Day_ eleven

2022-06-17 advanced network engineering (x) is-is-general header, establishment of adjacency relationship, IIH message, DIS and pseudo node

内卷?泡沫?变革?十个问题直击“元宇宙”核心困惑丨《问Ta-王雷元宇宙时间》精华实录...

3年,我是如何涨薪到20k?

XShell连接VMWare虚拟机

二十九-使用RealSenseD435进行ORBSLAM2实时三维重建

3.条件概率与独立性

Day_ 18 hash table, generic

卡尔曼时间序列预测
随机推荐
Kalman filter meets deep learning: papers on Kalman filter and deep learning
【无标题】
揭秘GES超大规模图计算引擎HyG:图切分
Paper notes: lbcf: a large scale budget constrained causal forest algorithm
Day_ 16 set
一个 TDD 示例
Wechat official account server configuration
Ad domain login authentication
【精通高并发】深入理解C语言基础与汇编下的C语言
Xinlou: un voyage de sept ans de Huawei Sports Health
mysql使用过程中遇到的问题
Unity技术手册 - 生命周期内大小(Size over Lifetime)和速度决定大小(Size by Speed)
Redis系列——概述day1-1
Read mysql45 the next day
et al和etc区别
使用hbuilder X创建uniapp项目
1-8file sharing in VMWare
二十九-使用RealSenseD435进行ORBSLAM2实时三维重建
vscode插件自用
Android修行手册之Kotlin - 自定义View的几种写法