Class UserEndpoint
java.lang.Object
io.goobi.viewer.api.rest.v1.authentication.UserEndpoint
REST endpoint providing user profile information and preferences for authenticated users.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the client IP address and, if a user is logged in, the current user's information.
-
Constructor Details
-
UserEndpoint
public UserEndpoint()
-
-
Method Details
-
getUserInfo
@Path("/current") @GET @Produces("application/json") @Consumes("application/x-www-form-urlencoded") public Response getUserInfo()Returns the client IP address and, if a user is logged in, the current user's information.When no user is authenticated, the
userfield is omitted from the response.- Returns:
- a
Responseobject containing aCurrentUserResponse
-