diff --git a/openapi.yaml b/openapi.yaml index 3eee84d..c0832f6 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.2.1 + version: 1.3.0 title: API du serveur de l'application de digitalisation des EP description: API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. @@ -11,68 +11,150 @@ servers: - url: http://localhost:3000/api description: json-server pour les premiers tests - - -paths: +paths: + #Collaborateur /collaborateurs: $ref: ./paths/collaborateur/collaborateurs.yaml /collaborateurs/{idCollaborateur}: - $ref: ./paths/collaborateur/collaborateurbyid.yaml + $ref: ./paths/collaborateur/collaborateurById.yaml /collaborateurs/{mail}: - $ref: ./paths/collaborateur/collaborateurbymail.yaml + $ref: ./paths/collaborateur/collaborateurByMail.yaml + /collaborateurs/{mail}/profil: + $ref: ./paths/collaborateur/collaborateurProfilByMail.yaml /collaborateurs/referent/{idReferent}: - $ref: ./paths/collaborateur/collaborateursreferent.yaml + $ref: ./paths/collaborateur/collaborateursReferent.yaml + #Note + /notes/: + $ref: ./paths/note/note.yaml + /notes/{idNote}: + $ref: ./paths/note/noteById.yaml + /notes/auteur/{idReferent}: + $ref: ./paths/note/notesAuteur.yaml + /notes/auteur/{idReferent}/collaborateur/{idCollaborateur}: + $ref: ./paths/note/notesParCollaborateur.yaml + #Referent /referents: $ref: ./paths/referents/referents.yaml /referents/{idReferent}: - $ref: ./paths/referents/referentbyid.yaml + $ref: ./paths/referents/referentById.yaml /referents/collaborateur/{idCollaborateur}: - $ref: ./paths/referents/referentbycollaborateur.yaml + $ref: ./paths/referents/referentByCollaborateur.yaml + #EP /ep: $ref: ./paths/ep/ep.yaml /ep/{idEP}: - $ref: ./paths/ep/epbyid.yaml + $ref: ./paths/ep/epById.yaml /ep/collaborateur/{idCollaborateur}: - $ref: ./paths/ep/epbycollaborateur.yaml + $ref: ./paths/ep/epByCollaborateur.yaml /ep/collaborateur/{idCollaborateur}/prochain: - $ref: ./paths/ep/prochainepcollaborateur.yaml + $ref: ./paths/ep/prochainEPCollaborateur.yaml + /ep/collaborateur/{idCollaborateur}/prochain/saisir: + $ref: ./paths/ep/saisirProchainEP.yaml /ep/referent/{idReferent}: - $ref: ./paths/ep/epreferent.yaml + $ref: ./paths/ep/epReferent.yaml /ep/referent/{idReferent}/prochains: - $ref: ./paths/ep/prochainsepreferent.yaml + $ref: ./paths/ep/prochainsEPReferent.yaml /ep/{idEP}/rappelSignature: - $ref: ./paths/ep/rappelsignature.yaml + $ref: ./paths/ep/rappelSignature.yaml /ep/update: - $ref: ./paths/ep/update.yaml - /ep/prochains: - $ref: ./paths/ep/prochainsep.yaml - /ep/epi: - $ref: ./paths/ep/epi.yaml + $ref: ./paths/ep/updateEP.yaml + /ep/enCours: + $ref: ./paths/ep/epEnCours.yaml + /ep/signes: + $ref: ./paths/ep/epSignes.yaml + + #DemandeEPI + /demandesepi/collaborateur/{idCollaborateur}: + $ref: ./paths/demandeepi/demandesEPICollaborateur.yaml + /demandesepi/collaborateur/{idCollaborateur}/enCours: + $ref: ./paths/demandeepi/demandeEPIEnCours.yaml + /demandesepi/collaborateur/{idCollaborateur}/demande: + $ref: ./paths/demandeepi/demandeEPI.yaml + /demandesepi/referent/{idReferent}: + $ref: ./paths/demandeepi/demandesEPIReferent.yaml + /demandesepi/referent/{idReferent}/demande/{idCollaborateur}: + $ref: ./paths/demandeepi/creationEPI.yaml + /demandesepi/{idDemandeEPI}/repondre: + $ref: ./paths/demandeepi/reponseEPI.yaml + /demandesepi/{idDemandeEPI}/annuler: + $ref: ./paths/demandeepi/annulerDemandeEPI.yaml + /demandesepi/demandeassistante/{idCollaborateur}: + $ref: ./paths/demandeepi/demandeAssistante.yaml + + #DemandeDelegation + /demandesdelegation/{idCollaborateur}: + $ref: ./paths/demandedelegation/demandesDelegation.yaml + /demandesdelegation/ep/{idEP}/{idCollaborateur}: + $ref: ./paths/demandedelegation/faireDemandeDelegation.yaml + /demandesdelegation/{idDemandeDelegation}/repondre: + $ref: ./paths/demandedelegation/repondreDemandeDelegation.yaml + + #Engagement + /engagements: + $ref: ./paths/engagement/engagements.yaml + /engagements/enattente: + $ref: ./paths/engagement/engagementsEnAttente.yaml + /engagements/repondus: + $ref: ./paths/engagement/engagementsRepondus.yaml + + #DemandeFormation + /demandeformation: + $ref: ./paths/demandeformation/demandesFormation.yaml + /demandeformation/enattente: + $ref: ./paths/demandeformation/demandesFormationAttente.yaml + /demandeformation/repondus: + $ref: ./paths/demandeformation/demandesFormationRepondues.yaml + + #OrigineDemandeFormation + /originesdemandesformation: + $ref: ./paths/demandeformation/originesDemandesFormation.yaml + #Theme + /themes: + $ref: ./paths/demandeformation/themes.yaml + #Formation /formations: $ref: ./paths/formation/formations.yaml - /formations/prochaines: - $ref: ./paths/formation/prochainesformations.yaml /formations/{idFormation}: - $ref: ./paths/formation/formationbyid.yaml - + $ref: ./paths/formation/formationById.yaml + /formations/prochaines: + $ref: ./paths/formation/prochainesFormations.yaml + /formations/realisees: + $ref: ./paths/formation/formationsRealisees.yaml + /formations/annulees: + $ref: ./paths/formation/formationsAnnulees.yaml - /participationsformation/collaborateur/{idCollaborateur}: - $ref: ./paths/participationformation/participationbycollaborateur.yaml - - - /demandeformation: - $ref: ./paths/demandeformation/demandesformation.yaml + #OrigineFormation + /originesFormation: + $ref: ./paths/formation/originesFormation.yaml - - /engagements/: - $ref: ./paths/engagement/engagements.yaml + #StatutFormation + /statutsFormation: + $ref: ./paths/formation/statutsFormation.yaml + + #ModeFormation + /modesFormation: + $ref: ./paths/formation/modesFormation.yaml + + #TypeFormation + /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 components: schemas: diff --git a/parameters/_index.yaml b/parameters/_index.yaml index 162851f..fd6f482 100644 --- a/parameters/_index.yaml +++ b/parameters/_index.yaml @@ -7,6 +7,18 @@ token: idCollaborateur: $ref: ./path/idCollaborateur.yaml +idDemandeEDelegation: + $ref: ./path/idDemandeDelegation.yaml + +idDemandeEPI: + $ref: ./path/idDemandeEPI.yaml + +idDemandeFormation: + $ref: ./path/idDemandeFormation.yaml + +idEngagement: + $ref: ./path/idEngagement.yaml + idEP: $ref: ./path/idEP.yaml @@ -16,6 +28,12 @@ idEvaluation: idFormation: $ref: ./path/idFormation.yaml +idNote: + $ref: ./path/idNote.yaml + +idParticipationFormation: + $ref: ./path/idParticipationFormation.yaml + idReferent: $ref: ./path/idReferent.yaml @@ -27,17 +45,11 @@ type: #QUERY -actionep: - $ref: ./query/actionep.yaml - -assistants: - $ref: ./query/assistants.yaml - -collaborateurs: - $ref: ./query/collaborateurs.yaml +actionEP: + $ref: ./query/actionEP.yaml -cptechlead: - $ref: ./query/cptechlead.yaml +asc: + $ref: ./query/asc.yaml fonctions: $ref: ./query/fonctions.yaml @@ -45,20 +57,29 @@ fonctions: idAgence: $ref: ./query/idAgence.yaml -idBu: - $ref: ./query/idBu.yaml +idBU: + $ref: ./query/idBU.yaml idCollaborateurs: $ref: ./query/idCollaborateurs.yaml -ra: - $ref: ./query/ra.yaml +numPage: + $ref: ./query/numPage.yaml + +parPage: + $ref: ./query/parPage.yaml + +statutEP: + $ref: ./query/statutEP.yaml -referents: - $ref: ./query/referents.yaml +statutFormation: + $ref: ./query/statutFormation.yaml -rh: - $ref: ./query/rh.yaml +texte: + $ref: ./query/texte.yaml -role: - $ref: ./query/role.yaml \ No newline at end of file +theme: + $ref: ./query/theme.yaml + +tri: + $ref: ./query/tri.yaml \ No newline at end of file diff --git a/parameters/header/token.yaml b/parameters/header/token.yaml index c9a32e1..e7a968a 100644 --- a/parameters/header/token.yaml +++ b/parameters/header/token.yaml @@ -3,4 +3,4 @@ name: token schema: type: string required: true -description: Token Keycloak que le serveur doit faire analyser +description: Token Keycloak envoyé au serveur. Le serveur devra analyser le token pour vérifier, si oui ou non, il est valide et si l'utilisateur a les droits d'accès à la ressource en question. Il peut aussi être utilisé pour faire une recherche par mail. diff --git a/parameters/path/idCollaborateur.yaml b/parameters/path/idCollaborateur.yaml index 246ec8c..c789ad7 100644 --- a/parameters/path/idCollaborateur.yaml +++ b/parameters/path/idCollaborateur.yaml @@ -3,5 +3,5 @@ name: idCollaborateur schema: type: string format: uuid -description: id collaborateur -required: true \ No newline at end of file +required: true +description: id collaborateur \ No newline at end of file diff --git a/parameters/path/idDemandeDelegation.yaml b/parameters/path/idDemandeDelegation.yaml new file mode 100644 index 0000000..3961f67 --- /dev/null +++ b/parameters/path/idDemandeDelegation.yaml @@ -0,0 +1,6 @@ +in: path +name: idDemandeDelegation +schema: + type: integer +required: true +description: id demande delegation diff --git a/parameters/path/idDemandeEPI.yaml b/parameters/path/idDemandeEPI.yaml new file mode 100644 index 0000000..a4e1b75 --- /dev/null +++ b/parameters/path/idDemandeEPI.yaml @@ -0,0 +1,6 @@ +in: path +name: idDemandeEPI +schema: + type: integer +required: true +description: id demande EPI diff --git a/parameters/path/idDemandeFormation.yaml b/parameters/path/idDemandeFormation.yaml new file mode 100644 index 0000000..4e9f6fa --- /dev/null +++ b/parameters/path/idDemandeFormation.yaml @@ -0,0 +1,6 @@ +in: path +name: idDemandeFormation +schema: + type: integer +required: true +description: id demande formation diff --git a/parameters/path/idEP.yaml b/parameters/path/idEP.yaml index 2d78feb..15c6157 100644 --- a/parameters/path/idEP.yaml +++ b/parameters/path/idEP.yaml @@ -1,7 +1,6 @@ in: path name: idEP schema: - type: string - format: uuid + type: integer required: true description: id EP diff --git a/parameters/path/idEngagement.yaml b/parameters/path/idEngagement.yaml new file mode 100644 index 0000000..ead38a7 --- /dev/null +++ b/parameters/path/idEngagement.yaml @@ -0,0 +1,6 @@ +in: path +name: idEngagement +schema: + type: integer +required: true +description: id engagement diff --git a/parameters/path/idEvaluation.yaml b/parameters/path/idEvaluation.yaml index 3f0e96c..e24a903 100644 --- a/parameters/path/idEvaluation.yaml +++ b/parameters/path/idEvaluation.yaml @@ -1,6 +1,6 @@ in: path name: idEvaluation schema: - type: string + type: integer required: true description: id evaluation \ No newline at end of file diff --git a/parameters/path/idNote.yaml b/parameters/path/idNote.yaml new file mode 100644 index 0000000..3613452 --- /dev/null +++ b/parameters/path/idNote.yaml @@ -0,0 +1,6 @@ +in: path +name: idNote +schema: + type: integer +required: true +description: id note diff --git a/parameters/path/idParticipationFormation.yaml b/parameters/path/idParticipationFormation.yaml new file mode 100644 index 0000000..a3d3325 --- /dev/null +++ b/parameters/path/idParticipationFormation.yaml @@ -0,0 +1,6 @@ +in: path +name: idParticipationFormation +schema: + type: number +required: true +description: id participation formation \ No newline at end of file diff --git a/parameters/path/mail.yaml b/parameters/path/mail.yaml index 1c3c87e..96ab877 100644 --- a/parameters/path/mail.yaml +++ b/parameters/path/mail.yaml @@ -2,5 +2,5 @@ in: path name: mail schema: type: string -description: mail de l'utilisateur connecté (mail obetenu via Keycloak) -required: true \ No newline at end of file +required: true +description: mail de l'utilisateur connecté (mail obtenu via le token Keycloak) \ No newline at end of file diff --git a/parameters/query/actionep.yaml b/parameters/query/actionep.yaml index 47cf831..fb231e1 100644 --- a/parameters/query/actionep.yaml +++ b/parameters/query/actionep.yaml @@ -1,6 +1,6 @@ in: query name: actionep schema: - type: string + type: integer required: true -description: paramêtre pour indiquer l'action à faire au moment de la mise à jour de l'EP +description: L'action à effectuer au moment de la mise à jour de l'EP \ No newline at end of file diff --git a/parameters/query/asc.yaml b/parameters/query/asc.yaml new file mode 100644 index 0000000..b56cce9 --- /dev/null +++ b/parameters/query/asc.yaml @@ -0,0 +1,7 @@ +in: query +name: asc +schema: + type: boolean + default: true +description: Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false) +required: true \ No newline at end of file diff --git a/parameters/query/assistants.yaml b/parameters/query/assistants.yaml deleted file mode 100644 index ddd5251..0000000 --- a/parameters/query/assistants.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: assistants -schema: - type: boolean -required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les assistants dans la requête \ No newline at end of file diff --git a/parameters/query/collaborateurs.yaml b/parameters/query/collaborateurs.yaml deleted file mode 100644 index 9336258..0000000 --- a/parameters/query/collaborateurs.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: collaborateurs -schema: - type: boolean -required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les collaborateurs dans la requête \ No newline at end of file diff --git a/parameters/query/cptechlead.yaml b/parameters/query/cptechlead.yaml deleted file mode 100644 index 4580ab5..0000000 --- a/parameters/query/cptechlead.yaml +++ /dev/null @@ -1,5 +0,0 @@ -in: query -name: cptechlead -schema: - type: boolean -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les CP et TeachLead dans la requête \ No newline at end of file diff --git a/parameters/query/fonctions.yaml b/parameters/query/fonctions.yaml index be611c0..2f70f3e 100644 --- a/parameters/query/fonctions.yaml +++ b/parameters/query/fonctions.yaml @@ -12,4 +12,4 @@ schema: - referent - techlead required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les assistants dans la requête \ No newline at end of file +description: Liste des fonctions des collaborateurs que l'on veut récupérer \ No newline at end of file diff --git a/parameters/query/idAgence.yaml b/parameters/query/idAgence.yaml index d599564..af56fec 100644 --- a/parameters/query/idAgence.yaml +++ b/parameters/query/idAgence.yaml @@ -1,5 +1,5 @@ in: query name: idAgence schema: - type: number + type: integer description: id de l'agence à laquelle sont rattachées les données à récupérer \ No newline at end of file diff --git a/parameters/query/idBu.yaml b/parameters/query/idBu.yaml index 8cf9bcc..d25b8f5 100644 --- a/parameters/query/idBu.yaml +++ b/parameters/query/idBu.yaml @@ -1,5 +1,5 @@ in: query -name: idBu +name: idBU schema: - type: number + type: integer description: id de la business unit à laquelle sont rattachées les données à récupérer \ No newline at end of file diff --git a/parameters/query/idReferent.yaml b/parameters/query/idReferent.yaml deleted file mode 100644 index 5676a47..0000000 --- a/parameters/query/idReferent.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: idReferent -schema: - type: string - format: uuid -description: id referent \ No newline at end of file diff --git a/parameters/query/numPage.yaml b/parameters/query/numPage.yaml new file mode 100644 index 0000000..086a066 --- /dev/null +++ b/parameters/query/numPage.yaml @@ -0,0 +1,7 @@ +in: query +name: numPage +schema: + type: integer + default : 1 +description: Numéro de la page du tableau qui affiche les données +required: true \ No newline at end of file diff --git a/parameters/query/parPage.yaml b/parameters/query/parPage.yaml new file mode 100644 index 0000000..2e39b9c --- /dev/null +++ b/parameters/query/parPage.yaml @@ -0,0 +1,6 @@ +in: query +name: parPAge +schema: + type: integer +description: Nombre d'éléments affiché sur chaque page du tableau +required: true \ No newline at end of file diff --git a/parameters/query/ra.yaml b/parameters/query/ra.yaml deleted file mode 100644 index cb70864..0000000 --- a/parameters/query/ra.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: ra -schema: - type: boolean -required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les responsables d'agence dans la requête \ No newline at end of file diff --git a/parameters/query/referents.yaml b/parameters/query/referents.yaml deleted file mode 100644 index ef49c70..0000000 --- a/parameters/query/referents.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: referents -schema: - type: boolean -required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les référents dans la requête \ No newline at end of file diff --git a/parameters/query/rh.yaml b/parameters/query/rh.yaml deleted file mode 100644 index 381995e..0000000 --- a/parameters/query/rh.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: rh -schema: - type: boolean -required: false -description: paramètre pour indiquer explicitement que l'on souhaite récupérer les RH dans la requête \ No newline at end of file diff --git a/parameters/query/role.yaml b/parameters/query/role.yaml deleted file mode 100644 index b4299fa..0000000 --- a/parameters/query/role.yaml +++ /dev/null @@ -1,6 +0,0 @@ -in: query -name: role -schema: - type: string -required: true -description: role de l'utilisateur \ No newline at end of file diff --git a/parameters/query/statutEP.yaml b/parameters/query/statutEP.yaml new file mode 100644 index 0000000..0c1d6dc --- /dev/null +++ b/parameters/query/statutEP.yaml @@ -0,0 +1,5 @@ +in: query +name: statutEP +schema: + type: integer +description: Statut de l'EP \ No newline at end of file diff --git a/parameters/query/statutFormation.yaml b/parameters/query/statutFormation.yaml new file mode 100644 index 0000000..41818bf --- /dev/null +++ b/parameters/query/statutFormation.yaml @@ -0,0 +1,5 @@ +in: query +name: statutFormation +schema: + type: integer +description: Statut de la formation \ No newline at end of file diff --git a/parameters/query/texte.yaml b/parameters/query/texte.yaml new file mode 100644 index 0000000..803fb5d --- /dev/null +++ b/parameters/query/texte.yaml @@ -0,0 +1,5 @@ +in: query +name: texte +schema: + type: string +description: Texte permettant d'identifier l'objet rechercher \ No newline at end of file diff --git a/parameters/query/theme.yaml b/parameters/query/theme.yaml new file mode 100644 index 0000000..69d6bf6 --- /dev/null +++ b/parameters/query/theme.yaml @@ -0,0 +1,5 @@ +in: query +name: theme +schema: + type: integer +description: Thème des demandes de formation à récupérer \ No newline at end of file diff --git a/parameters/query/tri.yaml b/parameters/query/tri.yaml new file mode 100644 index 0000000..eb5034a --- /dev/null +++ b/parameters/query/tri.yaml @@ -0,0 +1,5 @@ +in: query +name: tri +schema: + type: string +description: Colonne du tableau sur lequel le tri s'effectue \ No newline at end of file diff --git a/paths/collaborateur/collaborateurProfilByMail.yaml b/paths/collaborateur/collaborateurProfilByMail.yaml new file mode 100644 index 0000000..ea9ae0f --- /dev/null +++ b/paths/collaborateur/collaborateurProfilByMail.yaml @@ -0,0 +1,16 @@ +get: + tags: + - collaborateurs + operationId: getProfilCollaborateurByMail + description: Récupérer un profil collaborateur par mail + parameters: + - $ref: ../../parameters/path/mail.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getProfil.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateurbyid.yaml b/paths/collaborateur/collaborateurbyid.yaml index 4bbf064..e76c17b 100644 --- a/paths/collaborateur/collaborateurbyid.yaml +++ b/paths/collaborateur/collaborateurbyid.yaml @@ -2,15 +2,15 @@ get: tags: - collaborateurs operationId: getCollaborateurById - description: recevoir un collaboratuer par son id + description: Récupérer un collaboratuer par son id parameters: - - $ref: ../../parameters/path/idcollaborateur.yaml + - $ref: ../../parameters/path/idCollaborateur.yaml responses: '200': - $ref: ../../responses/collaborateur/getcollaborateur.yaml + $ref: ../../responses/collaborateur/getCollaborateur.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateurbymail.yaml b/paths/collaborateur/collaborateurbymail.yaml index 645fe22..3c02775 100644 --- a/paths/collaborateur/collaborateurbymail.yaml +++ b/paths/collaborateur/collaborateurbymail.yaml @@ -2,15 +2,15 @@ get: tags: - collaborateurs operationId: getCollaborateurByMail - description: recevoir un collaborateur par son mail + description: Récupérer un collaborateur par son mail parameters: - $ref: ../../parameters/path/mail.yaml responses: '200': - $ref: ../../responses/collaborateur/getcollaborateur.yaml + $ref: ../../responses/collaborateur/getCollaborateur.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateurs.yaml b/paths/collaborateur/collaborateurs.yaml index 9e564d5..e709eaa 100644 --- a/paths/collaborateur/collaborateurs.yaml +++ b/paths/collaborateur/collaborateurs.yaml @@ -2,17 +2,20 @@ get: tags: - collaborateurs operationId: getCollaborateurs - description: recevoir la liste des collaborateurs + description: Récupérer la liste des collaborateurs parameters: - - $ref: ../../parameters/query/assistants.yaml - - $ref: ../../parameters/query/collaborateurs.yaml - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/fonctions.yaml - $ref: ../../parameters/query/idAgence.yaml - - $ref: ../../parameters/query/referents.yaml - - $ref: ../../parameters/query/rh.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 + responses: '200': - $ref: ../../responses/collaborateur/getlistecollaborateurs.yaml + $ref: ../../responses/collaborateur/getListeCollaborateurs.yaml '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateursreferent.yaml b/paths/collaborateur/collaborateursreferent.yaml index 0812e82..5074068 100644 --- a/paths/collaborateur/collaborateursreferent.yaml +++ b/paths/collaborateur/collaborateursreferent.yaml @@ -2,15 +2,20 @@ get: tags: - collaborateurs operationId: getCollaborateursByReferent - description: Recevoir la liste des collaborateurs de le référent à la charge + description: Récupérer la liste des collaborateurs dont le référent à la charge parameters: - - $ref: ../../parameters/path/idreferent.yaml + - $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/collaborateur/getcollaborateur.yaml + '200': + $ref: ../../responses/collaborateur/getListeCollaborateurs.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandedelegation/demandesDelegation.yaml b/paths/demandedelegation/demandesDelegation.yaml new file mode 100644 index 0000000..dba2fe0 --- /dev/null +++ b/paths/demandedelegation/demandesDelegation.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesDelegation + operationId: getDemandesDelegation + description: Récupération de la liste des demandes de délégation + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/demandedelegation/getListeDemandesDelegation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandedelegation/faireDemandeDelegation.yaml b/paths/demandedelegation/faireDemandeDelegation.yaml new file mode 100644 index 0000000..bc0cfc6 --- /dev/null +++ b/paths/demandedelegation/faireDemandeDelegation.yaml @@ -0,0 +1,17 @@ +get: + tags: + - demandesDelegation + operationId: faireDemandeDelegation + description: Faire une demande de délégation à une autre personne + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + - $ref: ../../parameters/path/idEP.yaml + responses: + '200': + $ref: ../../responses/demandedelegation/demandeDelegationCreee.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandedelegation/repondreDemandeDelegation.yaml b/paths/demandedelegation/repondreDemandeDelegation.yaml new file mode 100644 index 0000000..9239311 --- /dev/null +++ b/paths/demandedelegation/repondreDemandeDelegation.yaml @@ -0,0 +1,18 @@ +put: + tags: + - demandesDelegation + operationId: repondreDemandeDelegation + description: Faire une demande de délégation à une autre personne + parameters: + - $ref: ../../parameters/path/idDemandeDelegation.yaml + requestBody: + $ref: ../../requestbodies/demandeDelegation.yaml + responses: + '200': + $ref: ../../responses/demandedelegation/reponseDemandeDelegation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/annulerDemandeEPI.yaml b/paths/demandeepi/annulerDemandeEPI.yaml new file mode 100644 index 0000000..64b7d0c --- /dev/null +++ b/paths/demandeepi/annulerDemandeEPI.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: annulerDemandeEPI + description: Annuler la demande d'EPI + parameters: + - $ref: ../../parameters/path/idDemandeEPI.yaml + responses: + '200': + $ref: ../../responses/demandeepi/demandeEPIAnnulee.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/creationEPI.yaml b/paths/demandeepi/creationEPI.yaml new file mode 100644 index 0000000..012b812 --- /dev/null +++ b/paths/demandeepi/creationEPI.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: createEPI + description: Lancer la procedure pour un entretien professionnel intermediaire, une demande d'EPI validée est créé par la même occasion + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/demandeepi/epiCree.yaml + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/demandeAssistante.yaml b/paths/demandeepi/demandeAssistante.yaml new file mode 100644 index 0000000..f1df769 --- /dev/null +++ b/paths/demandeepi/demandeAssistante.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: demandeEPIAssistante + description: Demande d'EPI et par l'assistant et création automatique de l'EPI + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/demandeepi/epiCree.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/demandeEPI.yaml b/paths/demandeepi/demandeEPI.yaml new file mode 100644 index 0000000..3cf67b7 --- /dev/null +++ b/paths/demandeepi/demandeEPI.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: demandeEPI + description: Demande d'EPI par un collaborateur + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/demandeepi/demandeEPICreee.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/demandeEPIEnCours.yaml b/paths/demandeepi/demandeEPIEnCours.yaml new file mode 100644 index 0000000..f9f176d --- /dev/null +++ b/paths/demandeepi/demandeEPIEnCours.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: getEPIEnCours + description: Récupération de l'EPI en cours d'un collaborateur + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/demandeepi/getDemandeEPI.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/demandesEPICollaborateur.yaml b/paths/demandeepi/demandesEPICollaborateur.yaml new file mode 100644 index 0000000..30a9729 --- /dev/null +++ b/paths/demandeepi/demandesEPICollaborateur.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: getEPICollaborateur + description: Récupération de la liste des précédents EPI d'un collaborateur + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/demandeepi/getListeDemandesEPI.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/demandesEPIReferent.yaml b/paths/demandeepi/demandesEPIReferent.yaml new file mode 100644 index 0000000..b9e0f82 --- /dev/null +++ b/paths/demandeepi/demandesEPIReferent.yaml @@ -0,0 +1,16 @@ +get: + tags: + - demandesEPI + operationId: getEPIReferent + description: Récupération de la liste des précédents EPI d'un referent + parameters: + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/demandeepi/getListeDemandesEPI.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeepi/reponseEPI.yaml b/paths/demandeepi/reponseEPI.yaml new file mode 100644 index 0000000..7bc2138 --- /dev/null +++ b/paths/demandeepi/reponseEPI.yaml @@ -0,0 +1,18 @@ +put: + tags: + - demandesEPI + operationId: repondreDemandeEPI + description: Répondre à une demande EPI en attente + parameters: + - $ref: ../../parameters/path/idDemandeEPI.yaml + requestBody: + $ref: ../../requestbodies/demandeEPI.yaml + responses: + '200': + $ref: ../../responses/demandeepi/reponseDemandeEPI.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesFormationAttente.yaml b/paths/demandeformation/demandesFormationAttente.yaml new file mode 100644 index 0000000..3d529e8 --- /dev/null +++ b/paths/demandeformation/demandesFormationAttente.yaml @@ -0,0 +1,20 @@ +get: + tags: + - demandesFormation + operationId: getDemandesFormationEnAttente + description: Récupérer la liste des demandes de formations en attente d'une réponse + 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/texte.yaml + - $ref: ../../parameters/query/theme.yaml + - $ref: ../../parameters/query/tri.yaml + responses: + '200': + $ref: ../../responses/demandeformation/getListeDemandesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesFormationRepondues.yaml b/paths/demandeformation/demandesFormationRepondues.yaml new file mode 100644 index 0000000..a8f681e --- /dev/null +++ b/paths/demandeformation/demandesFormationRepondues.yaml @@ -0,0 +1,20 @@ +get: + tags: + - demandesFormation + operationId: getDemandesFormationRepondues + description: Récupérer la liste des demandes de formations ayant reçu une réponse + 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/texte.yaml + - $ref: ../../parameters/query/theme.yaml + - $ref: ../../parameters/query/tri.yaml + responses: + '200': + $ref: ../../responses/demandeformation/getListeDemandesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml index 814cdf2..40bbc50 100644 --- a/paths/demandeformation/demandesformation.yaml +++ b/paths/demandeformation/demandesformation.yaml @@ -1,14 +1,19 @@ get: tags: - - demandesformation + - demandesFormation operationId: getDemandesFormation - description: recevoir la liste des demandes de formations + description: Récupérer la liste des demandes de formations parameters: - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/idAgence.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/theme.yaml + - $ref: ../../parameters/query/tri.yaml responses: '200': - $ref: ../../responses/formation/demandesFormation.yaml + $ref: ../../responses/demandeformation/getListeDemandesFormation.yaml '403': $ref: ../../responses/erreur/forbidden.yaml @@ -16,13 +21,13 @@ get: post: tags: - demandesformation - operationId: CreerDemandeFormation - description: créer une demande de formation pour un collaborateur + operationId: creerDemandeFormation + description: Créer une demande de formation pour un collaborateur requestBody: - $ref: ../../requestbodies/demandeFormation.yaml + $ref: ../../requestbodies/creationDemandeFormation.yaml responses: '201': - $ref: ../../responses/formation/creerDemandeFormation.yaml + $ref: ../../responses/demandeformation/demandeFormationCreee.yaml '403': $ref: ../../responses/erreur/forbidden.yaml @@ -31,15 +36,15 @@ put: tags: - demandesformation operationId: UpdateDemandeFormation - description: repondre a une demande de formation et la mettre a jour + description: Répondre a une demande de formation et la mettre à jour requestBody: $ref: ../../requestbodies/demandeFormation.yaml responses: '200': - $ref: ../../responses/formation/reponseDemandeFormation.yaml + $ref: ../../responses/demandeformation/reponseDemandeFormation.yaml '201': - $ref: ../../responses/formation/creerDemandeFormation.yaml + $ref: ../../responses/demandeformation/demandeFormationCreee.yaml '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/demandeformation/originesDemandesFormation.yaml b/paths/demandeformation/originesDemandesFormation.yaml new file mode 100644 index 0000000..b2a1d94 --- /dev/null +++ b/paths/demandeformation/originesDemandesFormation.yaml @@ -0,0 +1,11 @@ +get: + tags: + - demandesFormation + operationId: getOriginesDemandesFormation + description: Récupérer la liste des origines des demandes de formation + responses: + '200': + $ref: ../../responses/demandeformation/getListeOriginesDemandesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/demandeformation/themes.yaml b/paths/demandeformation/themes.yaml new file mode 100644 index 0000000..3c4b2e3 --- /dev/null +++ b/paths/demandeformation/themes.yaml @@ -0,0 +1,11 @@ +get: + tags: + - demandesFormation + operationId: getThemes + description: Récupérer la liste des thèmes des demandes de formation + responses: + '200': + $ref: ../../responses/demandeformation/getListeThemes.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/engagement/engagementbyid.yaml b/paths/engagement/engagementbyid.yaml deleted file mode 100644 index 72346c0..0000000 --- a/paths/engagement/engagementbyid.yaml +++ /dev/null @@ -1,14 +0,0 @@ -get: - tags: - - engagements - operationId: getEngagements - description: récupérer la liste des engagements - parameters: - - $ref: ../../parameters/path/idEngagement.yaml - - responses: - '200': - $ref: ../../responses/engagement/engagement.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/engagement/engagements.yaml b/paths/engagement/engagements.yaml index 4baa6de..bbc3127 100644 --- a/paths/engagement/engagements.yaml +++ b/paths/engagement/engagements.yaml @@ -2,14 +2,34 @@ get: tags: - engagements operationId: getEngagements - description: récupérer la liste des engagements + description: Récupérer la liste des engagements parameters: - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/idAgence.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/engagement/engagements.yaml + $ref: ../../responses/engagement/getListeEngagements.yaml '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file + $ref: ../../responses/erreur/forbidden.yaml + +put: + tags: + - engagements + operationId: repondreEngagement + description: Donnez une réponse à un engagement + requestBody: + $ref: ../../requestbodies/engagement.yaml + responses: + '200': + $ref: ../../responses/engagement/reponseEngagement.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + \ No newline at end of file diff --git a/paths/engagement/engagementsEnAttente.yaml b/paths/engagement/engagementsEnAttente.yaml new file mode 100644 index 0000000..a3f13a7 --- /dev/null +++ b/paths/engagement/engagementsEnAttente.yaml @@ -0,0 +1,19 @@ +get: + tags: + - engagements + operationId: getEngagementsEnAttente + description: Récupérer la liste des engagements en attente + parameters: + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/idAgence.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/engagement/getListeEngagements.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/engagement/engagementsRepondus.yaml b/paths/engagement/engagementsRepondus.yaml new file mode 100644 index 0000000..6821043 --- /dev/null +++ b/paths/engagement/engagementsRepondus.yaml @@ -0,0 +1,19 @@ +get: + tags: + - engagements + operationId: getEngagementsRepondus + description: Récupérer la liste des engagements ayant reçu une réponse + parameters: + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/idAgence.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/engagement/getListeEngagements.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/ep/champs.yaml b/paths/ep/champs.yaml deleted file mode 100644 index d10fc3c..0000000 --- a/paths/ep/champs.yaml +++ /dev/null @@ -1,13 +0,0 @@ -get: - tags: - - ep - operationId: getChampsDocumentByEP - description: récupérer les documents en fonction du type de l'EP - parameters: - - $ref: ../../parameters/path/type.yaml - responses: - '200': - $ref: ../../responses/ep/getlistechamps.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/ep/ep.yaml b/paths/ep/ep.yaml index 84e0868..296da20 100644 --- a/paths/ep/ep.yaml +++ b/paths/ep/ep.yaml @@ -2,15 +2,19 @@ get: tags: - ep operationId: getEP - description: recevoir la liste de tous les EP collaborateurs + description: Récupérer la liste de tous les EP collaborateurs parameters: - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/idAgence.yaml - #- $ref: ../../parameters/query/debut.yaml - #- $ref: ../../parameters/query/fin.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 + $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 new file mode 100644 index 0000000..b24a7a5 --- /dev/null +++ b/paths/ep/epEnCours.yaml @@ -0,0 +1,19 @@ +get: + tags: + - ep + operationId: getEPEnCours + description: Récupérer la liste de tous les prochaines 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/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/epSignes.yaml b/paths/ep/epSignes.yaml new file mode 100644 index 0000000..35f767c --- /dev/null +++ b/paths/ep/epSignes.yaml @@ -0,0 +1,19 @@ +get: + tags: + - ep + operationId: getEPSignes + description: Récupérer la liste de tous les EP collaborateur signés + 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/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/epbycollaborateur.yaml b/paths/ep/epbycollaborateur.yaml index 3f7d375..b74e4d4 100644 --- a/paths/ep/epbycollaborateur.yaml +++ b/paths/ep/epbycollaborateur.yaml @@ -2,15 +2,21 @@ get: tags: - ep operationId: getEPByCollaborateur - description: recevoir la liste des EP collaborateur + 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 + $ref: ../../responses/ep/getListeEP.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/epbyid.yaml b/paths/ep/epbyid.yaml index 76ac77a..233d050 100644 --- a/paths/ep/epbyid.yaml +++ b/paths/ep/epbyid.yaml @@ -2,15 +2,15 @@ get: tags: - ep operationId: getEPById - description: recevoir un EP par via son id + description: Récupérer un EP par son id parameters: - $ref: ../../parameters/path/idEP.yaml responses: '200': - $ref: ../../responses/ep/getep.yaml + $ref: ../../responses/ep/getEP.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/epreferent.yaml b/paths/ep/epreferent.yaml index c3cb63e..abdb2bc 100644 --- a/paths/ep/epreferent.yaml +++ b/paths/ep/epreferent.yaml @@ -2,15 +2,21 @@ get: tags: - ep operationId: getEPByReferent - description: recevoir la liste de tous les EP fait passer par le référent + 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 + $ref: ../../responses/ep/getListeEP.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/prochainepcollaborateur.yaml b/paths/ep/prochainepcollaborateur.yaml index 1cc31e1..59e6a0b 100644 --- a/paths/ep/prochainepcollaborateur.yaml +++ b/paths/ep/prochainepcollaborateur.yaml @@ -1,16 +1,16 @@ get: tags: - ep - operationId: getProchainEPByCollaborateur - description: recevoir son prochain 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/getep.yaml + $ref: ../../responses/ep/getProchainEP.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/prochainsep.yaml b/paths/ep/prochainsep.yaml deleted file mode 100644 index 172bd14..0000000 --- a/paths/ep/prochainsep.yaml +++ /dev/null @@ -1,14 +0,0 @@ -get: - tags: - - ep - operationId: getProchainsEP - description: recevoir la liste de tous les prochaines EP collaborateurs - parameters: - - $ref: ../../parameters/query/idBu.yaml - - $ref: ../../parameters/query/idAgence.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/prochainsepreferent.yaml b/paths/ep/prochainsepreferent.yaml index 9a5046a..1a8254d 100644 --- a/paths/ep/prochainsepreferent.yaml +++ b/paths/ep/prochainsepreferent.yaml @@ -2,15 +2,20 @@ get: tags: - ep operationId: getProchainsEPByReferent - description: recevoir la liste de tous les prochaines EP que fera passer le référent + 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 + $ref: ../../responses/ep/getListeEP.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/rappelsignature.yaml b/paths/ep/rappelsignature.yaml index ec426c0..d01bf7b 100644 --- a/paths/ep/rappelsignature.yaml +++ b/paths/ep/rappelsignature.yaml @@ -2,7 +2,7 @@ get: tags: - ep operationId: rappelSignature - description : faire un rappel de signature EP + description : Faire un rappel de signature EP parameters: - $ref: ../../parameters/path/idEP.yaml responses: @@ -13,4 +13,4 @@ get: $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/saisirProchainEP.yaml b/paths/ep/saisirProchainEP.yaml new file mode 100644 index 0000000..94c6c86 --- /dev/null +++ b/paths/ep/saisirProchainEP.yaml @@ -0,0 +1,16 @@ +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/update.yaml b/paths/ep/update.yaml deleted file mode 100644 index 05731bb..0000000 --- a/paths/ep/update.yaml +++ /dev/null @@ -1,13 +0,0 @@ -put: - tags: - - ep - operationId: updateEP - description: update ep - 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/updateEP.yaml b/paths/ep/updateEP.yaml new file mode 100644 index 0000000..3b56f03 --- /dev/null +++ b/paths/ep/updateEP.yaml @@ -0,0 +1,13 @@ +put: + tags: + - ep + operationId: updateEP + description: Mettre à jour l'EP déjà saisie + 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 new file mode 100644 index 0000000..940bf50 --- /dev/null +++ b/paths/ep/updateSaisieEP.yaml @@ -0,0 +1,13 @@ +put: + tags: + - ep + operationId: updateEP + description: Poursuivre le processus de l'EP ou bien seulement sauvegarder les modifications + 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/formation/evaluer.yaml b/paths/formation/evaluer.yaml new file mode 100644 index 0000000..17570a6 --- /dev/null +++ b/paths/formation/evaluer.yaml @@ -0,0 +1,18 @@ +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 + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/formation/formationbyid.yaml b/paths/formation/formationbyid.yaml index 5183a5c..10eeb9f 100644 --- a/paths/formation/formationbyid.yaml +++ b/paths/formation/formationbyid.yaml @@ -7,13 +7,13 @@ get: - $ref: ../../parameters/path/idFormation.yaml responses: '200': - $ref: ../../responses/formation/getformation.yaml + $ref: ../../responses/formation/getFormation.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml + $ref: ../../responses/erreur/notFound.yaml delete: @@ -25,7 +25,7 @@ delete: - $ref: ../../parameters/path/idFormation.yaml responses: '204': - $ref: ../../responses/formation/supprimerFormation.yaml + $ref: ../../responses/formation/formationSupprimee.yaml '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/formations.yaml b/paths/formation/formations.yaml index 85436eb..ced12f3 100644 --- a/paths/formation/formations.yaml +++ b/paths/formation/formations.yaml @@ -2,13 +2,18 @@ get: tags: - formations operationId: getFormations - description: recevoir la liste des formations + description: Récupérer la liste des formations parameters: - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/idAgence.yaml + - $ref: ../../parameters/query/numPage.yaml + - $ref: ../../parameters/query/parPage.yaml + - $ref: ../../parameters/query/statutformation.yaml + - $ref: ../../parameters/query/texte.yaml + - $ref: ../../parameters/query/tri.yaml responses: '200': - $ref: ../../responses/formation/getlisteformations.yaml + $ref: ../../responses/formation/getListeFormations.yaml '403': $ref: ../../responses/erreur/forbidden.yaml @@ -17,12 +22,12 @@ post: tags: - formations operationId: ajouterFormation - description: ajouter une nouvelle formations + description: Ajouter une nouvelle formation requestBody: $ref: ../../requestbodies/formation.yaml responses: '201': - $ref: ../../responses/formation/creerFormation.yaml + $ref: ../../responses/formation/formationCreee.yaml '403': $ref: ../../responses/erreur/forbidden.yaml @@ -31,7 +36,7 @@ put: tags: - formations operationId: updateFormation - description: update une formation + description: Mettre à jour une formation requestBody: $ref: ../../requestbodies/formation.yaml responses: @@ -39,7 +44,7 @@ put: $ref: ../../responses/formation/updateFormation.yaml '201': - $ref: ../../responses/formation/creerFormation.yaml + $ref: ../../responses/formation/formationCreee.yaml '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/formationsAnnulees.yaml b/paths/formation/formationsAnnulees.yaml new file mode 100644 index 0000000..b26f715 --- /dev/null +++ b/paths/formation/formationsAnnulees.yaml @@ -0,0 +1,21 @@ +get: + tags: + - formations + operationId: getFormationAnnulees + description: Récupérer les formations annulées + parameters: + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/idAgence.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/getListeFormations.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/formation/formationsRealisees.yaml b/paths/formation/formationsRealisees.yaml new file mode 100644 index 0000000..2051c85 --- /dev/null +++ b/paths/formation/formationsRealisees.yaml @@ -0,0 +1,21 @@ +get: + tags: + - formations + operationId: getFormationRealisee + description: Récupérer les formations réalisées + parameters: + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/idAgence.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/getListeFormations.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/formation/modesFormation.yaml b/paths/formation/modesFormation.yaml new file mode 100644 index 0000000..c7f0ebf --- /dev/null +++ b/paths/formation/modesFormation.yaml @@ -0,0 +1,11 @@ +get: + tags: + - formations + operationId: getModesFormation + description: Récupérer les modes de formation + responses: + '200': + $ref: ../../responses/formation/getListeModesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/originesFormation.yaml b/paths/formation/originesFormation.yaml new file mode 100644 index 0000000..bef2e38 --- /dev/null +++ b/paths/formation/originesFormation.yaml @@ -0,0 +1,11 @@ +get: + tags: + - formations + operationId: getOriginesFormation + description: Récupérer les origines de formation + responses: + '200': + $ref: ../../responses/formation/getListeOriginesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/participationByCollaborateur.yaml b/paths/formation/participationByCollaborateur.yaml new file mode 100644 index 0000000..4d9a11c --- /dev/null +++ b/paths/formation/participationByCollaborateur.yaml @@ -0,0 +1,21 @@ +get: + tags: + - participationsFormations + 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/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/participationByFormation.yaml b/paths/formation/participationByFormation.yaml new file mode 100644 index 0000000..6d79ba0 --- /dev/null +++ b/paths/formation/participationByFormation.yaml @@ -0,0 +1,21 @@ +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/prochainesformations.yaml b/paths/formation/prochainesformations.yaml index 0e1143b..aa7422f 100644 --- a/paths/formation/prochainesformations.yaml +++ b/paths/formation/prochainesformations.yaml @@ -2,16 +2,20 @@ get: tags: - formations operationId: getProchainesFormation - description: Récupérer les formations plannifié et/ou replannifié + description: Récupérer les formations plannifié et replannifié parameters: - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml - $ref: ../../parameters/query/idAgence.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/getlisteformations.yaml + $ref: ../../responses/formation/getListeFormations.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/formation/statutsFormation.yaml b/paths/formation/statutsFormation.yaml new file mode 100644 index 0000000..76ee727 --- /dev/null +++ b/paths/formation/statutsFormation.yaml @@ -0,0 +1,11 @@ +get: + tags: + - formations + operationId: getStatutsFormation + description: Récupérer les statuts de formation + responses: + '200': + $ref: ../../responses/formation/getListeStatutsFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/typesFormation.yaml b/paths/formation/typesFormation.yaml new file mode 100644 index 0000000..6dab57c --- /dev/null +++ b/paths/formation/typesFormation.yaml @@ -0,0 +1,11 @@ +get: + tags: + - formations + operationId: getTypesFormation + description: Récupérer les types de formation + responses: + '200': + $ref: ../../responses/formation/getListeTypesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/voirEvaluation.yaml b/paths/formation/voirEvaluation.yaml new file mode 100644 index 0000000..4940553 --- /dev/null +++ b/paths/formation/voirEvaluation.yaml @@ -0,0 +1,16 @@ +get: + tags: + - participationsFormations + operationId: consulterEvaluation + description: Consulter une évaluation d'une formation + parameters: + - $ref: ../../parameters/path/idParticipationFormation.yaml + responses: + '200': + $ref: ../../responses/formation/getEvaluation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/note/note.yaml b/paths/note/note.yaml new file mode 100644 index 0000000..ab4e786 --- /dev/null +++ b/paths/note/note.yaml @@ -0,0 +1,29 @@ +post: + tags: + - notes + operationId: nouvelleNote + description: Ajouter une nouvelle note + requestBody: + $ref: ../../requestbodies/note.yaml + responses: + '201': + $ref: ../../responses/note/noteCreee.yaml + '403': + $ref: ../../responses/erreur/forbidden.yaml + +put: + tags: + - notes + operationId: updateNote + description: Mettre à jour une note + requestBody: + $ref: ../../requestbodies/note.yaml + responses: + '200': + $ref: ../../responses/note/updateNote.yaml + + '201': + $ref: ../../responses/note/noteCreee.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/note/noteById.yaml b/paths/note/noteById.yaml new file mode 100644 index 0000000..39ecd40 --- /dev/null +++ b/paths/note/noteById.yaml @@ -0,0 +1,33 @@ +get: + tags: + - notes + operationId: getNoteById + description: Récupérer une note par son id + parameters: + - $ref: ../../parameters/path/idNote.yaml + responses: + '200': + $ref: ../../responses/note/getNote.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml + +delete: + tags: + - notes + operationId: deleteNote + description: Supprimer une note + parameters: + - $ref: ../../parameters/path/idNote.yaml + responses: + '204': + $ref: ../../responses/note/noteSupprimee.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/note/notesAuteur.yaml b/paths/note/notesAuteur.yaml new file mode 100644 index 0000000..551b850 --- /dev/null +++ b/paths/note/notesAuteur.yaml @@ -0,0 +1,16 @@ +get: + tags: + - notes + operationId: getNotesByAuteur + description: Récupérer les notes d'une personne a écrite + parameters: + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/note/getListeNotes.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/ep/epi.yaml b/paths/note/notesParCollaborateur.yaml similarity index 50% rename from paths/ep/epi.yaml rename to paths/note/notesParCollaborateur.yaml index ef85db3..81e38eb 100644 --- a/paths/ep/epi.yaml +++ b/paths/note/notesParCollaborateur.yaml @@ -1,17 +1,17 @@ get: tags: - - ep - operationId: createEPI - description: lancer la procedure entretien professionnel intermediaire + - notes + operationId: getNotesByCollaborateur + description: Récupérer une note par son id parameters: - $ref: ../../parameters/path/idCollaborateur.yaml - $ref: ../../parameters/path/idReferent.yaml responses: - '200': - $ref: ../../responses/ep/creerepi.yaml - + '200': + $ref: ../../responses/note/getListeNotes.yaml + '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/participationformation/participationbycollaborateur.yaml b/paths/participationformation/participationbycollaborateur.yaml deleted file mode 100644 index b39809f..0000000 --- a/paths/participationformation/participationbycollaborateur.yaml +++ /dev/null @@ -1,17 +0,0 @@ -get: - tags: - - participationsFormations - operationId: getParticipationByCollaborateur - description: récupérer la liste des formations auxquelles est inscrit le collaborateur - parameters: - - $ref: ../../parameters/path/idCollaborateur.yaml - - responses: - '200': - $ref: ../../responses/formation/participationsformation.yaml - - '403': - $ref: ../../responses/erreur/forbidden.yaml - - '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/referents/referentbycollaborateur.yaml b/paths/referents/referentbycollaborateur.yaml index 8eda948..b2459bb 100644 --- a/paths/referents/referentbycollaborateur.yaml +++ b/paths/referents/referentbycollaborateur.yaml @@ -2,15 +2,20 @@ get: tags: - referents operationId: getReferentByCollaborateur - description: renvoie la liste des collaborateurs referents + description: Récupérer la liste des référents 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/texte.yaml + - $ref: ../../parameters/query/tri.yaml responses: '200': - $ref: ../../responses/collaborateur/getlistecollaborateurs.yaml + $ref: ../../responses/referent/getListeReferrents.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/referents/referentbyid.yaml b/paths/referents/referentbyid.yaml index 9758712..a9583e1 100644 --- a/paths/referents/referentbyid.yaml +++ b/paths/referents/referentbyid.yaml @@ -2,15 +2,15 @@ get: tags: - referents operationId: getReferentById - description: recevoir un referent par son id + description: Récupérer un referent par son id parameters: - $ref: ../../parameters/path/idReferent.yaml responses: '200': - $ref: ../../responses/collaborateur/getcollaborateur.yaml + $ref: ../../responses/collaborateur/getCollaborateur.yaml '403': $ref: ../../responses/erreur/forbidden.yaml '404': - $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file + $ref: ../../responses/erreur/notFound.yaml \ No newline at end of file diff --git a/paths/referents/referents.yaml b/paths/referents/referents.yaml index 0652b57..8ca83f0 100644 --- a/paths/referents/referents.yaml +++ b/paths/referents/referents.yaml @@ -2,15 +2,19 @@ get: tags: - referents operationId: getReferents - description: recevoir la liste de tous les referents + description: Récupérer la liste de tous les referents parameters: - - $ref: ../../parameters/query/cptechlead.yaml - - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/asc.yaml + - $ref: ../../parameters/query/fonctions.yaml - $ref: ../../parameters/query/idAgence.yaml - - $ref: ../../parameters/query/referents.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 responses: '200': - $ref: ../../responses/collaborateur/getlistereferrents.yaml + $ref: ../../responses/referent/getListeReferrents.yaml '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/saisie/champs.yaml b/paths/saisie/champs.yaml new file mode 100644 index 0000000..524201c --- /dev/null +++ b/paths/saisie/champs.yaml @@ -0,0 +1,13 @@ +get: + tags: + - saisies + operationId: getChampsDocument + description: Récupérer les documents en fonction du type de l'EP ou de l'évaluation + parameters: + - $ref: ../../parameters/path/type.yaml + responses: + '200': + $ref: ../../responses/ep/getListeChamps.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/saisie/saisie.yaml b/paths/saisie/saisie.yaml deleted file mode 100644 index e69de29..0000000 diff --git a/requestbodies/_index.yaml b/requestbodies/_index.yaml index 27398ff..ba32466 100644 --- a/requestbodies/_index.yaml +++ b/requestbodies/_index.yaml @@ -1,8 +1,29 @@ -epBody: +CreationDemandeFormationBody: + $ref: ./creationDemandeFormation.yaml + +DemandeDelegationBody: + $ref: ./demandeDelegation.yaml + +DemandeEPIBody: + $ref: ./demandeEPI.yaml + +DemandeFormationBody: + $ref: ./demandeFormation.yaml + +EngagementBody: + $ref: ./engagement.yaml + +EPBody: $ref: ./ep.yaml -formationBody: +EvaluationBody: + $ref: ./evaluation.yaml + +FormationBody: $ref: ./formation.yaml -demandeFormationBody: - $ref: ./demandeFormation.yaml +NoteBody: + $ref: ./note.yaml + +SaisieEPBody: + $ref: ./saisieEP.yaml \ No newline at end of file diff --git a/requestbodies/creationDemandeFormation.yaml b/requestbodies/creationDemandeFormation.yaml new file mode 100644 index 0000000..b17b2b1 --- /dev/null +++ b/requestbodies/creationDemandeFormation.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/demandeformation/creationDemandeFormation.yaml diff --git a/requestbodies/demandeDelegation.yaml b/requestbodies/demandeDelegation.yaml new file mode 100644 index 0000000..5f36949 --- /dev/null +++ b/requestbodies/demandeDelegation.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/demandedelegation/creationDemandeDelegation.yaml \ No newline at end of file diff --git a/requestbodies/demandeEPI.yaml b/requestbodies/demandeEPI.yaml new file mode 100644 index 0000000..4ea7cec --- /dev/null +++ b/requestbodies/demandeEPI.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/demandeepi/demandeEPI.yaml \ No newline at end of file diff --git a/requestbodies/demandeFormation.yaml b/requestbodies/demandeFormation.yaml index ad03237..5ceb93f 100644 --- a/requestbodies/demandeFormation.yaml +++ b/requestbodies/demandeFormation.yaml @@ -2,4 +2,4 @@ required: true content: application/json: schema: - $ref: ../schemas/formation/demandeformation.yaml \ No newline at end of file + $ref: ../schemas/demandeformation/demandeFormation.yaml \ No newline at end of file diff --git a/requestbodies/engagement.yaml b/requestbodies/engagement.yaml new file mode 100644 index 0000000..142eaeb --- /dev/null +++ b/requestbodies/engagement.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/ep/engagement.yaml \ No newline at end of file diff --git a/requestbodies/evaluation.yaml b/requestbodies/evaluation.yaml new file mode 100644 index 0000000..7bd161f --- /dev/null +++ b/requestbodies/evaluation.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/formation/evaluation.yaml \ No newline at end of file diff --git a/requestbodies/note.yaml b/requestbodies/note.yaml new file mode 100644 index 0000000..352be2b --- /dev/null +++ b/requestbodies/note.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/note/detailsNote.yaml \ No newline at end of file diff --git a/requestbodies/saisieEP.yaml b/requestbodies/saisieEP.yaml new file mode 100644 index 0000000..5a98790 --- /dev/null +++ b/requestbodies/saisieEP.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/ep/epSaisie.yaml \ No newline at end of file diff --git a/responses/_index.yaml b/responses/_index.yaml index 3d5d81c..5279f9b 100644 --- a/responses/_index.yaml +++ b/responses/_index.yaml @@ -1,65 +1,162 @@ +#Erreur NotFoundResponse: - $ref: ./erreur/notfound.yaml + $ref: ./erreur/notFound.yaml ForbiddenResponse: $ref: ./erreur/forbidden.yaml -getCollaborateurResponse: - $ref: ./collaborateur/getcollaborateur.yaml +#Collaborateur +GetCollaborateurResponse: + $ref: ./collaborateur/getCollaborateur.yaml -getlistecollaborateursResponse: - $ref: ./collaborateur/getlistecollaborateurs.yaml - -getlistereferentsResponse: - $ref: ./collaborateur/getlistereferrents.yaml +GetListecollaborateursResponse: + $ref: ./collaborateur/getListeCollaborateurs.yaml +GetProfilResponse: + $ref: ./collaborateur/getProfil.yaml -getepResponse: - $ref: ./ep/getep.yaml -getlisteepResponse: - $ref: ./ep/getlisteep.yaml +#Note +GetListeNoteResponse: + $ref: ./note/getListeNotes.yaml -updateepResponse: - $ref: ./ep/updateep.yaml +GetNoteResponse: + $ref: ./note/getNote.yaml -participantsResponse: - $ref: ./ep/participants.yaml +NoteCreeeResponse: + $ref: ./note/noteCreee.yaml -notificationResponse: - $ref: ./ep/notificationResponse.yaml +NoteSupprimerResponse: + $ref: ./note/noteSupprimee.yaml -demandeepiResponse: - $ref: ./ep/creerepi.yaml +updateNoteResponse: + $ref: ./note/updateNote.yaml -rappelsignatureResponse: + +#EP +GetEPResponse: + $ref: ./ep/getEP.yaml + +GetListeEPResponse: + $ref: ./ep/getListeEP.yaml + +GetListeParticipantsResponse: + $ref: ./ep/getListeParticipantsEP.yaml + +GetProchainEPResponse: + $ref: ./ep/getProchainEP.yaml + +RappelSignatureResponse: $ref: ./ep/rappelSignature.yaml +SaisirProchainEPResponse: + $ref: ./ep/saisirProchainEP.yaml + +UpdateEPResponse: + $ref: ./ep/updateEP.yaml + + +#DemandeEPI +DemandeEPIAnnuleeReponse: + $ref: ./demandeepi/demandeEPIAnnulee.yaml + +DemandeEPICreeeResponse: + $ref: ./demandeepi/demandeEPICreee.yaml + +EPICreeReponse: + $ref: ./demandeepi/epiCree.yaml + +GetDemandeEPIResponse: + $ref: ./demandeepi/getDemandeEPI.yaml + +GetListeDemandesEPIResponse: + $ref: ./demandeepi/getListeDemandesEPI.yaml + +ReponseEPIReponse: + $ref: ./demandeepi/reponseDemandeEPI.yaml + + +#Engagement +GetEngagementReponse: + $ref: ./engagement/getEngagement.yaml + +GetListeEngagementsReponse: + $ref: ./engagement/getListeEngagements.yaml + +ReponseEngagementReponse: + $ref: ./engagement/reponseEngagement.yaml -getlisteformationsResponse: - $ref: ./formation/getlisteformations.yaml -getformationResponse: - $ref: ./formation/getformation.yaml +#DemandeDelegation +DemandeDelegationCreeeResponse: + $ref: ./demandedelegation/demandeDelegationCreee.yaml -creerFormationResponse: - $ref: ./formation/creerFormation.yaml +GetListeDemandesDelegationResponse: + $ref: ./demandedelegation/getListeDemandesDelegation.yaml -updateFormationResponse: +ReponseDemandeDelegationResponse: + $ref: ./demandedelegation/reponseDemandeDelegation.yaml + + +#Formation +FormationCreeeResponse: + $ref: ./formation/formationCreee.yaml + +FormationEvalueeResponse: + $ref: ./formation/formationEvaluee.yaml + +FormationSupprimeeResponse: + $ref: ./formation/formationSupprimee.yaml + +GetEvaluationResponse: + $ref: ./formation/getEvaluation.yaml + +GetFormationResponse: + $ref: ./formation/getFormation.yaml + +GetListeFormationsResponse: + $ref: ./formation/getListeFormations.yaml + +GetListeModesFormationsResponse: + $ref: ./formation/getListeModesFormation.yaml + +GetListeOriginesFormationsResponse: + $ref: ./formation/getListeOriginesFormation.yaml + +GetListeParticipationsFormationsResponse: + $ref: ./formation/getListeParticipationsFormation.yaml + +GetListeStatutsFormationsResponse: + $ref: ./formation/getListeStatutsFormation.yaml + +GetListeTypesFormationsResponse: + $ref: ./formation/getListeTypesFormation.yaml + +UpdateFormationResponse: $ref: ./formation/updateFormation.yaml -supprimerFormationResponse: - $ref: ./formation/supprimerFormation.yaml -#evaluationsResponse: -# $ref: ./formation/evaluations.yaml -listedemandeformationResponse: - $ref: ./formation/demandesFormation.yaml +#DemandeFormation +DemandeFormationCreeeResponse: + $ref: ./demandeformation/demandeFormationCreee.yaml + +GetListeDemandesFormationResponse: + $ref: ./demandeformation/getListeDemandesFormation.yaml + +GetListeOriginesDemandeFormationResponse: + $ref: ./demandeformation/getListeOriginesDemandesFormation.yaml + +GetListThemesResponse: + $ref: ./demandeformation/getListeThemes.yaml + +ReponseDemandeFormationResponse: + $ref: ./demandeformation/reponseDemandeFormation.yaml -creerDemandeFormationResponse: - $ref: ./formation/creerDemandeFormation.yaml +#Referent +GetReferentResponse: + $ref: ./referent/getReferent.yaml -reponseDemandeFormationResponse: - $ref: ./formation/reponseDemandeFormation.yaml \ No newline at end of file +GetListereferentsResponse: + $ref: ./referent/getListeReferrents.yaml \ No newline at end of file diff --git a/responses/collaborateur/getProfil.yaml b/responses/collaborateur/getProfil.yaml new file mode 100644 index 0000000..762504d --- /dev/null +++ b/responses/collaborateur/getProfil.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/collaborateur/profil.yaml diff --git a/responses/demandedelegation/demandeDelegationCreee.yaml b/responses/demandedelegation/demandeDelegationCreee.yaml new file mode 100644 index 0000000..5f7321e --- /dev/null +++ b/responses/demandedelegation/demandeDelegationCreee.yaml @@ -0,0 +1 @@ +description: Demande de délégation envoyée avec succès \ No newline at end of file diff --git a/responses/demandedelegation/getListeDemandesDelegation.yaml b/responses/demandedelegation/getListeDemandesDelegation.yaml new file mode 100644 index 0000000..de405f1 --- /dev/null +++ b/responses/demandedelegation/getListeDemandesDelegation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/demandedelegation/demandeDelegation.yaml \ No newline at end of file diff --git a/responses/demandedelegation/reponseDemandeDelegation.yaml b/responses/demandedelegation/reponseDemandeDelegation.yaml new file mode 100644 index 0000000..6fc1092 --- /dev/null +++ b/responses/demandedelegation/reponseDemandeDelegation.yaml @@ -0,0 +1 @@ +description: Réponse demande de délagation envoyée avec succès \ No newline at end of file diff --git a/responses/demandeepi/demandeEPIAnnulee.yaml b/responses/demandeepi/demandeEPIAnnulee.yaml new file mode 100644 index 0000000..a3f64fd --- /dev/null +++ b/responses/demandeepi/demandeEPIAnnulee.yaml @@ -0,0 +1 @@ +description: demande d'EPI annulée \ No newline at end of file diff --git a/responses/demandeepi/demandeEPICreee.yaml b/responses/demandeepi/demandeEPICreee.yaml new file mode 100644 index 0000000..f8a2f72 --- /dev/null +++ b/responses/demandeepi/demandeEPICreee.yaml @@ -0,0 +1 @@ +description: demande d'EPI effectuée \ No newline at end of file diff --git a/responses/demandeepi/epiCree.yaml b/responses/demandeepi/epiCree.yaml new file mode 100644 index 0000000..63858e8 --- /dev/null +++ b/responses/demandeepi/epiCree.yaml @@ -0,0 +1 @@ +description: Demande d'EPI créée avec l'EPI correspondant \ No newline at end of file diff --git a/responses/demandeepi/getDemandeEPI.yaml b/responses/demandeepi/getDemandeEPI.yaml new file mode 100644 index 0000000..01ac918 --- /dev/null +++ b/responses/demandeepi/getDemandeEPI.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/demandeepi/demandeEPI.yaml \ No newline at end of file diff --git a/responses/formation/demandesFormation.yaml b/responses/demandeepi/getListeDemandesEPI.yaml similarity index 59% rename from responses/formation/demandesFormation.yaml rename to responses/demandeepi/getListeDemandesEPI.yaml index 9fecfcf..07e1d9e 100644 --- a/responses/formation/demandesFormation.yaml +++ b/responses/demandeepi/getListeDemandesEPI.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/formation/demandeformation.yaml \ No newline at end of file + $ref: ../../schemas/demandeepi/demandeEPI.yaml \ No newline at end of file diff --git a/responses/demandeepi/reponseDemandeEPI.yaml b/responses/demandeepi/reponseDemandeEPI.yaml new file mode 100644 index 0000000..9115c19 --- /dev/null +++ b/responses/demandeepi/reponseDemandeEPI.yaml @@ -0,0 +1 @@ +description: Réponse à la demande d'EPI envoyée \ No newline at end of file diff --git a/responses/formation/creerDemandeFormation.yaml b/responses/demandeformation/demandeFormationCreee.yaml similarity index 100% rename from responses/formation/creerDemandeFormation.yaml rename to responses/demandeformation/demandeFormationCreee.yaml diff --git a/responses/demandeformation/getListeDemandesFormation.yaml b/responses/demandeformation/getListeDemandesFormation.yaml new file mode 100644 index 0000000..af14629 --- /dev/null +++ b/responses/demandeformation/getListeDemandesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/demandeformation/demandeFormation.yaml \ No newline at end of file diff --git a/responses/demandeformation/getListeOriginesDemandesFormation.yaml b/responses/demandeformation/getListeOriginesDemandesFormation.yaml new file mode 100644 index 0000000..1d8e002 --- /dev/null +++ b/responses/demandeformation/getListeOriginesDemandesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/demandeformation/origineDemandesFormation.yaml \ No newline at end of file diff --git a/responses/formation/participationsformation.yaml b/responses/demandeformation/getListeThemes.yaml similarity index 57% rename from responses/formation/participationsformation.yaml rename to responses/demandeformation/getListeThemes.yaml index 836c423..861c98a 100644 --- a/responses/formation/participationsformation.yaml +++ b/responses/demandeformation/getListeThemes.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/formation/participationformation.yaml \ No newline at end of file + $ref: ../../schemas/demandeformation/theme.yaml \ No newline at end of file diff --git a/responses/formation/reponseDemandeFormation.yaml b/responses/demandeformation/reponseDemandeFormation.yaml similarity index 100% rename from responses/formation/reponseDemandeFormation.yaml rename to responses/demandeformation/reponseDemandeFormation.yaml diff --git a/responses/engagement/getEngagement.yaml b/responses/engagement/getEngagement.yaml new file mode 100644 index 0000000..fa1a345 --- /dev/null +++ b/responses/engagement/getEngagement.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/engagement/engagement.yaml \ No newline at end of file diff --git a/responses/engagement/getListeEngagements.yaml b/responses/engagement/getListeEngagements.yaml new file mode 100644 index 0000000..9869b4d --- /dev/null +++ b/responses/engagement/getListeEngagements.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/engagement/engagement.yaml \ No newline at end of file diff --git a/responses/engagement/reponseEngagement.yaml b/responses/engagement/reponseEngagement.yaml new file mode 100644 index 0000000..c4f4491 --- /dev/null +++ b/responses/engagement/reponseEngagement.yaml @@ -0,0 +1 @@ +description: Engagement mise à jour \ No newline at end of file diff --git a/responses/ep/creerepi.yaml b/responses/ep/creerepi.yaml deleted file mode 100644 index 9737e38..0000000 --- a/responses/ep/creerepi.yaml +++ /dev/null @@ -1 +0,0 @@ -description: ajout EPI fait diff --git a/responses/ep/participants.yaml b/responses/ep/getListeParticipantsEP.yaml similarity index 100% rename from responses/ep/participants.yaml rename to responses/ep/getListeParticipantsEP.yaml diff --git a/responses/engagement/engagement.yaml b/responses/ep/getProchainEP.yaml similarity index 56% rename from responses/engagement/engagement.yaml rename to responses/ep/getProchainEP.yaml index ecf306f..bb6cf40 100644 --- a/responses/engagement/engagement.yaml +++ b/responses/ep/getProchainEP.yaml @@ -2,4 +2,4 @@ description: OK content: application/json: schema: - $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file + $ref: ../../schemas/ep/prochainEP.yaml \ No newline at end of file diff --git a/responses/ep/getlisteep.yaml b/responses/ep/getlisteep.yaml index 54a437d..91859e5 100644 --- a/responses/ep/getlisteep.yaml +++ b/responses/ep/getlisteep.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/ep/ep.yaml \ No newline at end of file + $ref: ../../schemas/ep/epInformations.yaml \ No newline at end of file diff --git a/responses/ep/notificationResponse.yaml b/responses/ep/notificationResponse.yaml deleted file mode 100644 index 61be455..0000000 --- a/responses/ep/notificationResponse.yaml +++ /dev/null @@ -1 +0,0 @@ -description: Notification envoyé avec succès diff --git a/responses/ep/saisirProchainEP.yaml b/responses/ep/saisirProchainEP.yaml new file mode 100644 index 0000000..fff2aa3 --- /dev/null +++ b/responses/ep/saisirProchainEP.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/ep/epSaisie.yaml \ No newline at end of file diff --git a/responses/erreur/notfound.yaml b/responses/erreur/notfound.yaml index eb96ba8..1fe913a 100644 --- a/responses/erreur/notfound.yaml +++ b/responses/erreur/notfound.yaml @@ -1,4 +1,4 @@ -description: La ressource introuvable +description: Ressource n'a pas été trouvée content: application/json: schema: diff --git a/responses/formation/creerFormation.yaml b/responses/formation/formationCreee.yaml similarity index 100% rename from responses/formation/creerFormation.yaml rename to responses/formation/formationCreee.yaml diff --git a/responses/formation/formationEvaluee.yaml b/responses/formation/formationEvaluee.yaml new file mode 100644 index 0000000..499ee92 --- /dev/null +++ b/responses/formation/formationEvaluee.yaml @@ -0,0 +1 @@ +description: Evaluation envoyée avec succès \ No newline at end of file diff --git a/responses/formation/formationSupprimee.yaml b/responses/formation/formationSupprimee.yaml new file mode 100644 index 0000000..4bef51a --- /dev/null +++ b/responses/formation/formationSupprimee.yaml @@ -0,0 +1 @@ +description: Formation supprimée avec succès \ No newline at end of file diff --git a/responses/formation/getEvaluation.yaml b/responses/formation/getEvaluation.yaml new file mode 100644 index 0000000..e919ea0 --- /dev/null +++ b/responses/formation/getEvaluation.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/formation/evaluation.yaml \ No newline at end of file diff --git a/responses/formation/getListeModesFormation.yaml b/responses/formation/getListeModesFormation.yaml new file mode 100644 index 0000000..0c882e4 --- /dev/null +++ b/responses/formation/getListeModesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/modeFormation.yaml \ No newline at end of file diff --git a/responses/formation/getListeOriginesFormation.yaml b/responses/formation/getListeOriginesFormation.yaml new file mode 100644 index 0000000..425c151 --- /dev/null +++ b/responses/formation/getListeOriginesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/origineFormation.yaml \ No newline at end of file diff --git a/responses/formation/getListeParticipationsFormation.yaml b/responses/formation/getListeParticipationsFormation.yaml new file mode 100644 index 0000000..61b62e6 --- /dev/null +++ b/responses/formation/getListeParticipationsFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/participationFormation.yaml \ No newline at end of file diff --git a/responses/formation/getListeStatutsFormation.yaml b/responses/formation/getListeStatutsFormation.yaml new file mode 100644 index 0000000..de24798 --- /dev/null +++ b/responses/formation/getListeStatutsFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/statutFormation.yaml \ No newline at end of file diff --git a/responses/formation/getListeTypesFormation.yaml b/responses/formation/getListeTypesFormation.yaml new file mode 100644 index 0000000..0224f6b --- /dev/null +++ b/responses/formation/getListeTypesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/typeFormation.yaml \ No newline at end of file diff --git a/responses/formation/getlisteformations.yaml b/responses/formation/getlisteformations.yaml index af17f15..a1b2742 100644 --- a/responses/formation/getlisteformations.yaml +++ b/responses/formation/getlisteformations.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/formation/formation.yaml \ No newline at end of file + $ref: ../../schemas/formation/formationDetails.yaml \ No newline at end of file diff --git a/responses/formation/supprimerFormation.yaml b/responses/formation/supprimerFormation.yaml deleted file mode 100644 index 54a4ae4..0000000 --- a/responses/formation/supprimerFormation.yaml +++ /dev/null @@ -1 +0,0 @@ -description: formation supprimée \ No newline at end of file diff --git a/responses/engagement/engagements.yaml b/responses/note/getListeNotes.yaml similarity index 62% rename from responses/engagement/engagements.yaml rename to responses/note/getListeNotes.yaml index ae18e45..e5a1019 100644 --- a/responses/engagement/engagements.yaml +++ b/responses/note/getListeNotes.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file + $ref: ../../schemas/note/affichageNote.yaml diff --git a/responses/note/getNote.yaml b/responses/note/getNote.yaml new file mode 100644 index 0000000..8fb11a7 --- /dev/null +++ b/responses/note/getNote.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/note/detailsNote.yaml \ No newline at end of file diff --git a/responses/note/noteCreee.yaml b/responses/note/noteCreee.yaml new file mode 100644 index 0000000..fc8f9e9 --- /dev/null +++ b/responses/note/noteCreee.yaml @@ -0,0 +1 @@ +description: Note créée avec succès \ No newline at end of file diff --git a/responses/note/noteSupprimee.yaml b/responses/note/noteSupprimee.yaml new file mode 100644 index 0000000..dc4beb2 --- /dev/null +++ b/responses/note/noteSupprimee.yaml @@ -0,0 +1 @@ +description: Note supprimée \ No newline at end of file diff --git a/responses/note/updateNote.yaml b/responses/note/updateNote.yaml new file mode 100644 index 0000000..4d00a18 --- /dev/null +++ b/responses/note/updateNote.yaml @@ -0,0 +1 @@ +description: Note mise à jour avec succès \ No newline at end of file diff --git a/responses/collaborateur/getlistereferrents.yaml b/responses/referent/getListeReferrents.yaml similarity index 100% rename from responses/collaborateur/getlistereferrents.yaml rename to responses/referent/getListeReferrents.yaml diff --git a/responses/referent/getReferent.yaml b/responses/referent/getReferent.yaml new file mode 100644 index 0000000..1dd8b7a --- /dev/null +++ b/responses/referent/getReferent.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/collaborateur/collaborateur.yaml \ No newline at end of file diff --git a/responses/ep/getlistechamps.yaml b/responses/saisie/getListeChamps.yaml similarity index 66% rename from responses/ep/getlistechamps.yaml rename to responses/saisie/getListeChamps.yaml index ba6891f..e754b4d 100644 --- a/responses/ep/getlistechamps.yaml +++ b/responses/saisie/getListeChamps.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/ep/champ.yaml \ No newline at end of file + $ref: ../../schemas/saisie/champ.yaml \ No newline at end of file diff --git a/schemas/_index.yaml b/schemas/_index.yaml index 60a94bb..df5308f 100644 --- a/schemas/_index.yaml +++ b/schemas/_index.yaml @@ -1,80 +1,105 @@ #Collaborateur -AgenceModel: +AgenceDTO: $ref: ./collaborateur/agence.yaml -BusinessUnitModel: - $ref: ./collaborateur/businessunit.yaml +BusinessUnitDTO: + $ref: ./collaborateur/businessUnit.yaml -CollaborateurModel: +CollaborateurDTO: $ref: ./collaborateur/collaborateur.yaml +ProfilDTO: + $ref: ./collaborateur/profil.yaml +#Note +AffichageNoteDTO: + $ref: ./note/affichageNote.yaml -#EP -AugmentationSalaireModel: - $ref: ./ep/augmentationsalaire.yaml +DetailsNoteDTO: + $ref: ./note/detailsNote.yaml -AutorisationModel: - $ref: ./ep/autorisation.yaml +#DemandeEPI +DemandeEPIDTO: + $ref: ./demandeepi/demandeEPI.yaml -DemandeDelegationModel: - $ref: ./ep/demandedelegation.yaml +#EP +AugmentationSalaireDTO: + $ref: ./ep/augmentationSalaire.yaml -DocumentModel: +DocumentDTO: $ref: ./ep/document.yaml -EngagementModel: +EngagementDTO: $ref: ./ep/engagement.yaml -EpModel: +EpDTO: $ref: ./ep/ep.yaml -ParticipationEPModel: +EpInformationDTO: + $ref: ./ep/epInformations.yaml + +EpSaisieDTO: + $ref: ./ep/epSaisie.yaml + +ObjectifDTO: + $ref: ./ep/objectif.yaml + +ParticipationEPDTO: $ref: ./ep/participationEP.yaml - -RDVEntretienModel: - $ref: ./ep/rdventretien.yaml +ProchainEPDTO: + $ref: ./ep/prochainEP.yaml -#Saisie -ChampModel: - $ref: ./saisie/champ.yaml +RDVEntretienDTO: + $ref: ./ep/rdvEntretien.yaml -SaisieModel: - $ref: ./saisie/saisie.yaml +TypeEntretienDTO: + $ref: ./ep/typeEntretien.yaml -SaisieBoolTexteModel: - $ref: ./saisie/booltexte.yaml +#DemandeDelegation +CreationDemandeDelegationDTO: + $ref: ./demandedelegation/creationDemandeDelegation.yaml -SaisieDeuxTextesModel: - $ref: ./saisie/deuxtextes.yaml +DemandeDelegationDTO: + $ref: ./demandedelegation/demandeDelegation.yaml -SaisieNoteTexteModel: - $ref: ./saisie/notetexte.yaml +#Saisie +ChampDTO: + $ref: ./saisie/champ.yaml -SaisieObjectifsModel: - $ref: ./saisie/objectifs.yaml +SaisieDTO: + $ref: ./saisie/saisie.yaml -SaisieUnBoolModel: - $ref: ./saisie/unbool.yaml -SaisieUnTexteModel: - $ref: ./saisie/untexte.yaml +#DemandeFormation +CreationDemandeFormationDTO: + $ref: ./demandeformation/creationDemandeFormation.yaml +DemandeFormationDTO: + $ref: ./demandeformation/demandeFormation.yaml + +ThemeDTO: + $ref: ./demandeformation/theme.yaml #Formation -FormationModel: +FormationDTO: $ref: ./formation/formation.yaml -DemandeFormationModel: - $ref: ./formation/demandeformation.yaml +FormationDetailsDTO: + $ref: ./formation/formationDetails.yaml + +ModeFormationDTO: + $ref: ./formation/modeFormation.yaml + +OrigineFormationDTO: + $ref: ./formation/origineFormation.yaml -ThemeModel: - $ref: ./formation/theme.yaml +ParticipationFormationDTO: + $ref: ./formation/participationFormation.yaml -ParticipationFormationModel: - $ref: ./formation/participationformation.yaml +TypeFormationDTO: + $ref: ./formation/typeFormation.yaml #Erreur -ErreurModel: +ErreurDTO: $ref: ./erreur/erreur.yaml \ No newline at end of file diff --git a/schemas/collaborateur/agence.yaml b/schemas/collaborateur/agence.yaml index 5662f01..e505c37 100644 --- a/schemas/collaborateur/agence.yaml +++ b/schemas/collaborateur/agence.yaml @@ -1,13 +1,15 @@ type: object +description: Une agence de Apside properties: id: type: number nom: type: string - bus: + bu: type: array items: - $ref: ./businessunit.yaml + $ref: ./businessUnit.yaml required: - id - - nom \ No newline at end of file + - nom + - bu \ No newline at end of file diff --git a/schemas/collaborateur/businessunit.yaml b/schemas/collaborateur/businessunit.yaml index fd7fd81..7496ef4 100644 --- a/schemas/collaborateur/businessunit.yaml +++ b/schemas/collaborateur/businessunit.yaml @@ -1,4 +1,5 @@ type: object +description: Une business unit d'une agence properties: id: type: number diff --git a/schemas/collaborateur/collaborateur.yaml b/schemas/collaborateur/collaborateur.yaml index bdb1074..d32e098 100644 --- a/schemas/collaborateur/collaborateur.yaml +++ b/schemas/collaborateur/collaborateur.yaml @@ -1,4 +1,5 @@ type: object +description: Les informations d'un collaborateur properties: id: type: string @@ -17,15 +18,13 @@ properties: type: string format: date-time businessUnit: - $ref: ./businessunit.yaml + $ref: ./businessUnit.yaml referent: $ref: ./collaborateur.yaml required: - id - nom - prenom - - agence - mailApside - - dateArrive - - businessunit - - referent \ No newline at end of file + - dateArrivee + - businessunit \ No newline at end of file diff --git a/schemas/collaborateur/profil.yaml b/schemas/collaborateur/profil.yaml new file mode 100644 index 0000000..8625813 --- /dev/null +++ b/schemas/collaborateur/profil.yaml @@ -0,0 +1,21 @@ +type: object +description: Information utile à avoir lorsqu'un utilisateur se connecte +properties: + nom: + type: string + prenom: + type: string + mailApside: + type: string + format: email + dateArrivee: + type: string + format: date-time + businessUnit: + $ref: ./businessUnit.yaml +required: + - id + - nom + - prenom + - mailApside + - businessunit \ No newline at end of file diff --git a/schemas/demandedelegation/creationDemandeDelegation.yaml b/schemas/demandedelegation/creationDemandeDelegation.yaml new file mode 100644 index 0000000..c242ee7 --- /dev/null +++ b/schemas/demandedelegation/creationDemandeDelegation.yaml @@ -0,0 +1,14 @@ +type: object +description: Objet à envoyer lorsqu'un référent fait une demande de délégation +properties: + idEp: + type: integer + idReferent: + $ref: ../collaborateur/collaborateur.yaml + raisonDemande: + type: string + +required: + - id + - referent + - raisonDemande \ No newline at end of file diff --git a/schemas/ep/demandedelegation.yaml b/schemas/demandedelegation/demandeDelegation.yaml similarity index 64% rename from schemas/ep/demandedelegation.yaml rename to schemas/demandedelegation/demandeDelegation.yaml index 30feef8..554409d 100644 --- a/schemas/ep/demandedelegation.yaml +++ b/schemas/demandedelegation/demandeDelegation.yaml @@ -1,23 +1,22 @@ type: object +description: Les détails d'une demande de délégation d'un EP properties: id: type: integer ep: - $ref: ./ep.yaml - referent: - $ref: ../collaborateur/collaborateur.yaml + $ref: ../ep/epInformations.yaml dateDemande: type: string format: date-time reponse: type: boolean - dateReponse: + dateReponse: type: string format: date-time raisonRefus: type: string + required: - id - ep - - referent - dateDemande \ No newline at end of file diff --git a/schemas/demandeepi/demandeEPI.yaml b/schemas/demandeepi/demandeEPI.yaml new file mode 100644 index 0000000..168f44f --- /dev/null +++ b/schemas/demandeepi/demandeEPI.yaml @@ -0,0 +1,32 @@ +type: object +description: Demande d'EPI faite par un collaborateur +properties: + id: + type: integer + idCollaborateur: + type: string + format: uuid + idReferent: + type: string + format: uuid + dateDemande: + type: string + format: date-time + etat: + type: integer + reponse: + type: boolean + dateReponse: + type: string + format: date-time + raisonRefus: + type: string + ep: + $ref: ../ep/epInformations.yaml + + +required: + - id + - idCollaborateur + - idReferent + - dateDemande \ No newline at end of file diff --git a/schemas/demandeformation/creationDemandeFormation.yaml b/schemas/demandeformation/creationDemandeFormation.yaml new file mode 100644 index 0000000..9250ce8 --- /dev/null +++ b/schemas/demandeformation/creationDemandeFormation.yaml @@ -0,0 +1,17 @@ +type: object +description: Objet à envoyer lors d'une demande de formation +properties: + id: + type: integer + libelle: + type: string + description: + type: string + theme: + type: integer + +required: + - id + - libelle + - description + - theme \ No newline at end of file diff --git a/schemas/formation/demandeformation.yaml b/schemas/demandeformation/demandeFormation.yaml similarity index 79% rename from schemas/formation/demandeformation.yaml rename to schemas/demandeformation/demandeFormation.yaml index 837b303..532f6a7 100644 --- a/schemas/formation/demandeformation.yaml +++ b/schemas/demandeformation/demandeFormation.yaml @@ -1,15 +1,15 @@ type: object +description: Les détails d'une demande de formation properties: id: type: integer - status: - type: string libelle: type: string description: type: string demandeRH: type: boolean + default: false dateDemande: type: string format: date-time @@ -23,7 +23,7 @@ properties: theme: $ref: ./theme.yaml ep: - $ref: ../ep/ep.yaml + $ref: ../ep/epInformations.yaml required: - id diff --git a/schemas/demandeformation/origineDemandesFormation.yaml b/schemas/demandeformation/origineDemandesFormation.yaml new file mode 100644 index 0000000..c43beeb --- /dev/null +++ b/schemas/demandeformation/origineDemandesFormation.yaml @@ -0,0 +1,11 @@ +type: object +description: Origine d'une demande de formation +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/formation/theme.yaml b/schemas/demandeformation/theme.yaml similarity index 57% rename from schemas/formation/theme.yaml rename to schemas/demandeformation/theme.yaml index a669e66..2342c4a 100644 --- a/schemas/formation/theme.yaml +++ b/schemas/demandeformation/theme.yaml @@ -1,4 +1,5 @@ type: object +description: Thème d'une demande de formation properties: id: type: integer @@ -7,7 +8,8 @@ properties: demandesFormation: type: array items: - $ref: ./demandeformation.yaml + $ref: ./demandeFormation.yaml + required: - id - nom diff --git a/schemas/engagement/engagement.yaml b/schemas/engagement/engagement.yaml new file mode 100644 index 0000000..c93c2cd --- /dev/null +++ b/schemas/engagement/engagement.yaml @@ -0,0 +1,28 @@ +type: object +description: Les détails d'un engagement pris par un référent pour un EP +properties: + id: + type: number + action: + type: string + modalite: + type: string + dispositif: + type: string + datePrevisionnelle: + type: string + format: date-time + realisable: + type: boolean + realise: + type: boolean + raisonNonRealisable: + type: string + ep: + $ref: ../ep/epInformations.yaml +required: + - id + - action + - modalite + - dispositif + - datePrevisionnelle \ No newline at end of file diff --git a/schemas/ep/augmentationsalaire.yaml b/schemas/ep/augmentationsalaire.yaml index a84c8f3..9046e7e 100644 --- a/schemas/ep/augmentationsalaire.yaml +++ b/schemas/ep/augmentationsalaire.yaml @@ -1,12 +1,14 @@ type: object +description: Demande d'augmentation du salaire du collaborateur properties: id: - type: number + type: integer augmentation: type: number - ep: - $ref: ./ep.yaml + primeMission: + type: number + message: + type: string required: - id - - augmentation - - ep \ No newline at end of file + - augmentation \ No newline at end of file diff --git a/schemas/ep/autorisation.yaml b/schemas/ep/autorisation.yaml deleted file mode 100644 index 6b59ba9..0000000 --- a/schemas/ep/autorisation.yaml +++ /dev/null @@ -1,13 +0,0 @@ -type: object -properties: - id: - type: number - referent: - $ref: ../collaborateur/collaborateur.yaml - ep: - $ref: ./ep.yaml - -required: - - id - - idReferent - - ep \ No newline at end of file diff --git a/schemas/ep/document.yaml b/schemas/ep/document.yaml index 3f99bd0..bd730bd 100644 --- a/schemas/ep/document.yaml +++ b/schemas/ep/document.yaml @@ -1,20 +1,14 @@ type: object +description: Un document pour récupérer les saisies et leur champ en fonction du type de l'EP qui peut être EPS, EPA ou EPASIXANS properties: id: type: integer type: type: string - ep: - $ref: ./ep.yaml - saisieCollaborateur: + saisies: type: array items: $ref: ../saisie/saisie.yaml - saisieCommercial: - type: array - items: - $ref: ../saisie/saisie.yaml - required: - id - type \ No newline at end of file diff --git a/schemas/ep/engagement.yaml b/schemas/ep/engagement.yaml index 625848e..d3b28c3 100644 --- a/schemas/ep/engagement.yaml +++ b/schemas/ep/engagement.yaml @@ -1,8 +1,8 @@ type: object +description: Les détails d'un engagement pris par un référent pour un EP properties: id: type: number - example: action: type: string modalite: @@ -19,11 +19,10 @@ properties: raisonNonRealisable: type: string ep: - $ref: ./ep.yaml + $ref: ./epInformations.yaml required: - id - action - modalite - dispositif - - datePrevisionnelle - - ep \ No newline at end of file + - datePrevisionnelle \ No newline at end of file diff --git a/schemas/ep/ep.yaml b/schemas/ep/ep.yaml index b8f499e..39133b5 100644 --- a/schemas/ep/ep.yaml +++ b/schemas/ep/ep.yaml @@ -1,12 +1,10 @@ type: object +description: Tous les détails d'un EP lorsqu'il est consulté properties: id: type: number type: type: string - dateCreation: - type: string - format: date-time dateDisponibilite: type: string format: date-time @@ -16,21 +14,30 @@ properties: dateSaisie: type: string format: date-time - etat: + statut: type: number cv: type: string - dateEntretien: - type: string - format: date-time - typeEntretien: - type: string + propositionsEntretien: + type: array + items: + $ref: ./rdvEntretien.yaml + rdvEntretien: + $ref: ./rdvEntretien.yaml + choixTypeEntretien: + $ref: ./typeEntretien.yaml obligatoire: type: boolean + objectif: + type: array + items: + $ref: ./objectif.yaml + objectifPrecedent: + type: array + items: + $ref: ./objectifPrecedent.yaml commentaireAssistant: type: string - commentaireCollaborateur: - type: string commentaireCommercial: type: string collaborateur: @@ -40,29 +47,21 @@ properties: demandesFormation: type: array items: - $ref: ../formation/demandeformation.yaml + $ref: ../demandeformation/demandeFormation.yaml participants: type: array items: - $ref: ../collaborateur/collaborateur.yaml + $ref: ./participationEP.yaml engagements: type: array items: - $ref: ./engagement.yaml - propositionsRDV: - type: array - items: - $ref: ./rdventretien.yaml + $ref: ../engagement/engagement.yaml augmentationSalaire: - $ref: ./augmentationsalaire.yaml - autorisations: - type: array - items: - $ref: ./autorisation.yaml + $ref: ./augmentationSalaire.yaml demandesDelegation: type: array items: - $ref: ./demandedelegation.yaml + $ref: ../demandedelegation/demandeDelegation.yaml documents: type: array items: @@ -71,10 +70,11 @@ properties: required: - id - type - - dateCreation - dateDisponibilite - datePrevisionnelle - - etat + - statut + - cv - obligatoire - collaborateur + - referent - documents \ No newline at end of file diff --git a/schemas/ep/epInformations.yaml b/schemas/ep/epInformations.yaml new file mode 100644 index 0000000..ab719aa --- /dev/null +++ b/schemas/ep/epInformations.yaml @@ -0,0 +1,31 @@ +type: object +description: Les informations de base d'un EP +properties: + id: + type: number + type: + type: integer + statut: + type: number + dateDisponibilite: + type: string + format: date-time + datePrevisionnelle: + type: string + format: date-time + obligatoire: + type: boolean + collaborateur: + $ref: ../collaborateur/collaborateur.yaml + referent: + $ref: ../collaborateur/collaborateur.yaml + +required: + - id + - type + - dateDisponibilite + - datePrevisionnelle + - statut + - obligatoire + - collaborateur + - referent \ No newline at end of file diff --git a/schemas/ep/epSaisie.yaml b/schemas/ep/epSaisie.yaml new file mode 100644 index 0000000..61feaed --- /dev/null +++ b/schemas/ep/epSaisie.yaml @@ -0,0 +1,36 @@ +type: object +description: Objet de l'EP au moment de la saisie du collaborateur +properties: + id: + type: number + type: + type: string + datePrevisionnelle: + type: string + format: date-time + cv: + type: string + choixEntretien: + $ref: ./typeEntretien.yaml + obligatoire: + type: boolean + objectif: + type: array + items: + $ref: ./objectif.yaml + objectifPrecedent: + type: array + items: + $ref: ./objectifPrecedent.yaml + documents: + type: array + items: + $ref: ./document.yaml + +required: + - id + - type + - datePrevisionnelle + - obligatoire + - collaborateur + - documents \ No newline at end of file diff --git a/schemas/ep/objectif.yaml b/schemas/ep/objectif.yaml new file mode 100644 index 0000000..f69608d --- /dev/null +++ b/schemas/ep/objectif.yaml @@ -0,0 +1,11 @@ +type: object +description: Les objectifs pris par le collaborateur +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/ep/objectifPrecedent.yaml b/schemas/ep/objectifPrecedent.yaml new file mode 100644 index 0000000..7c5204a --- /dev/null +++ b/schemas/ep/objectifPrecedent.yaml @@ -0,0 +1,17 @@ +type: object +description: Les objectifs pris par le collaborateur durant le précédent EP +properties: + id: + type: integer + libelle: + type: string + atteint: + type: boolean + commentaire: + type: string + +required: + - id + - libelle + - atteint + - commentaire \ No newline at end of file diff --git a/schemas/ep/participationEP.yaml b/schemas/ep/participationEP.yaml index 41a5493..cd90744 100644 --- a/schemas/ep/participationEP.yaml +++ b/schemas/ep/participationEP.yaml @@ -1,12 +1,15 @@ type: object +description: Information des participants d'un EP (autre que le référent et le collaborateur) properties: id: - type: number + type: integer + idCollaborateur: + type: string + format: uuid collaborateur: - $ref: ../collaborateur/collaborateur.yaml - ep: - $ref: ./ep.yaml + type: string + required: - id - - collaborateur - - ep \ No newline at end of file + - idCollaborateur + - collaborateur \ No newline at end of file diff --git a/schemas/ep/prochainEP.yaml b/schemas/ep/prochainEP.yaml new file mode 100644 index 0000000..28b9260 --- /dev/null +++ b/schemas/ep/prochainEP.yaml @@ -0,0 +1,22 @@ +type: object +description: Objet contenant les détails du prochain EP non saisi du collaborateur +properties: + id: + type: integer + type: + type: integer + dateDisponibilite: + type: string + format: date-time + datePrevisionnelle: + type: string + format: date-time + obligatoire: + type: boolean + +required: + - id + - type + - dateDisponibilite + - datePrevisionnelle + - obligatoire \ No newline at end of file diff --git a/schemas/ep/rdventretien.yaml b/schemas/ep/rdventretien.yaml index 80e2a84..ef0185a 100644 --- a/schemas/ep/rdventretien.yaml +++ b/schemas/ep/rdventretien.yaml @@ -1,15 +1,14 @@ type: object +description: RDV pour un entretien properties: id: type: number - example: - typeEntretien: - type: string - example: dateEntretien: type: string format: date-time + typeEntretien: + $ref: ./typeEntretien.yaml required: - id - - typeEntretien - - dateEntretien \ No newline at end of file + - dateEntretien + - typeEntretien \ No newline at end of file diff --git a/schemas/ep/typeEntretien.yaml b/schemas/ep/typeEntretien.yaml new file mode 100644 index 0000000..cd4e0fa --- /dev/null +++ b/schemas/ep/typeEntretien.yaml @@ -0,0 +1,10 @@ +type: object +description: Type de l'entretien d'un EP +properties: + id: + type: integer + libelle: + type: string +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/erreur/erreur.yaml b/schemas/erreur/erreur.yaml index 42858a1..39cfc71 100644 --- a/schemas/erreur/erreur.yaml +++ b/schemas/erreur/erreur.yaml @@ -1,4 +1,5 @@ type: object +description: Objet pour la gestion des erreurs properties: code: type: string diff --git a/schemas/formation/evaluation.yaml b/schemas/formation/evaluation.yaml new file mode 100644 index 0000000..47f71bc --- /dev/null +++ b/schemas/formation/evaluation.yaml @@ -0,0 +1,13 @@ +type: object +description: Evaluation d'une participation formation +properties: + idParticipation: + type: integer + saisies: + type: array + items: + $ref: ../saisie/saisie.yaml + +required: + - idParticipation + - saisies \ No newline at end of file diff --git a/schemas/formation/formation.yaml b/schemas/formation/formation.yaml index a23b0d0..4443041 100644 --- a/schemas/formation/formation.yaml +++ b/schemas/formation/formation.yaml @@ -1,14 +1,14 @@ type: object +description: Toutes les informations d'une formation properties: id: type: integer intitule: type: string origine: - type: string + $ref: ./origineFormation.yaml statut: - type: string - enum: [Planifiée, Replanifiée, Réalisée, Annulée] + $ref: ./statutFormation.yaml dateDebut: type: string format: date-time @@ -22,18 +22,16 @@ properties: organisme: type: string mode: - type: string - enum: [Présentiel, Visioconférence] + $ref: ./modeFormation.yaml type: - type: string - enum: [Externe, Interne] + $ref: ./typeFormation.yaml estCertifie: type: boolean participantsFormation: type: array items: $ref: participationformation.yaml - + required: - id diff --git a/schemas/formation/formationDetails.yaml b/schemas/formation/formationDetails.yaml new file mode 100644 index 0000000..de5d8d4 --- /dev/null +++ b/schemas/formation/formationDetails.yaml @@ -0,0 +1,34 @@ +type: object +description: Les détails d'une formation +properties: + id: + type: integer + intitule: + type: string + statut: + $ref: ./statutFormation.yaml + dateDebut: + type: string + format: date-time + dateFin: + type: string + format: date-time + nbPartitipants: + type: integer + mode: + $ref: ./modeFormation.yaml + type: + $ref: ./typeFormation.yaml + estCertifie: + type: boolean + + +required: + - intitule + - status + - dateDebut + - dateFin + - nbPartitipants + - mode + - type + - estCertifie \ No newline at end of file diff --git a/schemas/formation/modeFormation.yaml b/schemas/formation/modeFormation.yaml new file mode 100644 index 0000000..786bf7f --- /dev/null +++ b/schemas/formation/modeFormation.yaml @@ -0,0 +1,11 @@ +type: object +description: Mode d'une formation +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/formation/origineFormation.yaml b/schemas/formation/origineFormation.yaml new file mode 100644 index 0000000..34dfdb0 --- /dev/null +++ b/schemas/formation/origineFormation.yaml @@ -0,0 +1,11 @@ +type: object +description: Origine d'une formation +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/formation/participationformation.yaml b/schemas/formation/participationformation.yaml index 04f1834..ba5d05b 100644 --- a/schemas/formation/participationformation.yaml +++ b/schemas/formation/participationformation.yaml @@ -1,24 +1,28 @@ type: object properties: id: - type: number + type: integer dateCreation: type: string format: date-time formation: - $ref: ./formation.yaml - demandeformation: - $ref: ./demandeformation.yaml + type: string + date: + type: string + format: date-time + statut: + type: string + idCollaborateur: + type: string + format : uuid + collaborateur: + type: string estEvaluee: type: boolean - evaluations: - type: array - items: - $ref: ../saisie/saisie.yaml required: - id - dateCreation - formation - demandeformation - \ No newline at end of file + - estEvaluee \ No newline at end of file diff --git a/schemas/formation/statutFormation.yaml b/schemas/formation/statutFormation.yaml new file mode 100644 index 0000000..833a82f --- /dev/null +++ b/schemas/formation/statutFormation.yaml @@ -0,0 +1,11 @@ +type: object +description: Statut actuel d'une formation +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/formation/typeFormation.yaml b/schemas/formation/typeFormation.yaml new file mode 100644 index 0000000..2700546 --- /dev/null +++ b/schemas/formation/typeFormation.yaml @@ -0,0 +1,11 @@ +type: object +description: Type d'une formation +properties: + id: + type: integer + libelle: + type: string + +required: + - id + - libelle \ No newline at end of file diff --git a/schemas/note/affichageNote.yaml b/schemas/note/affichageNote.yaml new file mode 100644 index 0000000..801fedb --- /dev/null +++ b/schemas/note/affichageNote.yaml @@ -0,0 +1,21 @@ +type: object +description: Note affiché dans un tableau +properties: + id: + type: integer + titre: + type: string + idCollaborateur: + type: string + format: uuid + collaborateur: + type: string + dateMiseAjour: + type: string + format: date-time +required: + - id + - titre + - texte + - idAuteur + - collaborateur \ No newline at end of file diff --git a/schemas/note/detailsNote.yaml b/schemas/note/detailsNote.yaml new file mode 100644 index 0000000..ada06a2 --- /dev/null +++ b/schemas/note/detailsNote.yaml @@ -0,0 +1,27 @@ +type: object +description: Détails d'une note que peut prendre un commercial, un delivery ou un RA sur un collaborateur +properties: + id: + type: integer + titre: + type: string + texte: + type: string + idAuteur: + type: string + format: uuid + collaborateur: + $ref: ../collaborateur/collaborateur.yaml + dateCreation: + type: string + format: date-time + dateMiseAjour: + type: string + format: date-time + +required: + - id + - titre + - texte + - idAuteur + - collaborateur \ No newline at end of file diff --git a/schemas/saisie/booltexte.yaml b/schemas/saisie/booltexte.yaml deleted file mode 100644 index 698c5fa..0000000 --- a/schemas/saisie/booltexte.yaml +++ /dev/null @@ -1,11 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - bool: - type: boolean - texte: - type: string - required: - - bool - - type \ No newline at end of file diff --git a/schemas/saisie/champ.yaml b/schemas/saisie/champ.yaml index d3e3838..015095b 100644 --- a/schemas/saisie/champ.yaml +++ b/schemas/saisie/champ.yaml @@ -1,4 +1,5 @@ type: object +description: Les champs d'un EP ou d'une évaluation à remplir properties: id: type: integer @@ -6,16 +7,14 @@ properties: type: string section: type: string + soussection: + type: string ordre: type: number typeChamp: type: string typeSaisie: type: string - saisies: - type: array - items: - $ref: ./saisie.yaml required: - id diff --git a/schemas/saisie/deuxtextes.yaml b/schemas/saisie/deuxtextes.yaml deleted file mode 100644 index 4536a56..0000000 --- a/schemas/saisie/deuxtextes.yaml +++ /dev/null @@ -1,11 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - texte1: - type: string - texte2: - type: string - required: - - texte1 - - texte2 \ No newline at end of file diff --git a/schemas/saisie/notetexte.yaml b/schemas/saisie/notetexte.yaml deleted file mode 100644 index e61ee89..0000000 --- a/schemas/saisie/notetexte.yaml +++ /dev/null @@ -1,11 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - note: - type: number - texte: - type: string - required: - - note - - texte \ No newline at end of file diff --git a/schemas/saisie/objectifs.yaml b/schemas/saisie/objectifs.yaml deleted file mode 100644 index e51970e..0000000 --- a/schemas/saisie/objectifs.yaml +++ /dev/null @@ -1,12 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - objectif1: - type: string - objectif2: - type: string - objectif3: - type: string - required: - - objectif1 \ No newline at end of file diff --git a/schemas/saisie/saisie.yaml b/schemas/saisie/saisie.yaml index 818773b..3cfc40e 100644 --- a/schemas/saisie/saisie.yaml +++ b/schemas/saisie/saisie.yaml @@ -1,17 +1,20 @@ type: object +description: Saisi d'un collaborateur ou d'un référent sur un champ properties: id: type: string - type: + typeSaisie: + type: integer + note: + type: integer + texte: type: string + texte2: + type: string + niveau: + type: integer champ: $ref: ./champ.yaml - participationFormation: - $ref: ../formation/participationformation.yaml - documentCollaborateur: - $ref: ../ep/document.yaml - documentReferent: - $ref: ../ep/document.yaml required: - id diff --git a/schemas/saisie/unbool.yaml b/schemas/saisie/unbool.yaml deleted file mode 100644 index f102dc0..0000000 --- a/schemas/saisie/unbool.yaml +++ /dev/null @@ -1,8 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - bool: - type: boolean - required: - - bool \ No newline at end of file diff --git a/schemas/saisie/untexte.yaml b/schemas/saisie/untexte.yaml deleted file mode 100644 index 73c4927..0000000 --- a/schemas/saisie/untexte.yaml +++ /dev/null @@ -1,8 +0,0 @@ -allOf: - - $ref: ./saisie.yaml - - type: object - properties: - texte: - type: string - required: - - texte \ No newline at end of file diff --git a/securityschemes/_index.yaml b/securityschemes/_index.yaml index f4b815d..e8d7a06 100644 --- a/securityschemes/_index.yaml +++ b/securityschemes/_index.yaml @@ -1,2 +1,2 @@ bearerAuth: - $ref: ./bearerauth.yaml \ No newline at end of file + $ref: ./bearerAuth.yaml \ No newline at end of file