in support/camel-k-itests-support/camel-k-itests-runtime-inspector/src/main/java/org/apache/camel/k/runtime/support/RuntimeInspector.java [57:72]
public JsonObject inspect() {
return Json.createObjectBuilder()
.add("routes", Json.createArrayBuilder(
camelContext.getRoutes().stream()
.map(Route::getId)
.collect(Collectors.toList())))
.add("route-definitions", Json.createArrayBuilder(
camelContext.getCamelContextExtension().getContextPlugin(Model.class).getRouteDefinitions().stream()
.map(RouteDefinition::getId)
.collect(Collectors.toList())))
.add("rest-definitions", Json.createArrayBuilder(
camelContext.getCamelContextExtension().getContextPlugin(Model.class).getRestDefinitions().stream()
.map(RestDefinition::getId)
.collect(Collectors.toList())))
.build();
}