Skip to content

Commit d0669b1

Browse files
Open API
1 parent faf5208 commit d0669b1

File tree

1 file changed

+44
-0
lines changed

1 file changed

+44
-0
lines changed

openapi.yml

+44
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,50 @@ paths:
340340
NoQueryParametersBadRequestError:
341341
$ref: "#/components/examples/InternalServerError"
342342

343+
/v1/persons/{hmppsId}/alerts/pnd:
344+
get:
345+
tags:
346+
- persons
347+
- alerts
348+
summary: Returns alerts associated with a person.
349+
parameters:
350+
- $ref: "#/components/parameters/HmppsId"
351+
- $ref: "#/components/parameters/Page"
352+
- $ref: "#/components/parameters/PerPage"
353+
responses:
354+
"200":
355+
description: Successfully found alerts for a person with the provided HMPPS ID.
356+
content:
357+
application/json:
358+
schema:
359+
type: object
360+
properties:
361+
data:
362+
type: array
363+
minItems: 0
364+
items:
365+
$ref: "#/components/schemas/Alert"
366+
pagination:
367+
$ref: "#/components/schemas/Pagination"
368+
"404":
369+
description: Failed to find alerts a person with the provided HMPPS ID.
370+
content:
371+
application/json:
372+
schema:
373+
$ref: "#/components/schemas/Error"
374+
examples:
375+
PersonNotFoundError:
376+
$ref: "#/components/examples/PersonNotFoundError"
377+
"500":
378+
description: An upstream service was not responding, so we cannot verify the accuracy of any data we did get.
379+
content:
380+
application/json:
381+
schema:
382+
$ref: "#/components/schemas/Error"
383+
examples:
384+
NoQueryParametersBadRequestError:
385+
$ref: "#/components/examples/InternalServerError"
386+
343387
/v1/persons/{hmppsId}/sentences:
344388
get:
345389
tags:

0 commit comments

Comments
 (0)