diff options
author | Vitaly Takmazov | 2017-09-05 15:23:17 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2017-09-05 15:23:17 +0300 |
commit | e9f8da070823f8e7fbb74446cd331ff2d7324d9a (patch) | |
tree | b341db58615e19eccdd31435735c050cbae3e17c /juick-api/src/main/java/com/juick/api/controllers | |
parent | 8dae811e0ad78f15faa6431590a0a4ae66c7bc03 (diff) |
api: swagger and /swagger-ui.html
Diffstat (limited to 'juick-api/src/main/java/com/juick/api/controllers')
4 files changed, 9 insertions, 0 deletions
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<Status> 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); |