diff --git a/openapi.yaml b/openapi.yaml index 923cd67..d4b88cc 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -39,7 +39,7 @@ paths: $ref: ./paths/note/notesIdNote.yaml - #Referent + #ReferentEP #/referents: #$ref: ./paths/referents/referents.yaml #/referents/{idReferent}: @@ -119,7 +119,6 @@ paths: /demandedelegation/{idDemandeDelegation}: $ref: ./paths/demandedelegation/demandeDelegationId.yaml - #DemandeFormation /demandeformation: $ref: ./paths/demandeformation/demandesFormation.yaml @@ -170,17 +169,13 @@ paths: /typesFormation: $ref: ./paths/formation/typesFormation.yaml - #ParticipationFormation - /participationsformation/collaborateur/{idCollaborateur}: - $ref: ./paths/formation/participationByCollaborateur.yaml - /participationsformation/formation/{idFormation}: - $ref: ./paths/formation/participationByFormation.yaml - - #Evaluation - /evaluations/participationformation/{idParticipationFormation}: - $ref: ./paths/formation/voirEvaluation.yaml - /evaluations/participationformation/{idParticipationFormation}/evaluer: - $ref: ./paths/formation/evaluer.yaml + #ParticipationFormation et évaluation + /participations/{idCollaborateur}: + $ref: ./paths/participationformation/participationsCollaborateur.yaml + /participations/{idParticipationFormation}/evaluer: + $ref: ./paths/participationformation/evaluer.yaml + /participations/{idParticipationFormation}/evaluation: + $ref: ./paths/participationformation/evaluation.yaml components: schemas: diff --git a/paths/demandedelegation/demandeDelegationId.yaml b/paths/demandedelegation/demandeDelegationId.yaml index b55865e..7440f06 100644 --- a/paths/demandedelegation/demandeDelegationId.yaml +++ b/paths/demandedelegation/demandeDelegationId.yaml @@ -11,8 +11,14 @@ put: '200': $ref: ../../responses/demandedelegation/reponseDemandeDelegation.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/demandedelegation/demandeDelegationReferent.yaml b/paths/demandedelegation/demandeDelegationReferent.yaml index cd45e03..142d11f 100644 --- a/paths/demandedelegation/demandeDelegationReferent.yaml +++ b/paths/demandedelegation/demandeDelegationReferent.yaml @@ -9,8 +9,14 @@ get: '200': $ref: ../../responses/demandedelegation/getListeDemandesDelegation.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/formation/participationByFormation.yaml b/paths/formation/participationByFormation.yaml deleted file mode 100644 index 6d79ba0..0000000 --- a/paths/formation/participationByFormation.yaml +++ /dev/null @@ -1,21 +0,0 @@ -get: - tags: - - participationsFormations - operationId: getParticipationByFormation - description: Récupérer la liste des participants d'une formation - parameters: - - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/path/idFormation.yaml - - $ref: ../../parameters/query/numPage.yaml - - $ref: ../../parameters/query/parPage.yaml - - $ref: ../../parameters/query/texte.yaml - - $ref: ../../parameters/query/tri.yaml - responses: - '200': - $ref: ../../responses/formation/getListeParticipationsFormation.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/formation/voirEvaluation.yaml b/paths/participationformation/evaluation.yaml similarity index 65% rename from paths/formation/voirEvaluation.yaml rename to paths/participationformation/evaluation.yaml index 4940553..7475429 100644 --- a/paths/formation/voirEvaluation.yaml +++ b/paths/participationformation/evaluation.yaml @@ -9,8 +9,14 @@ get: '200': $ref: ../../responses/formation/getEvaluation.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/formation/evaluer.yaml b/paths/participationformation/evaluer.yaml similarity index 68% rename from paths/formation/evaluer.yaml rename to paths/participationformation/evaluer.yaml index 17570a6..afaf4aa 100644 --- a/paths/formation/evaluer.yaml +++ b/paths/participationformation/evaluer.yaml @@ -11,8 +11,14 @@ put: '200': $ref: ../../responses/formation/formationEvaluee.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/formation/participationByCollaborateur.yaml b/paths/participationformation/participationsCollaborateur.yaml similarity index 77% rename from paths/formation/participationByCollaborateur.yaml rename to paths/participationformation/participationsCollaborateur.yaml index 4d9a11c..5c98104 100644 --- a/paths/formation/participationByCollaborateur.yaml +++ b/paths/participationformation/participationsCollaborateur.yaml @@ -4,8 +4,8 @@ get: operationId: getParticipationByCollaborateur description: Récupérer la liste des formations auxquelles est inscrit le collaborateur parameters: - - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/path/idCollaborateur.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/numPage.yaml - $ref: ../../parameters/query/parPage.yaml - $ref: ../../parameters/query/texte.yaml @@ -14,8 +14,14 @@ get: '200': $ref: ../../responses/formation/getListeParticipationsFormation.yaml + '401': + $ref: ../../responses/erreur/unauthorized.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/responses/formation/formationEvaluee.yaml b/responses/formation/formationEvaluee.yaml index 499ee92..6b1cbd6 100644 --- a/responses/formation/formationEvaluee.yaml +++ b/responses/formation/formationEvaluee.yaml @@ -1 +1,5 @@ -description: Evaluation envoyée avec succès \ No newline at end of file +description: Evaluation envoyée avec succès +content: + application/json: + schema: + $ref: ../../schemas/formation/evaluation.yaml \ No newline at end of file