com.fastchar.openapi.annotation.AFastAPIHeader Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fastchar-openapi Show documentation
Show all versions of fastchar-openapi Show documentation
FastChar-OpenAPI is build openapi3.0 doc tool package.
The newest version!
package com.fastchar.openapi.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 接口请求的头部参数要求
*/
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
public @interface AFastAPIHeader {
/**
* 参数名称
* @return string
*/
String name();
/**
* 参数类型
*
* @return string
*/
String type() default "string";
/**
* 参数描述
* @return string
*/
String desc();
/**
* 参数是否必传
* @return boolean
*/
boolean required() default false;
/**
* 案例值
* @return string
*/
String example() default "";
/**
* 请求方法
* @return string
*/
String method() default "post";
}