$ curl --location --request GET 'http://localhost:8080/health'
+diff --git a/docs.html b/docs.html index b9fd738..9bb1703 100644 --- a/docs.html +++ b/docs.html @@ -457,6 +457,7 @@ body.book #toc,body.book #preamble,body.book h1.sect0,body.book .sect1>h2{page-b
$ curl --location --request GET 'http://localhost:8080/health'
+Response
+{
+ "status": "UP",
+ "components": {
+ "db": {
+ "status": "UP",
+ "details": {
+ "database": "H2",
+ "validationQuery": "isValid()"
+ }
+ },
+ "diskSpace": {
+ "status": "UP",
+ "details": {
+ "total": 250438021120,
+ "free": 10172166144,
+ "threshold": 10485760,
+ "exists": true
+ }
+ },
+ "ping": {
+ "status": "UP"
+ }
+ }
+}
+
+ Note
+ |
+
+For security purpose you can display less by changing management.endpoint.health.show-details=always to never in application.properties
+ |
+
build/libs/api-spring-gradle-b2boost-0.0.1-SNAPSHOT.