| 1 | package edu.ucsb.cs.scaffold.controller; | |
| 2 | ||
| 3 | import io.swagger.v3.oas.annotations.Operation; | |
| 4 | import io.swagger.v3.oas.annotations.tags.Tag; | |
| 5 | import java.util.Map; | |
| 6 | import org.springframework.web.bind.annotation.GetMapping; | |
| 7 | import org.springframework.web.bind.annotation.RestController; | |
| 8 | ||
| 9 | @Tag(name = "Health") | |
| 10 | @RestController | |
| 11 | public class HealthController { | |
| 12 | ||
| 13 | @Operation(summary = "Health check – returns {\"status\":\"ok\"} when the service is running") | |
| 14 | @GetMapping("/api/health") | |
| 15 | public Map<String, String> healthCheck() { | |
| 16 |
1
1. healthCheck : replaced return value with Collections.emptyMap for edu/ucsb/cs/scaffold/controller/HealthController::healthCheck → KILLED |
return Map.of("status", "ok"); |
| 17 | } | |
| 18 | } | |
Mutations | ||
| 16 |
1.1 |