Skip to content

Commit

Permalink
Merge pull request #959 from deepikaarora88/Dev-2.0
Browse files Browse the repository at this point in the history
token API for citizen
  • Loading branch information
deepikaarora88 authored Mar 1, 2024
2 parents 3d2b0ad + 9c9a9f5 commit 86f2459
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,16 @@ public ResponseEntity<TokenResponse> getToken(@Valid @RequestBody TokenRequest
return new ResponseEntity<>(tokenResponse,HttpStatus.OK);
}

@RequestMapping(value = "/token/citizen", method = RequestMethod.POST)
public ResponseEntity<TokenResponse> getTokenCitizen(@Valid @RequestBody TokenRequest tokenRequest) {

TokenRes tokenRes=userService.getToken(tokenRequest.getTokenReq());
ResponseInfo responseInfo=ResponseInfoFactory.createResponseInfoFromRequestInfo(tokenRequest.getRequestInfo(), null);
TokenResponse tokenResponse=TokenResponse.builder().responseInfo(responseInfo).tokenRes(tokenRes).build();

return new ResponseEntity<>(tokenResponse,HttpStatus.OK);
}



@RequestMapping(value = "/details", method = RequestMethod.POST)
Expand Down

0 comments on commit 86f2459

Please sign in to comment.