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

6 lines
114 B
Groovy

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