Skip to content

Instantly share code, notes, and snippets.

@marrek13
Created October 14, 2022 12:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marrek13/2722506542a473133ad10a4ba3d3f6c7 to your computer and use it in GitHub Desktop.
Save marrek13/2722506542a473133ad10a4ba3d3f6c7 to your computer and use it in GitHub Desktop.
@RequestMapping("\${api.base-path:}")
@Validated
interface ColorsApi {
@RequestMapping(
method = [RequestMethod.GET],
value = ["/colors"],
produces = ["application/json"]
)
suspend fun getColors(): ResponseEntity<List<Color>>
@RequestMapping(
method = [RequestMethod.GET],
value = ["/color"],
produces = ["application/json"]
)
suspend fun getColor(): ResponseEntity<Color>
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment