-
-
Save marrek13/1820bb97ac58fe4efaf8d5e880bb59bd 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
@RestController("colorsApiControllerV1_0_0") | |
@ApiVersion(ApiVersionValue.V1_0_0) | |
class ColorsApiController : ColorsApi { | |
override suspend fun getColors(): ResponseEntity<List<Color>> = | |
ResponseEntity.ok( | |
listOf( | |
Color("V1.0.0 list color", "#FF0000") | |
) | |
) | |
override suspend fun getColor(): ResponseEntity<Color> = | |
ResponseEntity.ok(Color("V1.0.0 single color", "#FF0000")) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment