Skip to content

Instantly share code, notes, and snippets.

@diegolirio
Last active November 15, 2021 15:05
Show Gist options
  • Select an option

  • Save diegolirio/cdb57a8c5902cc25af7d0ffc5f7d37de to your computer and use it in GitHub Desktop.

Select an option

Save diegolirio/cdb57a8c5902cc25af7d0ffc5f7d37de to your computer and use it in GitHub Desktop.
@Path("/customers")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
class CustomerEntrypoint {
@POST
fun created(customer: CustomerEntity): CustomerEntity {
customer.persist()
return customer
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment