Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save jeffscottbrown/3738caaed70cf3b652d81e5d3689b7b4 to your computer and use it in GitHub Desktop.

Select an option

Save jeffscottbrown/3738caaed70cf3b652d81e5d3689b7b4 to your computer and use it in GitHub Desktop.
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