Skip to content

Commit e846c68

Browse files
corrected plp path (#526)
1 parent 821a5b1 commit e846c68

File tree

7 files changed

+8
-8
lines changed

7 files changed

+8
-8
lines changed

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/PLPController.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class PLPController(
2727
@Autowired val getInductionScheduleForPersonService: GetInductionScheduleForPersonService,
2828
@Autowired val auditService: AuditService,
2929
) {
30-
@GetMapping("{encodedHmppsId}/plp/inductionScheduleUpdated")
30+
@GetMapping("{encodedHmppsId}plp-induction-schedule")
3131
@Operation(
3232
summary = "Returns plp the induction schedule associated with a person.",
3333
responses = [

src/main/resources/application-dev.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ authorisation:
5050
- "/v1/persons/.*/risks/categories"
5151
- "/v1/persons/.*/person-responsible-officer"
5252
- "/v1/persons/.*/risk-management-plan"
53-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
53+
- "/v1/persons/.*plp-induction-schedule"
5454
- "/v1/hmpps/reference-data"
5555
ctrlo:
5656
- "/v1/epf/person-details/.*/[^/]*$"
@@ -111,6 +111,6 @@ authorisation:
111111
- "/v1/persons"
112112
- "/v1/persons/[^/]*$"
113113
meganexus:
114-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
114+
- "/v1/persons/.*plp-induction-schedule"
115115
- "/v1/hmpps/id/by-nomis-number/[^/]*$"
116116
- "/v1/hmpps/id/nomis-number/by-hmpps-id/[^/]*$"

src/main/resources/application-integration-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ authorisation:
6868
- "/v1/persons/.*/person-responsible-officer"
6969
- "/v1/persons/.*/risk-management-plan"
7070
- "/v1/persons/.*/cell-location"
71-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
71+
- "/v1/persons/.*plp-induction-schedule"
7272
- "/v1/epf/person-details/.*/[^/]*$"
7373
- "/v1/hmpps/id/nomis-number/[^/]*$"
7474
- "/v1/hmpps/id/by-nomis-number/[^/]*$"

src/main/resources/application-local-docker.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ authorisation:
4242
- "/v1/persons/.*/person-responsible-officer"
4343
- "/v1/persons/.*/risk-management-plan"
4444
- "/v1/persons/.*/cell-location"
45-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
45+
- "/v1/persons/.*plp-induction-schedule"
4646
- "/v1/epf/person-details/.*/[^/]*$"
4747
- "/v1/hmpps/id/nomis-number/[^/]*$"
4848
- "/v1/hmpps/id/by-nomis-number/[^/]*$"

src/main/resources/application-local.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ authorisation:
4949
- "/v1/persons/.*/status-information"
5050
- "/v1/persons/.*/risk-management-plan"
5151
- "/v1/persons/.*/cell-location"
52-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
52+
- "/v1/persons/.*plp-induction-schedule"
5353
- "/v1/epf/person-details/.*/[^/]*$"
5454
- "/v1/hmpps/id/nomis-number/[^/]*$"
5555
- "/v1/hmpps/id/by-nomis-number/[^/]*$"

src/main/resources/application-test.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ authorisation:
6969
- "/v1/persons/.*/risk-management-plan"
7070
- "/v1/persons/.*/cell-location"
7171
- "/v1/persons/.*/status-information"
72-
- "/v1/persons/.*/plp/inductionScheduleUpdated"
72+
- "/v1/persons/.*plp-induction-schedule"
7373
- "/v1/hmpps/id/nomis-number/[^/]*$"
7474
- "/v1/hmpps/id/.*/nomis-number"
7575
- "/v1/hmpps/id/by-nomis-number/[^/]*$"

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/integration/person/PLPIntegrationTest.kt

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import uk.gov.justice.digital.hmpps.hmppsintegrationapi.integration.IntegrationT
88
class PLPIntegrationTest : IntegrationTestBase() {
99
@Test
1010
fun `returns a persons integration schedule`() {
11-
callApi("$basePath/K5995YZ/plp/inductionScheduleUpdated")
11+
callApi("$basePath/K5995YZplp-induction-schedule")
1212
.andExpect(status().isOk)
1313
.andExpect(
1414
content().json(

0 commit comments

Comments
 (0)