@@ -95,8 +95,10 @@ paths:
95
95
schema :
96
96
type : object
97
97
properties :
98
- data :
99
- $ref : " #/components/schemas/Person"
98
+ prisonerOffenderSearch :
99
+ $ref : " #/components/schemas/Person"
100
+ probationOffenderSearch :
101
+ $ref : " #/components/schemas/Person"
100
102
" 404 " :
101
103
description : Failed to find a person with the provided HMPPS ID.
102
104
content :
@@ -1719,10 +1721,45 @@ components:
1719
1721
Person :
1720
1722
type : object
1721
1723
properties :
1722
- prisonerOffenderSearch :
1723
- $ref : " #/components/schemas/OffenderSearch"
1724
- probationOffenderSearch :
1725
- $ref : " #/components/schemas/OffenderSearch"
1724
+ data :
1725
+ type : object
1726
+ properties :
1727
+ firstName :
1728
+ type : string
1729
+ description : First name
1730
+ lastName :
1731
+ type : string
1732
+ description : Last name
1733
+ middleName :
1734
+ type : string
1735
+ nullable : true
1736
+ description : Middle name
1737
+ dateOfBirth :
1738
+ type : string
1739
+ format : date
1740
+ description : Date of birth
1741
+ gender :
1742
+ type : string
1743
+ description : Gender
1744
+ ethnicity :
1745
+ type : string
1746
+ nullable : true
1747
+ description : Ethnicity
1748
+ aliases :
1749
+ type : array
1750
+ items :
1751
+ $ref : " #/components/schemas/Alias"
1752
+ description : List of aliases
1753
+ identifiers :
1754
+ $ref : " #/components/schemas/Identifiers"
1755
+ pncId :
1756
+ type : string
1757
+ description : An identifier from the Police National Computer (PNC)
1758
+ hmppsId :
1759
+ type : string
1760
+ description : Hmpps identifier
1761
+ contactDetails :
1762
+ $ref : " #/components/schemas/ContactDetails"
1726
1763
PersonResponsibleOfficerName :
1727
1764
type : object
1728
1765
properties :
@@ -1862,45 +1899,6 @@ components:
1862
1899
nullable : true
1863
1900
prison :
1864
1901
$ref : " #/components/schemas/Prison"
1865
- OffenderSearch :
1866
- type : object
1867
- properties :
1868
- firstName :
1869
- type : string
1870
- description : First name
1871
- lastName :
1872
- type : string
1873
- description : Last name
1874
- middleName :
1875
- type : string
1876
- nullable : true
1877
- description : Middle name
1878
- dateOfBirth :
1879
- type : string
1880
- format : date
1881
- description : Date of birth
1882
- gender :
1883
- type : string
1884
- description : Gender
1885
- ethnicity :
1886
- type : string
1887
- nullable : true
1888
- description : Ethnicity
1889
- aliases :
1890
- type : array
1891
- items :
1892
- $ref : " #/components/schemas/Alias"
1893
- description : List of aliases
1894
- identifiers :
1895
- $ref : " #/components/schemas/Identifiers"
1896
- pncId :
1897
- type : string
1898
- description : An identifier from the Police National Computer (PNC)
1899
- hmppsId :
1900
- type : string
1901
- description : Hmpps identifier
1902
- contactDetails :
1903
- $ref : " #/components/schemas/ContactDetails"
1904
1902
Punishment :
1905
1903
type : object
1906
1904
properties :
0 commit comments