Skip to content

Commit

Permalink
corrected plp path (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevomcallister authored Nov 21, 2024
1 parent e846c68 commit 4eb82bc
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class PLPController(
@Autowired val getInductionScheduleForPersonService: GetInductionScheduleForPersonService,
@Autowired val auditService: AuditService,
) {
@GetMapping("{encodedHmppsId}plp-induction-schedule")
@GetMapping("{encodedHmppsId}/plp-induction-schedule")
@Operation(
summary = "Returns plp the induction schedule associated with a person.",
responses = [
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/application-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ authorisation:
- "/v1/persons/.*/risks/categories"
- "/v1/persons/.*/person-responsible-officer"
- "/v1/persons/.*/risk-management-plan"
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/hmpps/reference-data"
ctrlo:
- "/v1/epf/person-details/.*/[^/]*$"
Expand Down Expand Up @@ -111,6 +111,6 @@ authorisation:
- "/v1/persons"
- "/v1/persons/[^/]*$"
meganexus:
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
- "/v1/hmpps/id/nomis-number/by-hmpps-id/[^/]*$"
2 changes: 1 addition & 1 deletion src/main/resources/application-integration-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ authorisation:
- "/v1/persons/.*/person-responsible-officer"
- "/v1/persons/.*/risk-management-plan"
- "/v1/persons/.*/cell-location"
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/epf/person-details/.*/[^/]*$"
- "/v1/hmpps/id/nomis-number/[^/]*$"
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local-docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ authorisation:
- "/v1/persons/.*/person-responsible-officer"
- "/v1/persons/.*/risk-management-plan"
- "/v1/persons/.*/cell-location"
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/epf/person-details/.*/[^/]*$"
- "/v1/hmpps/id/nomis-number/[^/]*$"
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ authorisation:
- "/v1/persons/.*/status-information"
- "/v1/persons/.*/risk-management-plan"
- "/v1/persons/.*/cell-location"
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/epf/person-details/.*/[^/]*$"
- "/v1/hmpps/id/nomis-number/[^/]*$"
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ authorisation:
- "/v1/persons/.*/risk-management-plan"
- "/v1/persons/.*/cell-location"
- "/v1/persons/.*/status-information"
- "/v1/persons/.*plp-induction-schedule"
- "/v1/persons/.*/plp-induction-schedule"
- "/v1/hmpps/id/nomis-number/[^/]*$"
- "/v1/hmpps/id/.*/nomis-number"
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationT
class PLPIntegrationTest : IntegrationTestBase() {
@Test
fun `returns a persons integration schedule`() {
callApi("$basePath/K5995YZplp-induction-schedule")
callApi("$basePath/K5995YZ/plp-induction-schedule")
.andExpect(status().isOk)
.andExpect(
content().json(
Expand Down

0 comments on commit 4eb82bc

Please sign in to comment.