Skip to content

Commit 0741ef6

Browse files
Merge branch 'main' into test-licences
2 parents ad1fbea + 48d1121 commit 0741ef6

File tree

6 files changed

+5
-7
lines changed

6 files changed

+5
-7
lines changed

docs/adr/0003-manually-manage-openapi-file.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ Accepted
1111
The [OpenAPI specification](https://spec.openapis.org/oas/latest.html) is a standard for describing REST APIs and
1212
[Swagger UI](https://swagger.io/tools/swagger-ui/) is used to visualise and interact with a specification file in more
1313
user-friendly manner. These are used widely used within HMPPS to document APIs,
14-
e.g. [Prison API's OpenAPI specification](https://api.prison.service.justice.gov.uk/v3/api-docs)
15-
and [Prison API's Swagger UI](https://api.prison.service.justice.gov.uk/swagger-ui/index.html). This is achieved by
14+
e.g. [Prison API's OpenAPI specification](https://prison-api.prison.service.justice.gov.uk/v3/api-docs)
15+
and [Prison API's Swagger UI](https://prison-api.prison.service.justice.gov.uk/swagger-ui/index.html). This is achieved by
1616
using the [SpringDoc OpenAPI library](https://springdoc.org) and annotating the codebase which the library then uses to
1717
expose two endpoints: one for the OpenAPI specification in JSON format and another for Swagger UI.
1818

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
graphviz==0.20.1
22
pandas==2.0.2
3-
requests==2.31.0
3+
requests==2.32.0
44
PyYAML==6.0

src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetLicenceConditionService.kt

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ class GetLicenceConditionService(
1818

1919
var licences: Response<List<Licence>> = Response(data = emptyList())
2020
var personLicences = PersonLicences(hmppsId)
21-
2221
licences = createAndVaryLicenceGateway.getLicenceSummaries(id = hmppsId)
2322
licences.data.forEach { summary ->
2423
summary.conditions = summary.id.toIntOrNull()?.let { licenceId ->

src/main/resources/application-preprod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
prison-api:
3-
base-url: https://api-preprod.prison.service.justice.gov.uk
3+
base-url: https://prison-api-preprod.prison.service.justice.gov.uk
44
prisoner-offender-search:
55
base-url: https://prisoner-search-preprod.prison.service.justice.gov.uk
66
probation-offender-search:

src/main/resources/application-prod.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
services:
22
prison-api:
3-
base-url: https://api.prison.service.justice.gov.uk
3+
base-url: https://prison-api.prison.service.justice.gov.uk
44
prisoner-offender-search:
55
base-url: https://prisoner-search.prison.service.justice.gov.uk
66
probation-offender-search:

src/test/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/services/GetLicenceConditionServiceTest.kt

-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,6 @@ internal class GetLicenceConditionServiceTest(
3434
// whenever(createAndVaryLicenceGateway.getLicenceSummaries(id = crn)).thenReturn(Response(licences))
3535
// whenever(createAndVaryLicenceGateway.getLicenceConditions(id = 12345)).thenReturn(Response(conditions))
3636
// }
37-
3837
// it("performs a search according to hmpps Id") {
3938
// getLicenceConditionService.execute(hmppsId)
4039
// verify(getPersonService, VerificationModeFactory.times(1)).execute(hmppsId = hmppsId)

0 commit comments

Comments
 (0)