diff options
author | 2018-09-12 15:29:37 +0300 | |
---|---|---|
committer | 2018-09-12 15:29:37 +0300 | |
commit | ddf8c3c0f07c0ca2fa6444c4511b61fc9a5c496c (patch) | |
tree | 486cc99823acb4159a3fd29bbc566dd69d3bdace /juick-server/src/main/java/com/juick/server/api/Users.java | |
parent | e97801561c497021a03317090b82d3c2568b1da7 (diff) |
static swagger docs
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api/Users.java')
-rw-r--r-- | juick-server/src/main/java/com/juick/server/api/Users.java | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/juick-server/src/main/java/com/juick/server/api/Users.java b/juick-server/src/main/java/com/juick/server/api/Users.java index 7f29a327..de5c05c2 100644 --- a/juick-server/src/main/java/com/juick/server/api/Users.java +++ b/juick-server/src/main/java/com/juick/server/api/Users.java @@ -28,7 +28,6 @@ import com.juick.service.MessagesService; import com.juick.service.UserService; import com.juick.server.util.UserUtils; import com.juick.server.util.WebUtils; -import io.swagger.annotations.ApiOperation; import org.springframework.http.MediaType; import org.springframework.web.bind.annotation.*; @@ -51,7 +50,6 @@ public class Users { @Inject private EmailService emailService; - @ApiOperation(value = "This returns user token", notes = "Pass login and password using HTTP Basic") @RequestMapping(value = "/api/auth", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE) public String getAuthToken() { return userService.getHashByUID(UserUtils.getCurrentUser().getUid()); @@ -143,7 +141,6 @@ public class Users { throw new HttpNotFoundException(); } - @ApiOperation(value = "This returns detailed user info") @GetMapping("/api/info/{uname}") public UserInfo getUserInfo(@PathVariable String uname) { User user = userService.getUserByName(uname); |