diff --git a/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java b/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java index 140e26b072..68e7444d67 100644 --- a/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java +++ b/core/src/main/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptor.java @@ -15,7 +15,6 @@ import java.util.stream.Collectors; import java.util.stream.Stream; -import static com.predic8.membrane.core.interceptor.Outcome.CONTINUE; import static com.predic8.membrane.core.openapi.serviceproxy.OpenAPIPublisher.PATH; import static java.lang.String.valueOf; @@ -46,9 +45,6 @@ public Outcome handleRequest(Exchange exc) throws Exception { return publisher.handleSwaggerUi(exc); } - - - return publisher.handleOverviewOpenAPIDoc(exc, router, log); } diff --git a/core/src/test/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptorTest.java b/core/src/test/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptorTest.java index befbec2945..a13951f813 100644 --- a/core/src/test/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptorTest.java +++ b/core/src/test/java/com/predic8/membrane/core/openapi/serviceproxy/ApiDocsInterceptorTest.java @@ -119,13 +119,4 @@ private void checkHasValidProblemJSON(Exchange exc) throws IOException { assertTrue(json.has("title")); assertTrue(json.has("type")); } - - // TODO fix - @Test - public void getYaml() throws Exception { - exc.getRequest().setUri("/api-docs/fruit-shop-api-v2-0-0"); - interceptor.handleRequest(exc); - assertTrue(exc.getResponse().getBodyAsStringDecoded().contains("html")); - } - } \ No newline at end of file