Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

corrected plp path #526

Merged
merged 1 commit into from
Nov 21, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/inductionScheduleUpdated")
@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/inductionScheduleUpdated"
- "/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/inductionScheduleUpdated"
- "/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/inductionScheduleUpdated"
- "/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/inductionScheduleUpdated"
- "/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/inductionScheduleUpdated"
- "/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/inductionScheduleUpdated"
- "/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/K5995YZ/plp/inductionScheduleUpdated")
callApi("$basePath/K5995YZplp-induction-schedule")
.andExpect(status().isOk)
.andExpect(
content().json(
Expand Down
Loading