Class JHipsterOpenApiCustomizer
- java.lang.Object
-
- tech.jhipster.config.apidoc.customizer.JHipsterOpenApiCustomizer
-
- All Implemented Interfaces:
org.springdoc.core.customizers.OpenApiCustomiser,org.springframework.core.Ordered
public class JHipsterOpenApiCustomizer extends Object implements org.springdoc.core.customizers.OpenApiCustomiser, org.springframework.core.Ordered
A OpenApi customizer to setupOpenAPIwith JHipster settings.
-
-
Field Summary
Fields Modifier and Type Field Description static intDEFAULT_ORDERThe default order for the customizer.
-
Constructor Summary
Constructors Constructor Description JHipsterOpenApiCustomizer(JHipsterProperties.ApiDocs properties)Constructor for JHipsterOpenApiCustomizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcustomise(io.swagger.v3.oas.models.OpenAPI openAPI)intgetOrder()voidsetOrder(int order)Setter for the fieldorder.
-
-
-
Field Detail
-
DEFAULT_ORDER
public static final int DEFAULT_ORDER
The default order for the customizer.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
JHipsterOpenApiCustomizer
public JHipsterOpenApiCustomizer(JHipsterProperties.ApiDocs properties)
Constructor for JHipsterOpenApiCustomizer.
- Parameters:
properties- aJHipsterProperties.ApiDocsobject.
-
-
Method Detail
-
customise
public void customise(io.swagger.v3.oas.models.OpenAPI openAPI)
- Specified by:
customisein interfaceorg.springdoc.core.customizers.OpenApiCustomiser
-
setOrder
public void setOrder(int order)
Setter for the field
order.- Parameters:
order- a int.
-
getOrder
public int getOrder()
- Specified by:
getOrderin interfaceorg.springframework.core.Ordered
-
-