2022-09-21 09:44:09 +02:00
|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- hs-office-persons
|
|
|
|
description: 'Fetch a single business person by its uuid, if visible for the current subject.'
|
|
|
|
operationId: getPersonByUuid
|
|
|
|
parameters:
|
2024-04-16 10:08:00 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/currentUser'
|
|
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
2022-09-21 09:44:09 +02:00
|
|
|
- name: personUUID
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
description: UUID of the person to fetch.
|
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
'application/json':
|
|
|
|
schema:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
|
2022-09-21 09:44:09 +02:00
|
|
|
|
|
|
|
"401":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
2022-09-21 09:44:09 +02:00
|
|
|
"403":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|
2022-09-21 09:44:09 +02:00
|
|
|
|
|
|
|
patch:
|
|
|
|
tags:
|
|
|
|
- hs-office-persons
|
|
|
|
description: 'Updates a single person by its uuid, if permitted for the current subject.'
|
|
|
|
operationId: patchPerson
|
|
|
|
parameters:
|
2024-04-16 10:08:00 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/currentUser'
|
|
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
2022-09-21 09:44:09 +02:00
|
|
|
- name: personUUID
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
requestBody:
|
|
|
|
content:
|
|
|
|
'application/json':
|
|
|
|
schema:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePersonPatch'
|
2022-09-21 09:44:09 +02:00
|
|
|
responses:
|
|
|
|
"200":
|
|
|
|
description: OK
|
|
|
|
content:
|
|
|
|
'application/json':
|
|
|
|
schema:
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'hs-office-person-schemas.yaml#/components/schemas/HsOfficePerson'
|
2022-09-21 09:44:09 +02:00
|
|
|
"401":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
2022-09-21 09:44:09 +02:00
|
|
|
"403":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|
2022-09-21 09:44:09 +02:00
|
|
|
|
|
|
|
delete:
|
|
|
|
tags:
|
|
|
|
- hs-office-persons
|
|
|
|
description: 'Delete a single business person by its uuid, if permitted for the current subject.'
|
|
|
|
operationId: deletePersonByUuid
|
|
|
|
parameters:
|
2024-04-16 10:08:00 +02:00
|
|
|
- $ref: 'auth.yaml#/components/parameters/currentUser'
|
|
|
|
- $ref: 'auth.yaml#/components/parameters/assumedRoles'
|
2022-09-21 09:44:09 +02:00
|
|
|
- name: personUUID
|
|
|
|
in: path
|
|
|
|
required: true
|
|
|
|
schema:
|
|
|
|
type: string
|
|
|
|
format: uuid
|
|
|
|
description: UUID of the person to delete.
|
|
|
|
responses:
|
|
|
|
"204":
|
|
|
|
description: No Content
|
|
|
|
"401":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Unauthorized'
|
2022-09-21 09:44:09 +02:00
|
|
|
"403":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/Forbidden'
|
2022-09-21 09:44:09 +02:00
|
|
|
"404":
|
2024-04-16 10:08:00 +02:00
|
|
|
$ref: 'error-responses.yaml#/components/responses/NotFound'
|