You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
description ="A long-lived API that exposes data from HMPPS systems such as the National Offender Management Information System (NOMIS), nDelius (probation system) and Offender Assessment System (OASys), providing a single point of entry for consumers.",
.addParameters("page", Parameter().name("page").description("The page number (starting from 1)").schema(Schema<Int>().type("number").minimum(BigDecimal.ONE)._default(1)).`in`("query").required(false))
67
+
.addParameters("perPage", Parameter().name("perPage").description("The maximum number of results for a page").schema(Schema<Int>().type("number").minimum(BigDecimal.ONE)._default(10)).`in`("query").required(false))
.description("Failed to find a person with the provided HMPPS ID.")
73
+
.example(ErrorResponse(404, userMessage ="404 Not found error: Could not find person with HMPPS id: 2003/0011991D.", developerMessage ="Could not find person with HMPPS id: 2003/0011991D.")),
74
+
)
75
+
.addSchemas(
76
+
"InternalServerError",
77
+
Schema<ErrorResponse>()
78
+
.description("An upstream service was not responding, so we cannot verify the accuracy of any data we did get.")
79
+
.example(ErrorResponse(500, userMessage ="Internal Server Error", developerMessage ="Unable to complete request as an upstream service is not responding.")),
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/AdjudicationsController.kt
ApiResponse(responseCode ="404", description ="Failed to find adjudications for the person with the provided hmppsId.", content = [Content(schema =Schema(ref ="#/components/schemas/PersonNotFound"))]),
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/AlertsController.kt
Copy file name to clipboardexpand all lines: src/main/kotlin/uk/gov/justice/digital/hmpps/hmppsintegrationapi/controllers/v1/person/CaseNotesController.kt
0 commit comments