-
-
Save marrek13/2722506542a473133ad10a4ba3d3f6c7 to your computer and use it in GitHub Desktop.
This file contains 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
@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