Package com.netflix.genie.ui.controllers
Class UserRestController
java.lang.Object
com.netflix.genie.ui.controllers.UserRestController
@RestController
@RequestMapping(path="/ui/user",
produces="application/json")
public class UserRestController
extends Object
A helper
RestController
which allows the UI to request information about the current user.- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.fasterxml.jackson.databind.JsonNode
getUserInfo
(jakarta.servlet.http.HttpServletRequest request) Get the information about the current session user.
-
Constructor Details
-
UserRestController
public UserRestController()
-
-
Method Details
-
getUserInfo
@GetMapping public com.fasterxml.jackson.databind.JsonNode getUserInfo(jakarta.servlet.http.HttpServletRequest request) Get the information about the current session user.- Parameters:
request
- The http request to get a principal from- Returns:
- The user information as a JSON object
-