diff --git a/api/pom.xml b/api/pom.xml index 67960af1..7eeb23cb 100644 --- a/api/pom.xml +++ b/api/pom.xml @@ -6,7 +6,7 @@ ca.bc.gov.educ educ-grad-trax-api - 1.8.58 + 1.8.59 educ-grad-trax-api Ministry of Education GRAD TRAX API diff --git a/api/src/main/java/ca/bc/gov/educ/api/trax/controller/DistrictController.java b/api/src/main/java/ca/bc/gov/educ/api/trax/controller/DistrictController.java index a3425cd0..0b7bce83 100644 --- a/api/src/main/java/ca/bc/gov/educ/api/trax/controller/DistrictController.java +++ b/api/src/main/java/ca/bc/gov/educ/api/trax/controller/DistrictController.java @@ -35,9 +35,9 @@ public class DistrictController { @PreAuthorize(PermissionsConstants.READ_SCHOOL_DATA) @Operation(summary = "Find a District by District Number", description = "Get District by District Number", tags = { "District" }) @ApiResponses(value = {@ApiResponse(responseCode = "200", description = "OK")}) - public ResponseEntity getDistrictDetails(@PathVariable String distCode) { - if(distCode.length() <=3) { - District distResponse = districtService.getDistrictDetails(distCode); + public ResponseEntity getDistrictDetails(@PathVariable String distNo) { + if(distNo.length() <=3) { + District distResponse = districtService.getDistrictDetails(distNo); if (distResponse != null) { return response.GET(distResponse); }