java-tutorials/spring-cloud-modules/spring-cloud-cli/groovy/restapi.groovy

6 lines
114 B
Groovy
Raw Normal View History

@RestController
@RequestMapping('/api')
class api {
@GetMapping('/get')
def get() { [message: 'Hello'] }
}