Commit 2a1ec2a1 by Johannes Edmeier

Ignore the templated actuator endpoints

parent 8ace426e
......@@ -60,7 +60,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy {
List<Endpoint> endpoints = response.get_links()
.entrySet()
.stream()
.filter(e -> !e.getKey().equals("self"))
.filter(e -> !e.getKey().equals("self") && !e.getValue().isTemplated())
.map(e -> Endpoint.of(e.getKey(), e.getValue().getHref()))
.collect(Collectors.toList());
if (endpoints.isEmpty()) {
......@@ -77,6 +77,7 @@ public class QueryIndexEndpointStrategy implements EndpointDetectionStrategy {
@Data
static class EndpointRef {
private String href;
private boolean templated;
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment