org.molgenis.omx.mobile.login
Class LoginController
java.lang.Object
org.molgenis.omx.mobile.login.LoginController
@Controller
@RequestMapping(value="/mobile")
public class LoginController
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LoginController
@Autowired
public LoginController(Database database)
login
@RequestMapping(value="/login",
method=POST,
consumes="application/json",
produces="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<LoginResponse> login(@RequestBody
LoginRequest request)
throws Exception
- Login to molgenis.
If login failed, the LoginResponse contains an error message
- Parameters:
request -
- Returns:
-
- Throws:
Exception
isUserAuthenticated
@RequestMapping(value="/authenticated",
method=GET,
produces="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<Boolean> isUserAuthenticated()
logout
@RequestMapping(value="/logout",
method=GET)
@ResponseBody
public void logout()
throws Exception
- Throws:
Exception
Copyright © 2013. All Rights Reserved.