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