From 712f06cec163ac2931e04e973246646c95b8289c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Mon, 15 Mar 2021 14:29:47 +0100 Subject: [PATCH] =?UTF-8?q?Ajout=20endpoint=20typesentretient=20et=20l?= =?UTF-8?q?=C3=A9g=C3=A8res=20mises=20=C3=A0=20jour?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 6 +++++- paths/ep/typesentretien.yaml | 18 ++++++++++++++++++ responses/ep/getListeTypesEntretien.yaml | 7 +++++++ schemas/ep/commentaireAssistant.yaml | 4 +++- schemas/ep/typeEntretien.yaml | 1 + 5 files changed, 34 insertions(+), 2 deletions(-) create mode 100644 paths/ep/typesentretien.yaml create mode 100644 responses/ep/getListeTypesEntretien.yaml diff --git a/openapi.yaml b/openapi.yaml index 1dd2e4f..afb5499 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.3.6 + version: 1.3.7 title: API du serveur de l'application de digitalisation des EP description: API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. @@ -85,6 +85,10 @@ paths: /ep/participation/{idCollaborateur}/count: $ref: ./paths/ep/epParticipationIdCollaborateurCount.yaml + #TypeEntretien + /typesentretien: + $ref: ./paths/ep/typesentretien.yaml + #Engagement /engagements: $ref: ./paths/engagement/engagements.yaml diff --git a/paths/ep/typesentretien.yaml b/paths/ep/typesentretien.yaml new file mode 100644 index 0000000..9836c0e --- /dev/null +++ b/paths/ep/typesentretien.yaml @@ -0,0 +1,18 @@ +get: + tags: + - ep + operationId: getTypesEntretien + description: Récupérer la liste des types d'entretiens EP possible + responses: + '200': + $ref: ../../responses/ep/getListeTypesEntretien.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml + diff --git a/responses/ep/getListeTypesEntretien.yaml b/responses/ep/getListeTypesEntretien.yaml new file mode 100644 index 0000000..4b6751e --- /dev/null +++ b/responses/ep/getListeTypesEntretien.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/ep/typeentretien.yaml \ No newline at end of file diff --git a/schemas/ep/commentaireAssistant.yaml b/schemas/ep/commentaireAssistant.yaml index f2dcd1d..add2780 100644 --- a/schemas/ep/commentaireAssistant.yaml +++ b/schemas/ep/commentaireAssistant.yaml @@ -5,10 +5,12 @@ properties: type: integer format: int64 description: Id du commentaire assistant - idAssistante: + idAssistant: type: string format: uuid description: Id de l'assistant qui a écrit le commentaire + assistant: + type: string commentaire: type: string description: Le commentaire de l’assistant diff --git a/schemas/ep/typeEntretien.yaml b/schemas/ep/typeEntretien.yaml index a26d978..e7ddb13 100644 --- a/schemas/ep/typeEntretien.yaml +++ b/schemas/ep/typeEntretien.yaml @@ -3,6 +3,7 @@ description: DTO concernant comment l'entretien va se dérouler. properties: id: type: integer + format: int64 description: Id du type de l'entretien libelle: type: string