Class OpenApiConfiguration
java.lang.Object
nl.b3p.planmonitorwonen.api.configuration.OpenApiConfiguration
The parts of the OpenAPI documentation which are not generated by springdoc from the controllers and models: the
general description, the shared error responses, the example planregistratie and the enum values from the database.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringA valid planregistratie, used as example request body.static final Stringstatic final StringShared error responses, to reference with therefof an@ApiResponseannotation.static final StringTag for the endpoints only the web application needs, seeWEBAPP_TAG_DESCRIPTION.static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springdoc.core.customizers.OpenApiCustomizerenumValuesCustomizer(EnumValues enumValues) Sets the enum values read from the database on the model properties.io.swagger.v3.oas.models.OpenAPIopenAPI()
-
Field Details
-
UNAUTHORIZED
Shared error responses, to reference with therefof an@ApiResponseannotation.- See Also:
-
FORBIDDEN
- See Also:
-
NOT_FOUND
- See Also:
-
WEBAPP_TAG
Tag for the endpoints only the web application needs, seeWEBAPP_TAG_DESCRIPTION.- See Also:
-
WEBAPP_TAG_DESCRIPTION
- See Also:
-
PLANREGISTRATIE_EXAMPLE
- See Also:
-
PROBLEM_JSON
- See Also:
-
PLANREGISTRATIE_EXAMPLE_RESOURCE
A valid planregistratie, used as example request body. Checked to be valid by a unit test.- See Also:
-
-
Constructor Details
-
OpenApiConfiguration
public OpenApiConfiguration()
-
-
Method Details
-
openAPI
- Throws:
IOException
-
enumValuesCustomizer
@Bean @Profile("!test") public org.springdoc.core.customizers.OpenApiCustomizer enumValuesCustomizer(EnumValues enumValues) Sets the enum values read from the database on the model properties. This can't be done with@Schema(allowableValues)without duplicating the values of the database schema.
-