diff --git a/paths/formation/formationId.yaml b/paths/formation/formationId.yaml deleted file mode 100644 index 7b8838f..0000000 --- a/paths/formation/formationId.yaml +++ /dev/null @@ -1,73 +0,0 @@ -get: - tags: - - formations - operationId: getFormationById - description: Récupérer une formation par son id - parameters: - - $ref: ../../parameters/path/idFormation.yaml - responses: - '200': - $ref: ../../responses/formation/getFormation.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 - -put: - tags: - - formations - operationId: updateFormation - description: Mettre à jour une formation - parameters: - - $ref: ../../parameters/path/idFormation.yaml - requestBody: - $ref: ../../requestbodies/formation.yaml - responses: - '200': - $ref: ../../responses/formation/updateFormation.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 - -delete: - tags: - - formations - operationId: deleteFormation - description: Supprimer une formation - parameters: - - $ref: ../../parameters/path/idFormation.yaml - responses: - '204': - $ref: ../../responses/formation/formationSupprimee.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 \ No newline at end of file diff --git a/responses/_index.yaml b/responses/_index.yaml index 0ec34e0..f18b740 100644 --- a/responses/_index.yaml +++ b/responses/_index.yaml @@ -114,15 +114,35 @@ ReponseDemandeDelegationResponse: $ref: ./demandedelegation/updateDemandeDelegation.yaml +#DemandeFormation +DemandeFormationCreeeResponse: + $ref: ./demandeformation/addDemandeFormation.yaml + +GetListeDemandesFormationResponse: + $ref: ./demandeformation/getListeDemandesFormation.yaml + +GetListeOriginesDemandeFormationResponse: + $ref: ./demandeformation/getListeOriginesDemandeFormation.yaml + +#GetListThemesResponse: + #$ref: ./demandeformation/getListeThemes.yaml + +ReponseDemandeFormationResponse: + $ref: ./demandeformation/updateDemandeFormation.yaml + +DemandeFormationSupprimmeeResponse: + $ref: ./demandeformation/deleteDemandeFormation.yaml + + #Formation FormationCreeeResponse: - $ref: ./formation/formationCreee.yaml + $ref: ./formation/addFormation.yaml FormationEvalueeResponse: $ref: ./formation/formationEvaluee.yaml FormationSupprimeeResponse: - $ref: ./formation/formationSupprimee.yaml + $ref: ./formation/deleteFormation.yaml GetEvaluationResponse: $ref: ./formation/getEvaluation.yaml @@ -152,25 +172,6 @@ UpdateFormationResponse: $ref: ./formation/updateFormation.yaml -#DemandeFormation -DemandeFormationCreeeResponse: - $ref: ./demandeformation/addDemandeFormation.yaml - -GetListeDemandesFormationResponse: - $ref: ./demandeformation/getListeDemandesFormation.yaml - -GetListeOriginesDemandeFormationResponse: - $ref: ./demandeformation/getListeOriginesDemandeFormation.yaml - -#GetListThemesResponse: - #$ref: ./demandeformation/getListeThemes.yaml - -ReponseDemandeFormationResponse: - $ref: ./demandeformation/updateDemandeFormation.yaml - -DemandeFormationSupprimmeeResponse: - $ref: ./demandeformation/deleteDemandeFormation.yaml - #ReferentEP GetReferentResponse: $ref: ./referentep/updateReferentEP.yaml \ No newline at end of file diff --git a/responses/formation/addFormation.yaml b/responses/formation/addFormation.yaml new file mode 100644 index 0000000..05c5353 --- /dev/null +++ b/responses/formation/addFormation.yaml @@ -0,0 +1,5 @@ +description: Formation créée avec succès +content: + application/json: + schema: + $ref: ../../schemas/formation/formation.yaml \ No newline at end of file diff --git a/responses/formation/formationSupprimee.yaml b/responses/formation/deleteFormation.yaml similarity index 100% rename from responses/formation/formationSupprimee.yaml rename to responses/formation/deleteFormation.yaml diff --git a/responses/formation/formationCreee.yaml b/responses/formation/formationCreee.yaml deleted file mode 100644 index 0a08241..0000000 --- a/responses/formation/formationCreee.yaml +++ /dev/null @@ -1 +0,0 @@ -description: Formation créée avec succès \ No newline at end of file