Last active
September 15, 2018 22:12
-
-
Save spati-java/0bdafee75dd59953db024a05a4ad468e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RestController("/api/v1/profiles") | |
public class ProfileController { | |
private ProfileService service; | |
@Autowired | |
public ProfileController(ProfileService service) { | |
this.service = service; | |
} | |
@PostMapping | |
public ResponseEntity createProfile( | |
@RequestBody ProfileDocument document) throws Exception { | |
return | |
new ResponseEntity(service.createProfileDocument(document), HttpStatus.CREATED); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment