aboutsummaryrefslogtreecommitdiff
path: root/juick-server/src/main/java/com/juick/server/api
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-05-17 23:18:40 +0300
committerGravatar Vitaly Takmazov2018-05-17 23:18:40 +0300
commitb17bf6508ef2b00fbd1ad04725ab457e0cf93831 (patch)
tree772661f08eba13623b72883bc660ec7787516668 /juick-server/src/main/java/com/juick/server/api
parent235bb5b9fc7072531f19cc25c3b07258198d86ec (diff)
tests refactoring
Diffstat (limited to 'juick-server/src/main/java/com/juick/server/api')
-rw-r--r--juick-server/src/main/java/com/juick/server/api/Users.java2
1 files changed, 2 insertions, 0 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 3e546eac..5f8e66b0 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
@@ -23,6 +23,7 @@ import com.juick.server.util.HttpNotFoundException;
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.*;
@@ -39,6 +40,7 @@ public class Users {
@Inject
private UserService userService;
+ @ApiOperation(value = "This returns user token", notes = "Pass login and password using HTTP Basic")
@RequestMapping(value = "/auth", method = RequestMethod.GET, produces = MediaType.APPLICATION_JSON_UTF8_VALUE)
public String getAuthToken() {
return userService.getHashByUID(UserUtils.getCurrentUser().getUid());