@RestController @RequestMapping(value="/v1.0") public class CommonController extends ApiController
entityManager, fileStoreService, Log| Constructor and Description |
|---|
CommonController() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.http.ResponseEntity<String> |
activate(String userName,
String activationCode)
This will activate the user account.
|
org.springframework.http.ResponseEntity<String> |
deviceLog(javax.servlet.http.HttpServletRequest request)
This will record log of the current user
|
org.springframework.http.ResponseEntity<String> |
passwordRecover(javax.servlet.http.HttpServletRequest request)
This will send an email/sms to citizen with link.
|
org.springframework.http.ResponseEntity<String> |
register(org.json.simple.JSONObject citizen)
This will create a new citizen along with it will capture their device also.
|
org.springframework.http.ResponseEntity<String> |
sendOTP(javax.servlet.http.HttpServletRequest request)
This will send OTP to the user
|
apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, apiExceptionHandler, getMessage, getResponseHandler@RequestMapping(value="/createCitizen",
method=POST,
consumes="application/json")
@ResponseBody
public org.springframework.http.ResponseEntity<String> register(@RequestBody
org.json.simple.JSONObject citizen)
Citizen - - As a json object@RequestMapping(value="/activateCitizen",
method=POST)
public org.springframework.http.ResponseEntity<String> activate(@RequestParam(value="userName")
String userName,
@RequestParam(value="activationCode")
String activationCode)
String - userNameString - activationCode@RequestMapping(value="/recoverPassword",
method=POST)
public org.springframework.http.ResponseEntity<String> passwordRecover(javax.servlet.http.HttpServletRequest request)
request - @RequestMapping(value="/sendOTP",
method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<String> sendOTP(javax.servlet.http.HttpServletRequest request)
request - @RequestMapping(value="/addDeviceLog",
method=POST)
@ResponseBody
public org.springframework.http.ResponseEntity<String> deviceLog(javax.servlet.http.HttpServletRequest request)
request - Copyright © 2015–2017 eGovernments Foundation. All rights reserved.