From ca83d0b9002eace0dfab35f3b6451298f676c1f2 Mon Sep 17 00:00:00 2001 From: Guido Lena Cota Date: Sat, 3 Nov 2018 16:57:55 +0100 Subject: [PATCH] Add documentation for /gateway/refresh endpoint --- docs/src/main/asciidoc/spring-cloud-gateway.adoc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/src/main/asciidoc/spring-cloud-gateway.adoc b/docs/src/main/asciidoc/spring-cloud-gateway.adoc index e94dd3b6..3f43b7fa 100644 --- a/docs/src/main/asciidoc/spring-cloud-gateway.adoc +++ b/docs/src/main/asciidoc/spring-cloud-gateway.adoc @@ -1127,8 +1127,8 @@ To retrieve the <> applied to r The response contains details of the GatewayFilter factories applied to any particular route. For each factory is provided the string representation of the corresponding object (e.g., `[SecureHeadersGatewayFilterFactory@fceab5d configClass = Object]`). Note that the `null` value is due to an imperfect implementation of the endpoint controller, for that it tries to set the order of the object in the filter chain, which is an information that does not apply to GatewayFilter factories. -=== Refreshing -TODO: POST `/gateway/refresh` +=== Refreshing the route cache +To clear the routes cache, make a `POST` request to `/actuator/gateway/refresh`. The request returns a 200 without response body. === Retrieving the routes defined in the gateway TODO: GET `/gateway/routes` @@ -1156,7 +1156,7 @@ The table below summarises the Spring Cloud Gateway actuator endpoints. Note tha |`refresh` |POST -| TODO +| Clears the routes cache. |`routes` |GET