From e9f8da070823f8e7fbb74446cd331ff2d7324d9a Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 5 Sep 2017 15:23:17 +0300 Subject: api: swagger and /swagger-ui.html --- juick-api/src/main/java/com/juick/api/controllers/Messages.java | 3 +++ .../src/main/java/com/juick/api/controllers/MessengerWebhook.java | 2 ++ juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java | 2 ++ juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java | 2 ++ 4 files changed, 9 insertions(+) (limited to 'juick-api/src/main/java/com/juick/api/controllers') diff --git a/juick-api/src/main/java/com/juick/api/controllers/Messages.java b/juick-api/src/main/java/com/juick/api/controllers/Messages.java index b11c39c5..3f3c9959 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/Messages.java +++ b/juick-api/src/main/java/com/juick/api/controllers/Messages.java @@ -31,6 +31,7 @@ import org.springframework.http.MediaType; import org.springframework.http.ResponseEntity; import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; import javax.inject.Inject; import java.util.Collections; @@ -148,6 +149,7 @@ public class Messages { return NOT_FOUND; } + @ApiIgnore @RequestMapping("/messages/set_privacy") @ResponseBody public ResponseEntity doSetPrivacy( @@ -164,6 +166,7 @@ public class Messages { throw new HttpForbiddenException(); } + @ApiIgnore @RequestMapping("/messages/set_popular") public Status doSetPopular( @RequestParam(defaultValue = "0") int mid, diff --git a/juick-api/src/main/java/com/juick/api/controllers/MessengerWebhook.java b/juick-api/src/main/java/com/juick/api/controllers/MessengerWebhook.java index e0bbc698..fa57c017 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/MessengerWebhook.java +++ b/juick-api/src/main/java/com/juick/api/controllers/MessengerWebhook.java @@ -25,6 +25,7 @@ import org.slf4j.LoggerFactory; import org.springframework.http.HttpStatus; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.*; +import springfox.documentation.annotations.ApiIgnore; import javax.inject.Inject; import java.io.IOException; @@ -34,6 +35,7 @@ import java.nio.charset.StandardCharsets; /** * Created by vitalyster on 27.03.2017. */ +@ApiIgnore @RestController public class MessengerWebhook { private static Logger logger = LoggerFactory.getLogger(MessengerWebhook.class); diff --git a/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java b/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java index 82622652..91a617b4 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java +++ b/juick-api/src/main/java/com/juick/api/controllers/SkypeEndpoint.java @@ -25,6 +25,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestController; +import springfox.documentation.annotations.ApiIgnore; import java.io.IOException; import java.io.InputStream; @@ -33,6 +34,7 @@ import java.nio.charset.StandardCharsets; /** * Created by vitalyster on 18.07.2016. */ +@ApiIgnore @RestController public class SkypeEndpoint { private static final Logger logger = LoggerFactory.getLogger(SkypeEndpoint.class); diff --git a/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java b/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java index 4496f6a3..ae436b22 100644 --- a/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java +++ b/juick-api/src/main/java/com/juick/api/controllers/TelegramWebhook.java @@ -31,6 +31,7 @@ import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestMethod; import org.springframework.web.bind.annotation.ResponseStatus; import org.springframework.web.bind.annotation.RestController; +import springfox.documentation.annotations.ApiIgnore; import javax.inject.Inject; import java.io.IOException; @@ -42,6 +43,7 @@ import java.util.List; /** * Created by vt on 24/11/2016. */ +@ApiIgnore @RestController public class TelegramWebhook { private static Logger logger = LoggerFactory.getLogger(TelegramWebhook.class); -- cgit v1.2.3