Polishing
Closes gh-4503
This commit is contained in:
committed by
Stephane Nicoll
parent
d4a7c09b4e
commit
da16d6d306
@@ -17,4 +17,4 @@ Example HTTP response:
|
||||
include::{generated}/health/http-response.adoc[]
|
||||
|
||||
Example HTTP response with `endpoints.health.sensitive=false`:
|
||||
include::{generated}/health/unsensitive/http-response.adoc[]
|
||||
include::{generated}/health/insensitive/http-response.adoc[]
|
||||
|
||||
@@ -37,7 +37,7 @@ include::{generated}/logfile/http-response.adoc[]
|
||||
|
||||
|
||||
=== /docs
|
||||
This endpoint (if available) contains HTML documemtation for the other endpoints. Its path
|
||||
This endpoint (if available) contains HTML documentation for the other endpoints. Its path
|
||||
can be "/docs" (if there is an existing home page) or "/" (otherwise, including if the
|
||||
HAL browser is not active).
|
||||
|
||||
|
||||
@@ -64,7 +64,7 @@ public class HealthEndpointDocumentation {
|
||||
@Test
|
||||
public void health() throws Exception {
|
||||
this.mockMvc.perform(get("/health").accept(MediaType.APPLICATION_JSON))
|
||||
.andExpect(status().isOk()).andDo(document("health/unsensitive"));
|
||||
.andExpect(status().isOk()).andDo(document("health/insensitive"));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user