Package CIserver.rest
Class CIController
java.lang.Object
CIserver.rest.CIController
This class setups REST endpoints and handles different HTTP requests
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CIController
public CIController()
-
-
Method Details
-
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
Method for handling error requests- Returns:
- String response to indicate error
-