Last active
November 15, 2021 15:05
-
-
Save diegolirio/cdb57a8c5902cc25af7d0ffc5f7d37de to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| @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