From f3f946818117d5ac01a20665db51264480325147 Mon Sep 17 00:00:00 2001 From: stevomcallister Date: Thu, 21 Nov 2024 11:02:18 +0000 Subject: [PATCH] corrected plp path --- .../controllers/v1/person/PLPController.kt | 2 +- src/main/resources/application-dev.yml | 4 ++-- src/main/resources/application-integration-test.yml | 2 +- src/main/resources/application-local-docker.yml | 2 +- src/main/resources/application-local.yml | 2 +- src/main/resources/application-test.yml | 2 +- .../integration/person/PLPIntegrationTest.kt | 2 +- 7 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PLPController.kt b/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PLPController.kt index fab31daa6..407ff9b53 100644 --- a/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PLPController.kt +++ b/src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PLPController.kt @@ -27,7 +27,7 @@ class PLPController( @Autowired val getInductionScheduleForPersonService: GetInductionScheduleForPersonService, @Autowired val auditService: AuditService, ) { - @GetMapping("{encodedHmppsId}/plp/inductionScheduleUpdated") + @GetMapping("{encodedHmppsId}plp-induction-schedule") @Operation( summary = "Returns plp the induction schedule associated with a person.", responses = [ diff --git a/src/main/resources/application-dev.yml b/src/main/resources/application-dev.yml index ad0529211..0f230eb3c 100644 --- a/src/main/resources/application-dev.yml +++ b/src/main/resources/application-dev.yml @@ -50,7 +50,7 @@ authorisation: - "/v1/persons/.*/risks/categories" - "/v1/persons/.*/person-responsible-officer" - "/v1/persons/.*/risk-management-plan" - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/hmpps/reference-data" ctrlo: - "/v1/epf/person-details/.*/[^/]*$" @@ -111,6 +111,6 @@ authorisation: - "/v1/persons" - "/v1/persons/[^/]*$" meganexus: - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/hmpps/id/by-nomis-number/[^/]*$" - "/v1/hmpps/id/nomis-number/by-hmpps-id/[^/]*$" diff --git a/src/main/resources/application-integration-test.yml b/src/main/resources/application-integration-test.yml index 997619891..d7762bdeb 100644 --- a/src/main/resources/application-integration-test.yml +++ b/src/main/resources/application-integration-test.yml @@ -68,7 +68,7 @@ authorisation: - "/v1/persons/.*/person-responsible-officer" - "/v1/persons/.*/risk-management-plan" - "/v1/persons/.*/cell-location" - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/epf/person-details/.*/[^/]*$" - "/v1/hmpps/id/nomis-number/[^/]*$" - "/v1/hmpps/id/by-nomis-number/[^/]*$" diff --git a/src/main/resources/application-local-docker.yml b/src/main/resources/application-local-docker.yml index 53b4d073a..680b92528 100644 --- a/src/main/resources/application-local-docker.yml +++ b/src/main/resources/application-local-docker.yml @@ -42,7 +42,7 @@ authorisation: - "/v1/persons/.*/person-responsible-officer" - "/v1/persons/.*/risk-management-plan" - "/v1/persons/.*/cell-location" - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/epf/person-details/.*/[^/]*$" - "/v1/hmpps/id/nomis-number/[^/]*$" - "/v1/hmpps/id/by-nomis-number/[^/]*$" diff --git a/src/main/resources/application-local.yml b/src/main/resources/application-local.yml index 15a4e5c60..b04e30c9c 100644 --- a/src/main/resources/application-local.yml +++ b/src/main/resources/application-local.yml @@ -49,7 +49,7 @@ authorisation: - "/v1/persons/.*/status-information" - "/v1/persons/.*/risk-management-plan" - "/v1/persons/.*/cell-location" - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/epf/person-details/.*/[^/]*$" - "/v1/hmpps/id/nomis-number/[^/]*$" - "/v1/hmpps/id/by-nomis-number/[^/]*$" diff --git a/src/main/resources/application-test.yml b/src/main/resources/application-test.yml index 95d72e078..f53e2c232 100644 --- a/src/main/resources/application-test.yml +++ b/src/main/resources/application-test.yml @@ -69,7 +69,7 @@ authorisation: - "/v1/persons/.*/risk-management-plan" - "/v1/persons/.*/cell-location" - "/v1/persons/.*/status-information" - - "/v1/persons/.*/plp/inductionScheduleUpdated" + - "/v1/persons/.*plp-induction-schedule" - "/v1/hmpps/id/nomis-number/[^/]*$" - "/v1/hmpps/id/.*/nomis-number" - "/v1/hmpps/id/by-nomis-number/[^/]*$" diff --git a/src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt b/src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt index c61d1b623..8ebbc9663 100644 --- a/src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt +++ b/src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt @@ -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/K5995YZ/plp/inductionScheduleUpdated") + callApi("$basePath/K5995YZplp-induction-schedule") .andExpect(status().isOk) .andExpect( content().json(