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
Merge branch 'HIA-750-create-notification-for-certificates-expiry-both-internal-external' of github.com:ministryofjustice/hmpps-integration-api into HIA-750-create-notification-for-certificates-expiry-both-internal-external
Copy file name to clipboardexpand all lines: openapi.yml
+42-42
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ paths:
12
12
get:
13
13
tags:
14
14
- persons
15
-
summary: Returns person(s) by search criteria, sorted by date of birth. At least one query parameter must be specified.
15
+
summary: Returns person(s) by search criteria, sorted by date of birth (newest first). At least one query parameter must be specified.
16
16
parameters:
17
17
- in: query
18
18
name: first_name
@@ -44,7 +44,7 @@ paths:
44
44
type: boolean
45
45
default: false
46
46
required: false
47
-
description: Whether to return results that match the search criteria within the aliases of a person, sorted by date of birth.
47
+
description: Whether to return results that match the search criteria within the aliases of a person.
48
48
- $ref: "#/components/parameters/page"
49
49
- $ref: "#/components/parameters/perPage"
50
50
responses:
@@ -126,7 +126,7 @@ paths:
126
126
get:
127
127
tags:
128
128
- persons
129
-
summary: Returns metadata of images associated with a person sorted by captureDateTime.
129
+
summary: Returns metadata of images associated with a person sorted by captureDateTime (newest first).
130
130
parameters:
131
131
- $ref: "#/components/parameters/hmppsId"
132
132
- $ref: "#/components/parameters/page"
@@ -254,11 +254,11 @@ paths:
254
254
tags:
255
255
- persons
256
256
summary: >
257
-
Returns offences associated with a person, ordered by startDate.
258
-
259
-
Note: This API does not contain the complete list of offences for a person.
260
-
Offences are retrieved from Prison and Probation systems exclusively.
261
-
Prison systems record only custodial sentences, while Probation systems record only the main offence and some additional offences for case management purposes. Other offences recorded by HMCTS and police may not be included.
257
+
Returns offences associated with a person, ordered by startDate (newest first).
258
+
>
259
+
Note: This API does not contain the complete list of offences for a person.
260
+
Offences are retrieved from Prison and Probation systems exclusively.
261
+
Prison systems record only custodial sentences, while Probation systems record only the main offence and some additional offences for case management purposes. Other offences recorded by HMCTS and police may not be included.
262
262
parameters:
263
263
- $ref: "#/components/parameters/hmppsId"
264
264
- $ref: "#/components/parameters/page"
@@ -331,7 +331,7 @@ paths:
331
331
tags:
332
332
- persons
333
333
- alerts
334
-
summary: Returns alerts associated with a person, sorted by dateCreated.
334
+
summary: Returns alerts associated with a person, sorted by dateCreated (newest first).
335
335
parameters:
336
336
- $ref: "#/components/parameters/hmppsId"
337
337
- $ref: "#/components/parameters/page"
@@ -375,7 +375,7 @@ paths:
375
375
tags:
376
376
- persons
377
377
- alerts
378
-
summary: Returns alerts associated with a person, sorted by dateCreated.
378
+
summary: Returns alerts associated with a person, sorted by dateCreated (newest first).
379
379
parameters:
380
380
- $ref: "#/components/parameters/hmppsId"
381
381
- $ref: "#/components/parameters/page"
@@ -418,7 +418,7 @@ paths:
418
418
get:
419
419
tags:
420
420
- persons
421
-
summary: Returns sentences associated with a person, sorted by dateOfSentencing.
421
+
summary: Returns sentences associated with a person, sorted by dateOfSentencing (newest first).
422
422
parameters:
423
423
- $ref: "#/components/parameters/hmppsId"
424
424
- $ref: "#/components/parameters/page"
@@ -497,7 +497,7 @@ paths:
497
497
get:
498
498
tags:
499
499
- risks
500
-
summary: Returns risk scores from the last year associated with a person, sorted by completedDate.
500
+
summary: Returns risk scores from the last year associated with a person, sorted by completedDate (newest first). This endpoint does not serve LAO (Limited Access Offender) data.
501
501
parameters:
502
502
- $ref: "#/components/parameters/hmppsId"
503
503
- $ref: "#/components/parameters/page"
@@ -649,7 +649,7 @@ paths:
649
649
tags:
650
650
- needs
651
651
summary: >
652
-
Returns criminogenic needs associated with a person.
652
+
Returns criminogenic needs associated with a person. This endpoint does not serve LAO (Limited Access Offender) data.
653
653
654
654
Note: Criminogenic needs are dynamic factors that are directly linked to criminal behaviour. Eight criminogenic needs are measured in OASys: Accommodation, Employability, Relationships, Lifestyle and Associates, Drug Misuse, Alcohol Misuse, Thinking & Behaviour and Attitudes. These are scored according to whether there is “no need”, “some need” or “severe need”, and a need is identified in a specific section based on calculations around these scores.
655
655
However, the process by which needs are assessed is changing as early as next year (2024), specifically moving to a strength-based model that seeks to identify and develop the strengths of people with convictions. As a consequence of this, the information provided by this endpoint will also change.
@@ -688,7 +688,7 @@ paths:
688
688
get:
689
689
tags:
690
690
- risks
691
-
summary: Returns Risk of Serious Harm (ROSH) risks associated with a person. Returns only assessments completed in the last year.
691
+
summary: Returns Risk of Serious Harm (ROSH) risks associated with a person. Returns only assessments completed in the last year. This endpoint does not serve LAO (Limited Access Offender) data.
692
692
parameters:
693
693
- $ref: "#/components/parameters/hmppsId"
694
694
responses:
@@ -802,7 +802,7 @@ paths:
802
802
803
803
/v1/persons/{hmppsId}/adjudications:
804
804
get:
805
-
summary: Returns adjudications associated with a person, sorted by dateTimeOfIncident.
805
+
summary: Returns adjudications associated with a person, sorted by dateTimeOfIncident (newest first).
806
806
parameters:
807
807
- name: hmppsId
808
808
in: path
@@ -871,7 +871,7 @@ paths:
871
871
872
872
/v1/persons/{hmppsId}/licences/conditions:
873
873
get:
874
-
summary: Returns license conditions associated with a person, sorted by createdDateTime.
874
+
summary: Returns license conditions associated with a person, sorted by createdDateTime (newest first).
875
875
parameters:
876
876
- $ref: "#/components/parameters/hmppsId"
877
877
responses:
@@ -1546,7 +1546,7 @@ components:
1546
1546
- OIC
1547
1547
description: >
1548
1548
View is the subject focus; describing the inner focus or subject of the image, normally referring to a marking, tattoo or deeper level focus of the orientation. In practise this is the interior foci of what is captured in the 'orientation' field.
1549
-
Options include:
1549
+
Possible values are:
1550
1550
`FACE` - Facing,
1551
1551
`TAT` - Tattoo,
1552
1552
`OTH` - Other,
@@ -1582,7 +1582,7 @@ components:
1582
1582
- TORSO
1583
1583
description: >
1584
1584
Orientation is the scope focus; describing the scope or outer focus of the image, normally referring to the highest level object of interest within the bounds of the photo itself. This is normally a body part or an angle of photography, such as a photo of someone’s facial view (`FRONT`) or arm (`ARM`).
1585
-
Options include:
1585
+
Possible values are:
1586
1586
`ANKLE` - Ankle,
1587
1587
`ARM` - Arm,
1588
1588
`DAMAGE` - Damage,
@@ -1616,7 +1616,7 @@ components:
1616
1616
- PPTY
1617
1617
description: >
1618
1618
Type is the contextual focus; describing the context or scenario the image was taken within. It could be for a particular purpose or capturing the results of a particular type of incident.
1619
-
Options include:
1619
+
Possible values are:
1620
1620
`OFF_BKG` - Offender Booking,
1621
1621
`OFF_IDM` - Offender Identification Marks,
1622
1622
`OIC` - Offence In Custody,
@@ -1723,7 +1723,7 @@ components:
1723
1723
- VARIATION_REJECTED
1724
1724
example: IN_PROGRESS
1725
1725
description: >
1726
-
Licence status. Options include:
1726
+
Licence status. Possible values are:
1727
1727
`IN_PROGRESS`,
1728
1728
`SUBMITTED`,
1729
1729
`APPROVED`,
@@ -1740,7 +1740,7 @@ components:
1740
1740
- PSS
1741
1741
- AP_PSS
1742
1742
description: >
1743
-
The type of licence. Options include:
1743
+
The type of licence. Possible values are:
1744
1744
`AP`,
1745
1745
`PSS`,
1746
1746
`AP_PSS`
@@ -1810,7 +1810,7 @@ components:
1810
1810
- NDELIUS
1811
1811
example: NOMIS
1812
1812
description: >
1813
-
Which upstream API service the sentence originates from. Options include:
1813
+
Which upstream API service the sentence originates from. Possible values are:
1814
1814
`NOMIS`,
1815
1815
`NDELIUS`
1816
1816
systemSource:
@@ -1820,7 +1820,7 @@ components:
1820
1820
- PROBATION_SYSTEMS
1821
1821
example: PROBATION_SYSTEMS
1822
1822
description: >
1823
-
Which upstream API system the sentence originates from. Options include:
1823
+
Which upstream API system the sentence originates from. Possible values are:
1824
1824
`PRISON_SYSTEMS`,
1825
1825
`PROBATION_SYSTEMS`
1826
1826
cjsCode:
@@ -2177,7 +2177,7 @@ components:
2177
2177
- NDELIUS
2178
2178
example: NOMIS
2179
2179
description: >
2180
-
Which upstream API service the sentence originates from. Options include:
2180
+
Which upstream API service the sentence originates from. Possible values are:
2181
2181
`NOMIS`,
2182
2182
`NDELIUS`
2183
2183
systemSource:
@@ -2187,7 +2187,7 @@ components:
2187
2187
- PROBATION_SYSTEMS
2188
2188
example: PROBATION_SYSTEMS
2189
2189
description: >
2190
-
Which upstream API system the sentence originates from. Options include:
2190
+
Which upstream API system the sentence originates from. Possible values are:
2191
2191
`PRISON_SYSTEMS`,
2192
2192
`PROBATION_SYSTEMS`
2193
2193
dateOfSentencing:
@@ -2321,7 +2321,7 @@ components:
2321
2321
- PRRD
2322
2322
example: ARD
2323
2323
description: >
2324
-
Indicates which type of non-DTO release date is the effective release date. One of 'ARD', 'CRD', 'NPD' or 'PRRD'. Options include:
2324
+
Indicates which type of non-DTO release date is the effective release date. One of 'ARD', 'CRD', 'NPD' or 'PRRD'. Possible values are:
2325
2325
`ARD`,
2326
2326
`CRD`,
2327
2327
`NPD`,
@@ -2441,7 +2441,7 @@ components:
2441
2441
- Years
2442
2442
example: Hours
2443
2443
description: >
2444
-
Time unit that is used in combination with the duration field. Options include:
2444
+
Time unit that is used in combination with the duration field. Possible values are:
2445
2445
`Hours`,
2446
2446
`Days`,
2447
2447
`Weeks`,
@@ -2490,7 +2490,7 @@ components:
2490
2490
example: IMP
2491
2491
description: >
2492
2492
The sentence term code
2493
-
Options include:
2493
+
Possible values are:
2494
2494
`CUR` - Curfew Period,
2495
2495
`DEF` - Deferment Period,
2496
2496
`DET` - Detention,
@@ -2558,7 +2558,7 @@ components:
2558
2558
- LOCKED_INCOMPLETE
2559
2559
example: COMPLETE
2560
2560
description: >
2561
-
Whether the risk score calculation is complete. Options include:
2561
+
Whether the risk score calculation is complete. Possible values are:
2562
2562
`COMPLETE`,
2563
2563
`LOCKED_INCOMPLETE`
2564
2564
groupReconviction:
@@ -2584,7 +2584,7 @@ components:
2584
2584
- NOT_APPLICABLE
2585
2585
example: LOW
2586
2586
description: >
2587
-
Indicator for risk of group reconviction. Options include:
2587
+
Indicator for risk of group reconviction. Possible values are:
2588
2588
`LOW`,
2589
2589
`MEDIUM`,
2590
2590
`HIGH`,
@@ -2604,7 +2604,7 @@ components:
2604
2604
- NOT_APPLICABLE
2605
2605
example: MEDIUM
2606
2606
description: >
2607
-
Indicator for risk of violence. Options include:
2607
+
Indicator for risk of violence. Possible values are:
2608
2608
`LOW`,
2609
2609
`MEDIUM`,
2610
2610
`HIGH`,
@@ -2624,7 +2624,7 @@ components:
2624
2624
- NOT_APPLICABLE
2625
2625
example: VERY_HIGH
2626
2626
description: >
2627
-
Indicator for general prediction. Options include:
2627
+
Indicator for general prediction. Possible values are:
2628
2628
`LOW`,
2629
2629
`MEDIUM`,
2630
2630
`HIGH`,
@@ -2644,7 +2644,7 @@ components:
2644
2644
- NOT_APPLICABLE
2645
2645
example: MEDIUM
2646
2646
description: >
2647
-
Indicator for risk of serious recidivism. Options include:
2647
+
Indicator for risk of serious recidivism. Possible values are:
2648
2648
`LOW`,
2649
2649
`MEDIUM`,
2650
2650
`HIGH`,
@@ -2664,7 +2664,7 @@ components:
2664
2664
- NOT_APPLICABLE
2665
2665
example: HIGH
2666
2666
description: >
2667
-
Indicator for risk of sexual indecency. Options include:
2667
+
Indicator for risk of sexual indecency. Possible values are:
2668
2668
`LOW`,
2669
2669
`MEDIUM`,
2670
2670
`HIGH`,
@@ -2680,7 +2680,7 @@ components:
2680
2680
- NOT_APPLICABLE
2681
2681
example: MEDIUM
2682
2682
description: >
2683
-
Indicator for risk of sexual contact. Options include:
2683
+
Indicator for risk of sexual contact. Possible values are:
2684
2684
`LOW`,
2685
2685
`MEDIUM`,
2686
2686
`HIGH`,
@@ -2726,7 +2726,7 @@ components:
2726
2726
- DK
2727
2727
- NA
2728
2728
description: >
2729
-
Presence of risk. Options include:
2729
+
Presence of risk. Possible values are:
2730
2730
`YES`,
2731
2731
`NO`,
2732
2732
`DK`,
@@ -2740,7 +2740,7 @@ components:
2740
2740
- DK
2741
2741
- NA
2742
2742
description: >
2743
-
Previous concerns. Options include:
2743
+
Previous concerns. Possible values are:
2744
2744
`YES`,
2745
2745
`NO`,
2746
2746
`DK`,
@@ -2758,7 +2758,7 @@ components:
2758
2758
- DK
2759
2759
- NA
2760
2760
description: >
2761
-
Current concerns. Options include:
2761
+
Current concerns. Possible values are:
2762
2762
`YES`,
2763
2763
`NO`,
2764
2764
`DK`,
@@ -2838,7 +2838,7 @@ components:
2838
2838
- DK
2839
2839
- NA
2840
2840
description: >
2841
-
Risk of escape/abscond. Options include:
2841
+
Risk of escape/abscond. Possible values are:
2842
2842
`YES`,
2843
2843
`NO`,
2844
2844
`DK`,
@@ -2852,7 +2852,7 @@ components:
2852
2852
- DK
2853
2853
- NA
2854
2854
description: >
2855
-
Risk control issues/disruptive behaviour. Options include:
2855
+
Risk control issues/disruptive behaviour. Possible values are:
0 commit comments