Package CIserver.rest

Class CIController

java.lang.Object
CIserver.rest.CIController

@RestController public class CIController extends Object
This class setups REST endpoints and handles different HTTP requests
  • Constructor Details

    • CIController

      public CIController()
  • Method Details

    • testGet

      @GetMapping("/test") public org.springframework.http.ResponseEntity<String> testGet()
    • postPost

      @PostMapping("/push") public org.springframework.http.ResponseEntity<String> postPost(@RequestBody String requestBody) throws IOException
      Method for handling GitHub webhooks to download and test code
      Parameters:
      requestBody - GitHub's webhooks payload
      Returns:
      String response to indicate success/failure
      Throws:
      IOException
    • error

      @GetMapping("/error") public org.springframework.http.ResponseEntity<String> error()
      Method for handling error requests
      Returns:
      String response to indicate error