create a new user with an auto-generated id and email and name as passed values . attention : the better way to access a post request it 's using a wrapper as @requestbody parameter , take a look at http://stackoverflow.com/questions/5726583/spring-rest-multiple-requestbody-parameters-possible concode_field_sep UserService libraryService concode_field_sep List<User> getAllUsers concode_elem_sep void handleBadRequests concode_elem_sep String delete concode_elem_sep String updateName
ResponseEntity < User > function ( @ RequestBody User arg0 ) { User loc0 = libraryService . create ( arg0 ) ; return new ResponseEntity < User > ( loc0 , HttpStatus . CREATED ) ; }