Skip to content

Commit

Permalink
Merge pull request #178 from oleglfed/task/papi-1453
Browse files Browse the repository at this point in the history
[NO-PAPI] Add preferred name to the openAPI specs
  • Loading branch information
oleglfed authored Jan 11, 2024
2 parents a40c5a9 + 66d2291 commit 89f445b
Showing 1 changed file with 35 additions and 2 deletions.
37 changes: 35 additions & 2 deletions personio-personnel-data-api-oa3.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -232,6 +232,11 @@ paths:
value: Bergmann
type: standard
universal_id: last_name
preferred_name:
label: Name (preferred)
value: Alexander Bergmann
type: standard
universal_id: preferred_name
email:
label: Email
value: [email protected]
Expand Down Expand Up @@ -473,6 +478,9 @@ paths:
last_name:
type: string
example: "Dou"
preferred_name:
type: string
example: "John Dou"
gender:
type: string
example: male
Expand Down Expand Up @@ -532,6 +540,9 @@ paths:
"employee[last_name]":
description: Employee last name
type: string
"employee[preferred_name]":
description: Employee preferred name
type: string
"employee[gender]":
description: Employee gender
type: string
Expand Down Expand Up @@ -635,6 +646,9 @@ paths:
last_name:
type: string
example: "Dou"
preferred_name:
type: string
example: "John Dou"
gender:
type: string
example: male
Expand Down Expand Up @@ -687,6 +701,9 @@ paths:
"employee[last_name]":
description: Employee last name
type: string
"employee[preferred_name]":
description: Employee preferred name
type: string
"employee[gender]":
description: Employee gender
type: string
Expand Down Expand Up @@ -777,6 +794,11 @@ paths:
value: Bergmann
type: standard
universal_id: last_name
preferred_name:
label: Name (preferred)
value: Alexander Bergmann
type: standard
universal_id: preferred_name
email:
label: Email
value: [email protected]
Expand Down Expand Up @@ -1318,8 +1340,8 @@ paths:
success: true
data:
id: [
1,
2,
1,
2,
]
message: 'success'
"401":
Expand Down Expand Up @@ -3527,6 +3549,17 @@ components:
$ref: '#/components/schemas/TypeEnum'
universal_id:
example: last_name
preferred_name:
type: object
properties:
label:
example: Name (preferred)
value:
example: Michael Dou
type:
$ref: '#/components/schemas/TypeEnum'
universal_id:
example: preferred_name
email:
type: object
properties:
Expand Down

0 comments on commit 89f445b

Please sign in to comment.