@Test public void shouldReturnEndpointsThatAreUnderPath() throws Exception { service = new SwaggerService(registry); final String expected = createData(); final Response response = service.apiDocs(request).get(); Assert.assertEquals(OK, response.getStatus()); Assert.assertEquals(expected, response.getRawContent()); }
public ComposableFuture<Response> apiDocs(final Request request) { return ComposableFutures.fromValue(buildJsonResponse(buildSwagger(request))); }
SwaggerService implements Service { public ComposableFuture<Response> apiDocs(final Request request) { return ComposableFutures.fromValue(buildJsonResponse(buildSwagger(request))); } }
SwaggerService implements Service { public ComposableFuture<Response> apiDocs(final Request request) { return ComposableFutures.fromValue(buildJsonResponse(buildSwagger(request))); } @SafeVarargs  SwaggerService(final ServiceRegistryView serviceRegistry, final Class<? extends Service>... ignoredServices); }
SwaggerService implements Service { public ComposableFuture<Response> apiDocs(final Request request) { return ComposableFutures.fromValue(buildJsonResponse(buildSwagger(request))); } @SafeVarargs  SwaggerService(final ServiceRegistryView serviceRegistry, final Class<? extends Service>... ignoredServices); ComposableFuture<Response> apiDocs(final Request request); }
SwaggerService implements Service { public ComposableFuture<Response> apiDocs(final Request request) { return ComposableFutures.fromValue(buildJsonResponse(buildSwagger(request))); } @SafeVarargs  SwaggerService(final ServiceRegistryView serviceRegistry, final Class<? extends Service>... ignoredServices); ComposableFuture<Response> apiDocs(final Request request);  }