Skip to content

Commit 6da882b

Browse files
Changing Open api spec
1 parent a41a4c7 commit 6da882b

File tree

1 file changed

+43
-45
lines changed

1 file changed

+43
-45
lines changed

openapi.yml

+43-45
Original file line numberDiff line numberDiff line change
@@ -95,8 +95,10 @@ paths:
9595
schema:
9696
type: object
9797
properties:
98-
data:
99-
$ref: "#/components/schemas/Person"
98+
prisonerOffenderSearch:
99+
$ref: "#/components/schemas/Person"
100+
probationOffenderSearch:
101+
$ref: "#/components/schemas/Person"
100102
"404":
101103
description: Failed to find a person with the provided HMPPS ID.
102104
content:
@@ -1719,10 +1721,45 @@ components:
17191721
Person:
17201722
type: object
17211723
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"
17261763
PersonResponsibleOfficerName:
17271764
type: object
17281765
properties:
@@ -1862,45 +1899,6 @@ components:
18621899
nullable: true
18631900
prison:
18641901
$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"
19041902
Punishment:
19051903
type: object
19061904
properties:

0 commit comments

Comments
 (0)