I have two custom annotations which need to be created to be added on controller endpoints both have the same property @ApiImplicitParams swagger annotation.
For many endpoints i need to use ApiImplicitParams from both annotations but in this case since both have @ApiImplicitParams property hence only one of the @ApiImplicitParams from the two annotations is being used.
I want ApiImplicitParam from both the annotations to be used, how can i acheive this?
CustomAnnotation1
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@ApiImplicitParams({
@ApiImplicitParam(
name= "customannotation1",
value= "value",
datatype = "string",
paramtype = "header",
required= true
)})
public @interface CustomAnnotation1{
}
CustomAnnotation2
@Retention(RetentionPolicy.RUNTIME)
@Target({ElementType.METHOD})
@ApiImplicitParams({
@ApiImplicitParam(
name= "customannotation2",
value= "value",
datatype = "string",
paramtype = "header",
required= true
)})
public @interface CustomAnnotation2{
}