Skip to content

Instantly share code, notes, and snippets.

@jwalgemoed jwalgemoed/restpoint.kt Secret
Last active Feb 5, 2018

Embed
What would you like to do?
@RestController
class PersonController(val databaseFromTheStoneAge: StoneAgeDB) {
@PostMapping("/person")
fun createPerson(@Valid @RequestBody person: Person) {
databaseFromTheStoneAge.save(person)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.