From 642e7105dfec4de79bfe74f9933125f769e73f9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yana=C3=ABl=20GRETTE?= Date: Fri, 4 Dec 2020 12:00:05 +0100 Subject: [PATCH] =?UTF-8?q?Mise=20=C3=A0=20jour=20de=20urls=20de=20partici?= =?UTF-8?q?pationformation=20et=20ajout=20d'une=20url=20de=20serveur?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 8 +++--- paths/participationformation/evaluation.yaml | 28 ++++++++++++++++++++ paths/participationformation/evaluer.yaml | 27 ------------------- 3 files changed, 32 insertions(+), 31 deletions(-) delete mode 100644 paths/participationformation/evaluer.yaml diff --git a/openapi.yaml b/openapi.yaml index 404b9e0..9eaf582 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -10,6 +10,8 @@ info: servers: - url: http://localhost:3000/api description: json-server pour les premiers tests + - url: https://localhost:44393/api + description: url pour le serveur local en cours de développement paths: #Collaborateur @@ -156,11 +158,9 @@ paths: #ParticipationFormation et évaluation - /participations/{idCollaborateur}: + /participationsformation/{idCollaborateur}: $ref: ./paths/participationformation/participationsCollaborateur.yaml - /participations/{idParticipationFormation}/evaluer: - $ref: ./paths/participationformation/evaluer.yaml - /participations/{idParticipationFormation}/evaluation: + /participationsformation/{idParticipationFormation}/evaluation: $ref: ./paths/participationformation/evaluation.yaml components: diff --git a/paths/participationformation/evaluation.yaml b/paths/participationformation/evaluation.yaml index 7475429..7aa78e4 100644 --- a/paths/participationformation/evaluation.yaml +++ b/paths/participationformation/evaluation.yaml @@ -18,5 +18,33 @@ get: '404': $ref: ../../responses/erreur/notFound.yaml + '500': + $ref: ../../responses/erreur/internalServerError.yaml + +put: + tags: + - participationsFormations + operationId: evaluerFormation + description: Evaluer une formation + parameters: + - $ref: ../../parameters/path/idParticipationFormation.yaml + requestBody: + $ref: ../../requestbodies/evaluation.yaml + responses: + '200': + $ref: ../../responses/formation/formationEvaluee.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml + + '415': + $ref: ../../responses/erreur/unsupportedMediaType.yaml + '500': $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/participationformation/evaluer.yaml b/paths/participationformation/evaluer.yaml deleted file mode 100644 index de715e8..0000000 --- a/paths/participationformation/evaluer.yaml +++ /dev/null @@ -1,27 +0,0 @@ -put: - tags: - - participationsFormations - operationId: evaluerFormation - description: Evaluer une formation - parameters: - - $ref: ../../parameters/path/idParticipationFormation.yaml - requestBody: - $ref: ../../requestbodies/evaluation.yaml - responses: - '200': - $ref: ../../responses/formation/formationEvaluee.yaml - - '401': - $ref: ../../responses/erreur/unauthorized.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml - - '415': - $ref: ../../responses/erreur/unsupportedMediaType.yaml - - '500': - $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file