
io.codearte.accurest.stubrunner.boot.TriggerController.groovy Maven / Gradle / Ivy
package io.codearte.accurest.stubrunner.boot
import groovy.util.logging.Slf4j
import io.codearte.accurest.stubrunner.StubFinder
import org.springframework.beans.factory.annotation.Autowired
import org.springframework.http.HttpStatus
import org.springframework.http.ResponseEntity
import org.springframework.web.bind.annotation.PathVariable
import org.springframework.web.bind.annotation.RequestMapping
import org.springframework.web.bind.annotation.RestController
import static org.springframework.web.bind.annotation.RequestMethod.GET
import static org.springframework.web.bind.annotation.RequestMethod.POST
/**
* @author Marcin Grzejszczak
*/
@RestController
@RequestMapping("/triggers")
@Slf4j
class TriggerController {
private final StubFinder stubFinder
@Autowired
TriggerController(StubFinder stubFinder) {
this.stubFinder = stubFinder
}
@RequestMapping(method = POST, path = "/{label:.*}")
ResponseEntity
© 2015 - 2025 Weber Informatics LLC | Privacy Policy