class UserRolesController {

	@ApiOperation(httpMethod = "GET", value = "API to get user role by id", response = Response.class,  produces = MediaType.APPLICATION_JSON_VALUE)
	@RequestMapping(path = "/details-by-id", method = RequestMethod.GET,  produces = MediaType.APPLICATION_JSON_VALUE)
	public ResponseEntity<Object> getUserRoleById(
		@ApiParam(value = "provide valid role id", required = true) @RequestParam(defaultValue="", name = "roleId", required = true) String roleId) {
		try {
			return ResponseUtils.buildSucessResponse(userRolesService.getUserRoleById(roleId));
		} catch (Exception exception) {
			log.error(UNEXPECTED_ERROR_OCCURRED, exception);
			return ResponseUtils.buildFailureResponse(new Exception(UNEXPECTED_ERROR_OCCURRED), exception.getMessage());
		}
	}

}