From c2550aa7ce5d6e732ba3289b54448875a3c2beae Mon Sep 17 00:00:00 2001 From: Leopoldo Muller Date: Thu, 13 Jan 2022 09:35:30 -0300 Subject: [PATCH 1/2] Add Project to /attendances (#1) --- personio-personnel-data-api-oa3.yaml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index ef8e990..ebe8fb9 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2489,6 +2489,19 @@ components: balance: type: number example: 10.5 + + Project: + type: object + properties: + id: + example: 1 + type: integer + name: + example: "Project name" + type: string + active: + example: true + type: boolean Attendance: type: object @@ -2525,6 +2538,12 @@ components: - confirmed - pending - rejected + project: + $ref: "#/components/schemas/Project" + example: + id: 1 + name: "Some project" + active: true AttendanceCreateRequest: type: object From 470cd4946d34cdb8c234a4e4d4cadac44057d721 Mon Sep 17 00:00:00 2001 From: Leopoldo Muller Date: Thu, 13 Jan 2022 10:51:02 -0300 Subject: [PATCH 2/2] Update personio-personnel-data-api-oa3.yaml --- personio-personnel-data-api-oa3.yaml | 24 ++++++++++++++++-------- 1 file changed, 16 insertions(+), 8 deletions(-) diff --git a/personio-personnel-data-api-oa3.yaml b/personio-personnel-data-api-oa3.yaml index ebe8fb9..f7ea151 100644 --- a/personio-personnel-data-api-oa3.yaml +++ b/personio-personnel-data-api-oa3.yaml @@ -2494,14 +2494,20 @@ components: type: object properties: id: - example: 1 type: integer - name: - example: "Project name" + example: 1 + type: type: string - active: - example: true - type: boolean + example: "Project" + attributes: + type: object + properties: + name: + type: string + example: "Project name" + active: + example: true + type: boolean Attendance: type: object @@ -2542,8 +2548,10 @@ components: $ref: "#/components/schemas/Project" example: id: 1 - name: "Some project" - active: true + type: Project + attributes: + name: "Some project" + active: true AttendanceCreateRequest: type: object