@RestController @RequestMapping(value="/v1.0") public class CitizenController extends ApiController
entityManager, fileStoreService, Log| Constructor and Description |
|---|
CitizenController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
getProfle(javax.servlet.http.HttpServletRequest request)
It will return user information belongs to identity Identity may be the user email or mobile number.
|
org.springframework.http.ResponseEntity<String> |
logout(javax.servlet.http.HttpServletRequest request,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
Clear the session
|
org.springframework.http.ResponseEntity<String> |
updateProfile(org.json.simple.JSONObject citizen)
This will update the profile of login user
|
apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, getMessage, getResponseHandler@RequestMapping(value="/citizen/getProfile",
method=GET,
produces="text/plain")
public org.springframework.http.ResponseEntity<String> getProfle(javax.servlet.http.HttpServletRequest request)
request - @RequestMapping(value="/citizen/logout",
method=POST)
public org.springframework.http.ResponseEntity<String> logout(javax.servlet.http.HttpServletRequest request,
org.springframework.security.oauth2.provider.OAuth2Authentication authentication)
request - @RequestMapping(value="/citizen/updateProfile",
method=PUT,
consumes="application/json")
public org.springframework.http.ResponseEntity<String> updateProfile(@RequestBody
org.json.simple.JSONObject citizen)
citizen - - As json ObjectCopyright © 2015–2017 eGovernments Foundation. All rights reserved.