aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-03-26 14:54:32 +0300
committerGravatar Vitaly Takmazov2018-03-26 14:54:45 +0300
commitf7f09ae5792a8e21deacabca6290d503742abdf5 (patch)
treea8baf674c37553f0bdf2d9eeb1129dae4ec95113
parentd5c174d374f22dd55e4aecc5da76b13d6a8c5dd8 (diff)
api: do not include spring boot apis to swagger
-rw-r--r--juick-server/src/main/java/com/juick/server/configuration/ApiAppConfiguration.java3
1 files changed, 2 insertions, 1 deletions
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()));