diff --git a/openapi.yaml b/openapi.yaml index ed4e88b..a62c4db 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -123,11 +123,11 @@ paths: /demandesformation/count: $ref: ./paths/demandeformation/demandesFormationCount.yaml /demandesformation/{idDemandeFormation}: - $ref: ./paths/demandeformation/demandeFormationId.yaml + $ref: ./paths/demandeformation/demandesFormationIdDemandeFormation.yaml #OrigineDemandeFormation - /originesdemandesformation: - $ref: ./paths/demandeformation/originesDemandesFormation.yaml + /originesdemandeformation: + $ref: ./paths/demandeformation/originesDemandeFormation.yaml #Formation /formation: diff --git a/paths/demandeepi/demandesEpiDemandeAssistant.yaml b/paths/demandeepi/demandesEpiDemandeAssistant.yaml index 2499636..b17fc79 100644 --- a/paths/demandeepi/demandesEpiDemandeAssistant.yaml +++ b/paths/demandeepi/demandesEpiDemandeAssistant.yaml @@ -7,7 +7,7 @@ post: $ref: ../../requestbodies/DemandeEpi.yaml responses: '201': - $ref: ../../responses/demandeepi/demandeEPICreee.yaml + $ref: ../../responses/demandeepi/addDemandeEPI.yaml '401': $ref: ../../responses/erreur/unauthorized.yaml diff --git a/paths/demandeepi/demandesEpiDemandeCollaborateur.yaml b/paths/demandeepi/demandesEpiDemandeCollaborateur.yaml index 3e44937..beb4bc2 100644 --- a/paths/demandeepi/demandesEpiDemandeCollaborateur.yaml +++ b/paths/demandeepi/demandesEpiDemandeCollaborateur.yaml @@ -7,7 +7,7 @@ post: $ref: ../../requestbodies/DemandeEpi.yaml responses: '201': - $ref: ../../responses/demandeepi/demandeEPICreee.yaml + $ref: ../../responses/demandeepi/addDemandeEPI.yaml '401': $ref: ../../responses/erreur/unauthorized.yaml diff --git a/paths/demandeepi/demandesEpiDemandeReferent.yaml b/paths/demandeepi/demandesEpiDemandeReferent.yaml index 102b7ce..d299276 100644 --- a/paths/demandeepi/demandesEpiDemandeReferent.yaml +++ b/paths/demandeepi/demandesEpiDemandeReferent.yaml @@ -7,7 +7,7 @@ post: $ref: ../../requestbodies/DemandeEpi.yaml responses: '201': - $ref: ../../responses/demandeepi/demandeEPICreee.yaml + $ref: ../../responses/demandeepi/addDemandeEPI.yaml '401': $ref: ../../responses/erreur/unauthorized.yaml diff --git a/paths/demandeepi/demandesEpiIdDemandeEpi.yaml b/paths/demandeepi/demandesEpiIdDemandeEpi.yaml index e491377..d372e43 100644 --- a/paths/demandeepi/demandesEpiIdDemandeEpi.yaml +++ b/paths/demandeepi/demandesEpiIdDemandeEpi.yaml @@ -25,6 +25,7 @@ put: '500': $ref: ../../responses/erreur/internalServerError.yaml + delete: tags: - demandesEPI @@ -34,7 +35,7 @@ delete: - $ref: ../../parameters/path/idDemandeEPI.yaml responses: '204': - $ref: ../../responses/demandeepi/demandeEPIAnnulee.yaml + $ref: ../../responses/demandeepi/deleteDemandeEPI.yaml '401': $ref: ../../responses/erreur/unauthorized.yaml diff --git a/paths/demandeformation/demandeFormationId.yaml b/paths/demandeformation/demandeFormationId.yaml deleted file mode 100644 index 33c06d0..0000000 --- a/paths/demandeformation/demandeFormationId.yaml +++ /dev/null @@ -1,48 +0,0 @@ -put: - tags: - - demandesFormation - operationId: RepondreDemandeFormation - description: Répondre a une demande de formation et la mettre à jour - parameters: - - $ref: ../../parameters/path/idDemandeFormation.yaml - requestBody: - $ref: ../../requestbodies/demandeFormation.yaml - responses: - '200': - $ref: ../../responses/demandeformation/reponseDemandeFormation.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: SupprimerDemandeFormation - description: Supprimer une demande de formation - parameters: - - $ref: ../../parameters/path/idDemandeFormation.yaml - responses: - '200': - $ref: ../../responses/demandeformation/demandeFormationSupprimee.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/originesDemandesFormation.yaml b/paths/demandeformation/originesDemandesFormation.yaml deleted file mode 100644 index 9397109..0000000 --- a/paths/demandeformation/originesDemandesFormation.yaml +++ /dev/null @@ -1,17 +0,0 @@ -get: - tags: - - demandesFormation - operationId: getOriginesDemandesFormation - description: Récupérer la liste des origines des demandes de formation - responses: - '200': - $ref: ../../responses/demandeformation/getListeOriginesDemandesFormation.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/responses/_index.yaml b/responses/_index.yaml index 6ad52a0..0ec34e0 100644 --- a/responses/_index.yaml +++ b/responses/_index.yaml @@ -91,10 +91,10 @@ ReponseEngagementReponse: #DemandeEPI DemandeEPIAnnuleeReponse: - $ref: ./demandeepi/demandeEPIAnnulee.yaml + $ref: ./demandeepi/deleteDemandeEPI.yaml DemandeEPICreeeResponse: - $ref: ./demandeepi/demandeEPICreee.yaml + $ref: ./demandeepi/addDemandeEPI.yaml GetListeDemandesEPIResponse: $ref: ./demandeepi/getListeDemandesEPI.yaml @@ -154,20 +154,22 @@ UpdateFormationResponse: #DemandeFormation DemandeFormationCreeeResponse: - $ref: ./demandeformation/demandeFormationCreee.yaml + $ref: ./demandeformation/addDemandeFormation.yaml GetListeDemandesFormationResponse: $ref: ./demandeformation/getListeDemandesFormation.yaml GetListeOriginesDemandeFormationResponse: - $ref: ./demandeformation/getListeOriginesDemandesFormation.yaml + $ref: ./demandeformation/getListeOriginesDemandeFormation.yaml #GetListThemesResponse: #$ref: ./demandeformation/getListeThemes.yaml ReponseDemandeFormationResponse: - $ref: ./demandeformation/reponseDemandeFormation.yaml + $ref: ./demandeformation/updateDemandeFormation.yaml +DemandeFormationSupprimmeeResponse: + $ref: ./demandeformation/deleteDemandeFormation.yaml #ReferentEP GetReferentResponse: diff --git a/responses/demandeepi/demandeEPICreee.yaml b/responses/demandeepi/addDemandeEPI.yaml similarity index 100% rename from responses/demandeepi/demandeEPICreee.yaml rename to responses/demandeepi/addDemandeEPI.yaml diff --git a/responses/demandeepi/demandeEPIAnnulee.yaml b/responses/demandeepi/deleteDemandeEPI.yaml similarity index 100% rename from responses/demandeepi/demandeEPIAnnulee.yaml rename to responses/demandeepi/deleteDemandeEPI.yaml diff --git a/responses/demandeformation/demandeFormationCreee.yaml b/responses/demandeformation/addDemandeFormation.yaml similarity index 100% rename from responses/demandeformation/demandeFormationCreee.yaml rename to responses/demandeformation/addDemandeFormation.yaml diff --git a/responses/demandeformation/demandeFormationSupprimee.yaml b/responses/demandeformation/deleteDemandeFormation.yaml similarity index 100% rename from responses/demandeformation/demandeFormationSupprimee.yaml rename to responses/demandeformation/deleteDemandeFormation.yaml diff --git a/responses/demandeformation/getListeOriginesDemandesFormation.yaml b/responses/demandeformation/getListeOriginesDemandeFormation.yaml similarity index 100% rename from responses/demandeformation/getListeOriginesDemandesFormation.yaml rename to responses/demandeformation/getListeOriginesDemandeFormation.yaml diff --git a/responses/demandeformation/reponseDemandeFormation.yaml b/responses/demandeformation/updateDemandeFormation.yaml similarity index 100% rename from responses/demandeformation/reponseDemandeFormation.yaml rename to responses/demandeformation/updateDemandeFormation.yaml