Created
October 2, 2020 15:53
-
-
Save jeffscottbrown/3738caaed70cf3b652d81e5d3689b7b4 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
| package demo | |
| import io.micronaut.http.annotation.Get | |
| import io.micronaut.http.annotation.Post | |
| import io.micronaut.http.client.annotation.Client | |
| @Client('http://localhost:8086') | |
| interface BaseballClient { | |
| @Get('/team') | |
| List<BaseballTeam> list() | |
| @Post('/team') | |
| BaseballTeam save(BaseballTeam team) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment