I am able to display the actuator endpoints in my API through this config:
springdoc:
show-actuator: true
I am able to manage the http mappings of my /health endpoint with this config:
management:
endpoint:
health:
status:
http-mapping:
down: 500
fatal: 500
out-of-service: 500
With this config, Open Api UI says the return codes of my /health endpoint is 200 and 404. I would like it to say 500 too.
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.3.1.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<dependency>
<groupId>org.springdoc</groupId>
<artifactId>springdoc-openapi-ui</artifactId>
<version>1.5.3</version>
</dependency>