From f7f09ae5792a8e21deacabca6290d503742abdf5 Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Mon, 26 Mar 2018 14:54:32 +0300 Subject: api: do not include spring boot apis to swagger --- .../main/java/com/juick/server/configuration/ApiAppConfiguration.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'juick-server/src/main/java') diff --git a/juick-server/src/main/java/com/juick/server/configuration/ApiAppConfiguration.java b/juick-server/src/main/java/com/juick/server/configuration/ApiAppConfiguration.java index 8d533f05..2dd74b19 100644 --- a/juick-server/src/main/java/com/juick/server/configuration/ApiAppConfiguration.java +++ b/juick-server/src/main/java/com/juick/server/configuration/ApiAppConfiguration.java @@ -17,6 +17,7 @@ package com.juick.server.configuration; +import com.google.common.base.Predicates; import com.juick.configuration.DataConfiguration; import com.juick.server.WebsocketManager; import com.juick.server.api.rss.MessagesView; @@ -63,7 +64,7 @@ public class ApiAppConfiguration implements WebMvcConfigurer, WebSocketConfigure public Docket api() { return new Docket(DocumentationType.SWAGGER_2) .select() - .apis(RequestHandlerSelectors.any()) + .apis(Predicates.not(RequestHandlerSelectors.basePackage("org.springframework.boot"))) .paths(PathSelectors.any()).build().apiInfo(new ApiInfo("Juick API", "Juick REST API Documentation", "2.0", "https://juick.com/help/tos", null, "AGPLv3", "https://www.gnu.org/licenses/agpl-3.0.html", Collections.emptyList())); -- cgit v1.2.3