From b61d7cc635e01905e53668c2ba5aef9314cd8c24 Mon Sep 17 00:00:00 2001 From: jboinembalome Date: Mon, 7 Dec 2020 15:09:23 +0100 Subject: [PATCH] Modification des descriptions pour la partie demandeFormation --- ...demandesDelegationIdDemandeDelegation.yaml | 2 +- .../demandesFormationCount.yaml | 2 +- .../demandesFormationIdDemandeFormation.yaml | 48 +++++++++++++++++++ paths/demandeformation/demandesformation.yaml | 10 ++-- .../originesDemandeFormation.yaml | 17 +++++++ paths/demandeformation/themes.yaml | 10 +++- 6 files changed, 80 insertions(+), 9 deletions(-) create mode 100644 paths/demandeformation/demandesFormationIdDemandeFormation.yaml create mode 100644 paths/demandeformation/originesDemandeFormation.yaml diff --git a/paths/demandedelegation/demandesDelegationIdDemandeDelegation.yaml b/paths/demandedelegation/demandesDelegationIdDemandeDelegation.yaml index d4f8c63..4cfa104 100644 --- a/paths/demandedelegation/demandesDelegationIdDemandeDelegation.yaml +++ b/paths/demandedelegation/demandesDelegationIdDemandeDelegation.yaml @@ -1,7 +1,7 @@ put: tags: - demandesDelegation - operationId: repondreDemandeDelegation + operationId: updateDemandeDelegation description: Répondre à une demande de délégation. parameters: - $ref: ../../parameters/path/idDemandeDelegation.yaml diff --git a/paths/demandeformation/demandesFormationCount.yaml b/paths/demandeformation/demandesFormationCount.yaml index c318c88..c46a27f 100644 --- a/paths/demandeformation/demandesFormationCount.yaml +++ b/paths/demandeformation/demandesFormationCount.yaml @@ -2,7 +2,7 @@ get: tags: - demandesFormation operationId: getDemandesFormationCount - description: Récupérer le nombre de demandes de formation total + description: Récupérer le nombre total de demandes de formation. parameters: - $ref: ../../parameters/query/etatsDemande.yaml - $ref: ../../parameters/query/idBUs.yaml diff --git a/paths/demandeformation/demandesFormationIdDemandeFormation.yaml b/paths/demandeformation/demandesFormationIdDemandeFormation.yaml new file mode 100644 index 0000000..f3a7331 --- /dev/null +++ b/paths/demandeformation/demandesFormationIdDemandeFormation.yaml @@ -0,0 +1,48 @@ +put: + tags: + - demandesFormation + operationId: updateDemandeFormation + description: Répondre à une demande de formation. + parameters: + - $ref: ../../parameters/path/idDemandeFormation.yaml + requestBody: + $ref: ../../requestbodies/demandeFormation.yaml + responses: + '200': + $ref: ../../responses/demandeformation/updateDemandeFormation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml + +delete: + tags: + - demandesFormation + operationId: deleteDemandeFormation + description: Supprimer une demande de formation. + parameters: + - $ref: ../../parameters/path/idDemandeFormation.yaml + responses: + '204': + $ref: ../../responses/demandeformation/deleteDemandeFormation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml + diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml index 520e680..63f091d 100644 --- a/paths/demandeformation/demandesformation.yaml +++ b/paths/demandeformation/demandesformation.yaml @@ -2,7 +2,7 @@ get: tags: - demandesFormation operationId: getDemandesFormation - description: Récupérer une liste de demandes de formation + description: Récupérer la liste des demandes de formation. parameters: - $ref: ../../parameters/query/etatsDemande.yaml - $ref: ../../parameters/query/idBUs.yaml @@ -29,13 +29,13 @@ get: post: tags: - demandesFormation - operationId: ajouterDemandeFormation - description: Créer demande de formation pour un collaborateur + operationId: addDemandeFormation + description: Créer demande de formation pour un collaborateur. requestBody: $ref: ../../requestbodies/demandeFormation.yaml responses: - '200': - $ref: ../../responses/demandeformation/demandeFormationCreee.yaml + '201': + $ref: ../../responses/demandeformation/addDemandeFormation.yaml '401': $ref: ../../responses/erreur/unauthorized.yaml diff --git a/paths/demandeformation/originesDemandeFormation.yaml b/paths/demandeformation/originesDemandeFormation.yaml new file mode 100644 index 0000000..1bf8ccd --- /dev/null +++ b/paths/demandeformation/originesDemandeFormation.yaml @@ -0,0 +1,17 @@ +get: + tags: + - demandesFormation + operationId: getOriginesDemandeFormation + description: Récupérer la liste des origines des demandes de formation. + responses: + '200': + $ref: ../../responses/demandeformation/getListeOriginesDemandeFormation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/demandeformation/themes.yaml b/paths/demandeformation/themes.yaml index 3c4b2e3..d2ee2e8 100644 --- a/paths/demandeformation/themes.yaml +++ b/paths/demandeformation/themes.yaml @@ -2,10 +2,16 @@ get: tags: - demandesFormation operationId: getThemes - description: Récupérer la liste des thèmes des demandes de formation + description: Récupérer la liste des thèmes des demandes de formation. responses: '200': $ref: ../../responses/demandeformation/getListeThemes.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file