From 0d656921d9f8b146370918f75700255d992f17c0 Mon Sep 17 00:00:00 2001 From: jboinembalome Date: Mon, 30 Nov 2020 15:46:56 +0100 Subject: [PATCH] =?UTF-8?q?MAJ=20des=20urls=20pour=20la=20partie=20EP=20en?= =?UTF-8?q?=20fonction=20des=20sp=C3=A9cifications=20techniques?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- openapi.yaml | 61 +++++++++------- parameters/query/dateDebut.yaml | 2 +- parameters/query/dateFin.yaml | 2 +- parameters/query/epObligatoire.yaml | 7 ++ paths/ep/ep.yaml | 20 ------ paths/ep/epEnCours.yaml | 17 +++-- paths/ep/epEnCoursCount.yaml | 26 +++++++ paths/ep/epEnCoursIdCollaborateur.yaml | 22 ++++++ paths/ep/epEnCoursIdReferent.yaml | 31 ++++++++ paths/ep/epEnCoursIdReferentCount.yaml | 31 ++++++++ paths/ep/epIdCollaborateur.yaml | 22 ++++++ paths/ep/epIdEp.yaml | 71 +++++++++++++++++++ paths/ep/epIdEpRappelSignature.yaml | 24 +++++++ paths/ep/epParticipationIdCollaborateur.yaml | 22 ++++++ .../epParticipationIdCollaborateurCount.yaml | 22 ++++++ paths/ep/epSaisieCollaborateur.yaml | 22 ++++++ paths/ep/epSaisieIdEp.yaml | 28 ++++++++ paths/ep/epSaisieReferent.yaml | 22 ++++++ paths/ep/epSignes.yaml | 17 +++-- paths/ep/epSignesCount.yaml | 26 +++++++ paths/ep/epSignesIdCollaborateur.yaml | 22 ++++++ paths/ep/epSignesIdReferent.yaml | 29 ++++++++ paths/ep/epSignesIdReferentCount.yaml | 29 ++++++++ paths/ep/epbycollaborateur.yaml | 22 ------ paths/ep/epbyid.yaml | 17 ----- paths/ep/epreferent.yaml | 22 ------ paths/ep/prochainepcollaborateur.yaml | 16 ----- paths/ep/prochainsepreferent.yaml | 21 ------ paths/ep/rappelsignature.yaml | 16 ----- paths/ep/saisirProchainEP.yaml | 16 ----- paths/ep/updateEP.yaml | 15 ---- paths/ep/updateSaisieEP.yaml | 15 ---- paths/note/notesIdNote.yaml | 10 ++- responses/_index.yaml | 2 +- responses/ep/deleteEp.yaml | 1 + responses/ep/deleteEpCollaborateur.yaml | 1 + responses/ep/getCountEp.yaml | 7 ++ responses/ep/getEpInformation.yaml | 5 ++ ...isteep.yaml => getListeEpInformation.yaml} | 0 responses/ep/rappelSignature.yaml | 2 +- responses/ep/updateSaisieEp.yaml | 5 ++ responses/ep/updateep.yaml | 6 +- 42 files changed, 553 insertions(+), 221 deletions(-) create mode 100644 parameters/query/epObligatoire.yaml delete mode 100644 paths/ep/ep.yaml create mode 100644 paths/ep/epEnCoursCount.yaml create mode 100644 paths/ep/epEnCoursIdCollaborateur.yaml create mode 100644 paths/ep/epEnCoursIdReferent.yaml create mode 100644 paths/ep/epEnCoursIdReferentCount.yaml create mode 100644 paths/ep/epIdCollaborateur.yaml create mode 100644 paths/ep/epIdEp.yaml create mode 100644 paths/ep/epIdEpRappelSignature.yaml create mode 100644 paths/ep/epParticipationIdCollaborateur.yaml create mode 100644 paths/ep/epParticipationIdCollaborateurCount.yaml create mode 100644 paths/ep/epSaisieCollaborateur.yaml create mode 100644 paths/ep/epSaisieIdEp.yaml create mode 100644 paths/ep/epSaisieReferent.yaml create mode 100644 paths/ep/epSignesCount.yaml create mode 100644 paths/ep/epSignesIdCollaborateur.yaml create mode 100644 paths/ep/epSignesIdReferent.yaml create mode 100644 paths/ep/epSignesIdReferentCount.yaml delete mode 100644 paths/ep/epbycollaborateur.yaml delete mode 100644 paths/ep/epbyid.yaml delete mode 100644 paths/ep/epreferent.yaml delete mode 100644 paths/ep/prochainepcollaborateur.yaml delete mode 100644 paths/ep/prochainsepreferent.yaml delete mode 100644 paths/ep/rappelsignature.yaml delete mode 100644 paths/ep/saisirProchainEP.yaml delete mode 100644 paths/ep/updateEP.yaml delete mode 100644 paths/ep/updateSaisieEP.yaml create mode 100644 responses/ep/deleteEp.yaml create mode 100644 responses/ep/deleteEpCollaborateur.yaml create mode 100644 responses/ep/getCountEp.yaml create mode 100644 responses/ep/getEpInformation.yaml rename responses/ep/{getlisteep.yaml => getListeEpInformation.yaml} (100%) create mode 100644 responses/ep/updateSaisieEp.yaml diff --git a/openapi.yaml b/openapi.yaml index 4f501a8..bc5a922 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -19,24 +19,25 @@ paths: $ref: ./paths/collaborateur/collaborateursCount.yaml /collaborateurs/{idCollaborateur}: $ref: ./paths/collaborateur/collaborateurById.yaml + /collaborateurs/{idCollaborateur}/ep/referents: + $ref: ./paths/collaborateur/referentsPrecedentEPCollaborateur.yaml /collaborateurs/{mail}: $ref: ./paths/collaborateur/collaborateurByMail.yaml /collaborateurs/referent/{idReferent}: $ref: ./paths/collaborateur/collaborateursReferent.yaml /collaborateurs/referent/{idReferent}/count: $ref: ./paths/collaborateur/collaborateursReferentCount.yaml - /collaborateurs/{idCollaborateur}/ep/referents: - $ref: ./paths/collaborateur/referentsPrecedentEPCollaborateur.yaml #Note /notes/: $ref: ./paths/note/notes.yaml - /notes/{idNote}: - $ref: ./paths/note/notesIdNote.yaml /notes/{idAuteur}: $ref: ./paths/note/notesIdAuteur.yaml /notes/{idAuteur}/count: $ref: ./paths/note/notesIdAuteurCount.yaml + /notes/{idNote}: + $ref: ./paths/note/notesIdNote.yaml + #Referent #/referents: @@ -49,30 +50,42 @@ paths: #$ref: ./paths/referents/referentActuelByCollaborateur.yaml #EP - /ep: - $ref: ./paths/ep/ep.yaml + /ep/{idCollaborateur}: + $ref: ./paths/ep/epIdCollaborateur.yaml /ep/{idEP}: - $ref: ./paths/ep/epById.yaml - /ep/collaborateur/{idCollaborateur}: - $ref: ./paths/ep/epByCollaborateur.yaml - /ep/collaborateur/{idCollaborateur}/prochain: - $ref: ./paths/ep/prochainEPCollaborateur.yaml - /ep/collaborateur/{idCollaborateur}/prochain/saisir: - $ref: ./paths/ep/saisirProchainEP.yaml - /ep/referent/{idReferent}: - $ref: ./paths/ep/epReferent.yaml - /ep/referent/{idReferent}/prochains: - $ref: ./paths/ep/prochainsEPReferent.yaml - /ep/{idEP}/rappelSignature: - $ref: ./paths/ep/rappelSignature.yaml - /ep/{idEP}/updateep: - $ref: ./paths/ep/updateEP.yaml - /ep/{idEP}/updatesaisie: - $ref: ./paths/ep/updateSaisieEP.yaml - /ep/enCours: + $ref: ./paths/ep/epIdEp.yaml + /ep/{idEP}/rappelsignature: + $ref: ./paths/ep/epIdEpRappelSignature.yaml + /ep/encours: $ref: ./paths/ep/epEnCours.yaml + /ep/encours/count: + $ref: ./paths/ep/epEnCoursCount.yaml + /ep/encours/collaborateur/{idCollaborateur}: + $ref: ./paths/ep/epEnCoursIdCollaborateur.yaml + /ep/encours/referent/{idReferent}: + $ref: ./paths/ep/epEnCoursIdReferent.yaml + /ep/encours/referent/{idReferent}/count: + $ref: ./paths/ep/epEnCoursIdReferentCount.yaml /ep/signes: $ref: ./paths/ep/epSignes.yaml + /ep/signes/count: + $ref: ./paths/ep/epSignesCount.yaml + /ep/signes/collaborateur/{idCollaborateur}: + $ref: ./paths/ep/epSignesIdCollaborateur.yaml + /ep/signes/referent/{idReferent}: + $ref: ./paths/ep/epSignesIdReferent.yaml + /ep/signes/referent/{idReferent}/count: + $ref: ./paths/ep/epSignesIdReferentCount.yaml + /ep/saisie/{idEP}: + $ref: ./paths/ep/epSaisieIdEp.yaml + /ep/saisie/collaborateur/{idCollaborateur}: + $ref: ./paths/ep/epSaisieCollaborateur.yaml + /ep/saisie/referent/{idEP}: + $ref: ./paths/ep/epSaisieReferent.yaml + /ep/participation/{idCollaborateur}: + $ref: ./paths/ep/epParticipationIdCollaborateur.yaml + /ep/participation/{idCollaborateur}/count: + $ref: ./paths/ep/epParticipationIdCollaborateurCount.yaml #DemandeEPI /demandesepi/collaborateur/{idCollaborateur}: diff --git a/parameters/query/dateDebut.yaml b/parameters/query/dateDebut.yaml index 2b443d5..c19215a 100644 --- a/parameters/query/dateDebut.yaml +++ b/parameters/query/dateDebut.yaml @@ -4,5 +4,5 @@ schema: type: string format: date-time default: null -description: Date à partir de laquelle les données sont récupérées, selon la date d'arrivée du collaborateur +description: Date permettant de filtrer par date de début required: false \ No newline at end of file diff --git a/parameters/query/dateFin.yaml b/parameters/query/dateFin.yaml index 8fabc79..38d4ee0 100644 --- a/parameters/query/dateFin.yaml +++ b/parameters/query/dateFin.yaml @@ -4,5 +4,5 @@ schema: type: string format: date-time default: null -description: Date jusqu'à laquelle les données sont récupérées, selon la date d'arrivée du collaborateur +description: Date permettant de filtrer par date de fin required: false \ No newline at end of file diff --git a/parameters/query/epObligatoire.yaml b/parameters/query/epObligatoire.yaml new file mode 100644 index 0000000..34138bd --- /dev/null +++ b/parameters/query/epObligatoire.yaml @@ -0,0 +1,7 @@ +in: query +name: epObligatoire +schema: + type: boolean + default: false +description: Récupérer la liste des EP obligatoires +required: false \ No newline at end of file diff --git a/paths/ep/ep.yaml b/paths/ep/ep.yaml deleted file mode 100644 index 296da20..0000000 --- a/paths/ep/ep.yaml +++ /dev/null @@ -1,20 +0,0 @@ -get: - tags: - - ep - operationId: getEP - description: Récupérer la liste de tous les EP collaborateurs - parameters: - - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/query/idAgence.yaml - - $ref: ../../parameters/query/idBU.yaml - - $ref: ../../parameters/query/numPage.yaml - - $ref: ../../parameters/query/parPage.yaml - - $ref: ../../parameters/query/statutep.yaml - - $ref: ../../parameters/query/texte.yaml - - $ref: ../../parameters/query/tri.yaml - responses: - '200': - $ref: ../../responses/ep/getListeEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/ep/epEnCours.yaml b/paths/ep/epEnCours.yaml index b24a7a5..9623fdc 100644 --- a/paths/ep/epEnCours.yaml +++ b/paths/ep/epEnCours.yaml @@ -2,18 +2,25 @@ get: tags: - ep operationId: getEPEnCours - description: Récupérer la liste de tous les prochaines EP collaborateurs + description: Récupérer la liste des EP en cours. parameters: + - $ref: ../../parameters/query/idBUs.yaml - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/query/idAgence.yaml - - $ref: ../../parameters/query/idBU.yaml - $ref: ../../parameters/query/numPage.yaml - $ref: ../../parameters/query/parPage.yaml - $ref: ../../parameters/query/texte.yaml - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml responses: '200': - $ref: ../../responses/ep/getListeEP.yaml + $ref: ../../responses/ep/getListeEpInformation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/ep/epEnCoursCount.yaml b/paths/ep/epEnCoursCount.yaml new file mode 100644 index 0000000..e257199 --- /dev/null +++ b/paths/ep/epEnCoursCount.yaml @@ -0,0 +1,26 @@ +get: + tags: + - ep + operationId: getEPEnCoursCount + description: Récupérer le nombre total d’EP en cours. + parameters: + - $ref: ../../parameters/query/idBUs.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + responses: + '200': + $ref: ../../responses/ep/getCountEp.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/paths/ep/epEnCoursIdCollaborateur.yaml b/paths/ep/epEnCoursIdCollaborateur.yaml new file mode 100644 index 0000000..edc8819 --- /dev/null +++ b/paths/ep/epEnCoursIdCollaborateur.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getProchainEPCollaborateur + description: Récupérer le prochain EP du collaborateur. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getEpInformation.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/paths/ep/epEnCoursIdReferent.yaml b/paths/ep/epEnCoursIdReferent.yaml new file mode 100644 index 0000000..0e01db9 --- /dev/null +++ b/paths/ep/epEnCoursIdReferent.yaml @@ -0,0 +1,31 @@ +get: + tags: + - ep + operationId: getEPEnCoursReferent + description: Récupérer la liste des prochains EP d’un référent. + parameters: + - $ref: ../../parameters/path/idReferent.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/epObligatoire.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + + responses: + '200': + $ref: ../../responses/ep/getListeEpInformation.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/paths/ep/epEnCoursIdReferentCount.yaml b/paths/ep/epEnCoursIdReferentCount.yaml new file mode 100644 index 0000000..720c4ff --- /dev/null +++ b/paths/ep/epEnCoursIdReferentCount.yaml @@ -0,0 +1,31 @@ +get: + tags: + - ep + operationId: getEPEnCoursReferentCount + description: Récupérer le nombre total de prochains EP d’un référent. + parameters: + - $ref: ../../parameters/path/idReferent.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/epObligatoire.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + + responses: + '200': + $ref: ../../responses/ep/getCountEp.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/paths/ep/epIdCollaborateur.yaml b/paths/ep/epIdCollaborateur.yaml new file mode 100644 index 0000000..3dd362f --- /dev/null +++ b/paths/ep/epIdCollaborateur.yaml @@ -0,0 +1,22 @@ +delete: + tags: + - ep + operationId: deleteEPCollaborateur + description: Supprimer les EP d’un collaborateur. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '204': + $ref: ../../responses/ep/deleteEpCollaborateur.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/ep/epIdEp.yaml b/paths/ep/epIdEp.yaml new file mode 100644 index 0000000..1c4d443 --- /dev/null +++ b/paths/ep/epIdEp.yaml @@ -0,0 +1,71 @@ +get: + tags: + - ep + operationId: getEPById + description: Récupérer un EP par son id. + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '200': + $ref: ../../responses/ep/getEP.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: + - ep + operationId: updateEP + description: Mettre à jour les informations d’un EP. + parameters: + - $ref: ../../parameters/path/idEP.yaml + requestBody: + $ref: ../../requestbodies/ep.yaml + responses: + '200': + $ref: ../../responses/ep/updateEP.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: + - ep + operationId: deleteEP + description: Annuler/Supprimer un EP d’un collaborateur. + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '204': + $ref: ../../responses/ep/deleteEp.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/ep/epIdEpRappelSignature.yaml b/paths/ep/epIdEpRappelSignature.yaml new file mode 100644 index 0000000..f40c6ab --- /dev/null +++ b/paths/ep/epIdEpRappelSignature.yaml @@ -0,0 +1,24 @@ +get: + tags: + - ep + operationId: rappelSignature + description : Effectuer un rappel de signature. + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '200': + $ref: ../../responses/ep/rappelSignature.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/ep/epParticipationIdCollaborateur.yaml b/paths/ep/epParticipationIdCollaborateur.yaml new file mode 100644 index 0000000..671fb0a --- /dev/null +++ b/paths/ep/epParticipationIdCollaborateur.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getEPEnCoursCollaborateurParticipant + description: Récupérer les informations des EP en cours auxquels le collaborateur est participant. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getListeEpInformation.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/paths/ep/epParticipationIdCollaborateurCount.yaml b/paths/ep/epParticipationIdCollaborateurCount.yaml new file mode 100644 index 0000000..541d554 --- /dev/null +++ b/paths/ep/epParticipationIdCollaborateurCount.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getEPEnCoursCollaborateurParticipantCount + description: Récupérer le nombre total d’informations des EP en cours auxquels le collaborateur est participant. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getCountEp.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/paths/ep/epSaisieCollaborateur.yaml b/paths/ep/epSaisieCollaborateur.yaml new file mode 100644 index 0000000..1b85c40 --- /dev/null +++ b/paths/ep/epSaisieCollaborateur.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getEPSaisieCollaborateur + description: Récupérer l’EP à saisir d’un collaborateur. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/saisirProchainEP.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/paths/ep/epSaisieIdEp.yaml b/paths/ep/epSaisieIdEp.yaml new file mode 100644 index 0000000..e55d7a8 --- /dev/null +++ b/paths/ep/epSaisieIdEp.yaml @@ -0,0 +1,28 @@ +put: + tags: + - ep + operationId: updateEPSaisie + description: Sauvegarder une saisie EP. + parameters: + - $ref: ../../parameters/path/idEP.yaml + requestBody: + $ref: ../../requestbodies/saisieEP.yaml + responses: + '200': + $ref: ../../responses/ep/updateSaisieEp.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 + diff --git a/paths/ep/epSaisieReferent.yaml b/paths/ep/epSaisieReferent.yaml new file mode 100644 index 0000000..638d731 --- /dev/null +++ b/paths/ep/epSaisieReferent.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getEPSaisieReferent + description: Récupérer l’EP à saisir d’un référent. + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '200': + $ref: ../../responses/ep/saisirProchainEP.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/paths/ep/epSignes.yaml b/paths/ep/epSignes.yaml index 35f767c..013c7ef 100644 --- a/paths/ep/epSignes.yaml +++ b/paths/ep/epSignes.yaml @@ -2,18 +2,25 @@ get: tags: - ep operationId: getEPSignes - description: Récupérer la liste de tous les EP collaborateur signés + description: Récupérer la liste des EP signés. parameters: + - $ref: ../../parameters/query/idBUs.yaml - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/query/idAgence.yaml - - $ref: ../../parameters/query/idBU.yaml - $ref: ../../parameters/query/numPage.yaml - $ref: ../../parameters/query/parPage.yaml - $ref: ../../parameters/query/texte.yaml - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml responses: '200': - $ref: ../../responses/ep/getListeEP.yaml + $ref: ../../responses/ep/getListeEpInformation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/ep/epSignesCount.yaml b/paths/ep/epSignesCount.yaml new file mode 100644 index 0000000..8770dd0 --- /dev/null +++ b/paths/ep/epSignesCount.yaml @@ -0,0 +1,26 @@ +get: + tags: + - ep + operationId: getEPSignesCount + description: Récupérer le nombre total d’EP signés. + parameters: + - $ref: ../../parameters/query/idBUs.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + responses: + '200': + $ref: ../../responses/ep/getCountEp.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/paths/ep/epSignesIdCollaborateur.yaml b/paths/ep/epSignesIdCollaborateur.yaml new file mode 100644 index 0000000..033bce5 --- /dev/null +++ b/paths/ep/epSignesIdCollaborateur.yaml @@ -0,0 +1,22 @@ +get: + tags: + - ep + operationId: getEPSignesCollaborateur + description: Récupérer la liste des EP signés d’un collaborateur. + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getListeEpInformation.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/paths/ep/epSignesIdReferent.yaml b/paths/ep/epSignesIdReferent.yaml new file mode 100644 index 0000000..3682161 --- /dev/null +++ b/paths/ep/epSignesIdReferent.yaml @@ -0,0 +1,29 @@ +get: + tags: + - ep + operationId: getEPSignesReferent + description: Récupérer la liste des EP signés qu’un référent à fait passer. + parameters: + - $ref: ../../parameters/path/idReferent.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + responses: + '200': + $ref: ../../responses/ep/getListeEpInformation.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/paths/ep/epSignesIdReferentCount.yaml b/paths/ep/epSignesIdReferentCount.yaml new file mode 100644 index 0000000..366bf31 --- /dev/null +++ b/paths/ep/epSignesIdReferentCount.yaml @@ -0,0 +1,29 @@ +get: + tags: + - ep + operationId: getEPSignesReferentCount + description: Récupérer le nombre total d’EP signés qu’un référent à fait passer. + parameters: + - $ref: ../../parameters/path/idReferent.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml + - $ref: ../../parameters/query/dateDebut.yaml + - $ref: ../../parameters/query/dateFin.yaml + responses: + '200': + $ref: ../../responses/ep/getCountEp.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/paths/ep/epbycollaborateur.yaml b/paths/ep/epbycollaborateur.yaml deleted file mode 100644 index b74e4d4..0000000 --- a/paths/ep/epbycollaborateur.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - tags: - - ep - operationId: getEPByCollaborateur - description: Récupérer la liste des EP d'un collaborateur - parameters: - - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/path/idCollaborateur.yaml - - $ref: ../../parameters/query/numPage.yaml - - $ref: ../../parameters/query/parPage.yaml - - $ref: ../../parameters/query/statutEP.yaml - - $ref: ../../parameters/query/texte.yaml - - $ref: ../../parameters/query/tri.yaml - responses: - '200': - $ref: ../../responses/ep/getListeEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/epbyid.yaml b/paths/ep/epbyid.yaml deleted file mode 100644 index 1c68d7e..0000000 --- a/paths/ep/epbyid.yaml +++ /dev/null @@ -1,17 +0,0 @@ -get: - tags: - - ep - operationId: getEPById - description: Récupérer un EP par son id - parameters: - - $ref: ../../parameters/path/idEP.yaml - responses: - '200': - $ref: ../../responses/ep/getEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml - diff --git a/paths/ep/epreferent.yaml b/paths/ep/epreferent.yaml deleted file mode 100644 index abdb2bc..0000000 --- a/paths/ep/epreferent.yaml +++ /dev/null @@ -1,22 +0,0 @@ -get: - tags: - - ep - operationId: getEPByReferent - description: Récupérer la liste de tous les EP fait passer par le référent - parameters: - - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/path/idReferent.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/ep/getListeEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/prochainepcollaborateur.yaml b/paths/ep/prochainepcollaborateur.yaml deleted file mode 100644 index 59e6a0b..0000000 --- a/paths/ep/prochainepcollaborateur.yaml +++ /dev/null @@ -1,16 +0,0 @@ -get: - tags: - - ep - operationId: getProchainEPCollaborateur - description: Récupérer les détails sur quand aura lieu le prochain EP du collaborateur - parameters: - - $ref: ../../parameters/path/idCollaborateur.yaml - responses: - '200': - $ref: ../../responses/ep/getProchainEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/prochainsepreferent.yaml b/paths/ep/prochainsepreferent.yaml deleted file mode 100644 index 1a8254d..0000000 --- a/paths/ep/prochainsepreferent.yaml +++ /dev/null @@ -1,21 +0,0 @@ -get: - tags: - - ep - operationId: getProchainsEPByReferent - description: Récupérer la liste de tous les prochaines EP que fera passer le référent - parameters: - - $ref: ../../parameters/query/asc.yaml - - $ref: ../../parameters/path/idReferent.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/ep/getListeEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/rappelsignature.yaml b/paths/ep/rappelsignature.yaml deleted file mode 100644 index d01bf7b..0000000 --- a/paths/ep/rappelsignature.yaml +++ /dev/null @@ -1,16 +0,0 @@ -get: - tags: - - ep - operationId: rappelSignature - description : Faire un rappel de signature EP - parameters: - - $ref: ../../parameters/path/idEP.yaml - responses: - '201': - $ref: ../../responses/ep/rappelSignature.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/saisirProchainEP.yaml b/paths/ep/saisirProchainEP.yaml deleted file mode 100644 index 94c6c86..0000000 --- a/paths/ep/saisirProchainEP.yaml +++ /dev/null @@ -1,16 +0,0 @@ -get: - tags: - - ep - operationId: saisieProchainEP - description: Récupérer le prochain EP du collaborateur dans le but de le saisir - parameters: - - $ref: ../../parameters/path/idCollaborateur.yaml - responses: - '200': - $ref: ../../responses/ep/saisirProchainEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/updateEP.yaml b/paths/ep/updateEP.yaml deleted file mode 100644 index a566723..0000000 --- a/paths/ep/updateEP.yaml +++ /dev/null @@ -1,15 +0,0 @@ -put: - tags: - - ep - operationId: updateEP - description: Mettre à jour l'EP déjà saisie - parameters: - - $ref: ../../parameters/path/idEP.yaml - requestBody: - $ref: ../../requestbodies/ep.yaml - responses: - '200': - $ref: ../../responses/ep/updateEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/ep/updateSaisieEP.yaml b/paths/ep/updateSaisieEP.yaml deleted file mode 100644 index bfb1be6..0000000 --- a/paths/ep/updateSaisieEP.yaml +++ /dev/null @@ -1,15 +0,0 @@ -put: - tags: - - ep - operationId: updateSaisieEP - description: Poursuivre le processus de l'EP ou bien seulement sauvegarder les modifications - parameters: - - $ref: ../../parameters/path/idEP.yaml - requestBody: - $ref: ../../requestbodies/saisieEP.yaml - responses: - '200': - $ref: ../../responses/ep/updateEP.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/note/notesIdNote.yaml b/paths/note/notesIdNote.yaml index 64254e7..1f0bb64 100644 --- a/paths/note/notesIdNote.yaml +++ b/paths/note/notesIdNote.yaml @@ -51,15 +51,21 @@ delete: tags: - notes operationId: deleteNote - description: Supprimer une note + description: Supprimer une note. parameters: - $ref: ../../parameters/path/idNote.yaml responses: '204': $ref: ../../responses/note/noteSupprimee.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 diff --git a/responses/_index.yaml b/responses/_index.yaml index 28fa8f8..f3bb0c4 100644 --- a/responses/_index.yaml +++ b/responses/_index.yaml @@ -42,7 +42,7 @@ GetEPResponse: $ref: ./ep/getEP.yaml GetListeEPResponse: - $ref: ./ep/getListeEP.yaml + $ref: ./ep/getListeEpInformation.yaml GetListeParticipantsResponse: $ref: ./ep/getListeParticipantsEP.yaml diff --git a/responses/ep/deleteEp.yaml b/responses/ep/deleteEp.yaml new file mode 100644 index 0000000..96e3a98 --- /dev/null +++ b/responses/ep/deleteEp.yaml @@ -0,0 +1 @@ +description: EP supprimé avec succès \ No newline at end of file diff --git a/responses/ep/deleteEpCollaborateur.yaml b/responses/ep/deleteEpCollaborateur.yaml new file mode 100644 index 0000000..861c60b --- /dev/null +++ b/responses/ep/deleteEpCollaborateur.yaml @@ -0,0 +1 @@ +description: EP supprimés avec succès \ No newline at end of file diff --git a/responses/ep/getCountEp.yaml b/responses/ep/getCountEp.yaml new file mode 100644 index 0000000..6b80e6e --- /dev/null +++ b/responses/ep/getCountEp.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: integer + format: int64 + description: Nombre total d’EP. \ No newline at end of file diff --git a/responses/ep/getEpInformation.yaml b/responses/ep/getEpInformation.yaml new file mode 100644 index 0000000..9591387 --- /dev/null +++ b/responses/ep/getEpInformation.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/ep/epInformations.yaml \ No newline at end of file diff --git a/responses/ep/getlisteep.yaml b/responses/ep/getListeEpInformation.yaml similarity index 100% rename from responses/ep/getlisteep.yaml rename to responses/ep/getListeEpInformation.yaml diff --git a/responses/ep/rappelSignature.yaml b/responses/ep/rappelSignature.yaml index e136067..39a4dd3 100644 --- a/responses/ep/rappelSignature.yaml +++ b/responses/ep/rappelSignature.yaml @@ -1 +1 @@ -description: Notification de rappel envoyé \ No newline at end of file +description: Ok \ No newline at end of file diff --git a/responses/ep/updateSaisieEp.yaml b/responses/ep/updateSaisieEp.yaml new file mode 100644 index 0000000..17708b4 --- /dev/null +++ b/responses/ep/updateSaisieEp.yaml @@ -0,0 +1,5 @@ +description: EP sauvegardé avec succès +content: + application/json: + schema: + $ref: ../../schemas/ep/epSaisie.yaml \ No newline at end of file diff --git a/responses/ep/updateep.yaml b/responses/ep/updateep.yaml index 9be2f77..ef1bcaa 100644 --- a/responses/ep/updateep.yaml +++ b/responses/ep/updateep.yaml @@ -1 +1,5 @@ -description: EP mise à jour avec succès \ No newline at end of file +description: Informations de l’EP modifiées avec succès +content: + application/json: + schema: + $ref: ../../schemas/ep/ep.yaml \ No newline at end of file