commit 851f3b99dfb28decbe8e0edbf6f90127bfa79e6e Author: Yanaël GRETTE Date: Tue Aug 25 09:28:56 2020 +0200 Création du git à la version 1.2.1 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..64c4b8f --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +OpenAPI_EP.code-workspace +_build/ diff --git a/openapi.yaml b/openapi.yaml new file mode 100644 index 0000000..3eee84d --- /dev/null +++ b/openapi.yaml @@ -0,0 +1,92 @@ +openapi: 3.0.0 +info: + version: 1.2.1 + 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. + license: + name: Apache 2.0 + url: http://www.apache.org/licenses/LICENSE-2.0.html +servers: + - url: http://localhost:3000/api + description: json-server pour les premiers tests + + + +paths: + /collaborateurs: + $ref: ./paths/collaborateur/collaborateurs.yaml + /collaborateurs/{idCollaborateur}: + $ref: ./paths/collaborateur/collaborateurbyid.yaml + /collaborateurs/{mail}: + $ref: ./paths/collaborateur/collaborateurbymail.yaml + /collaborateurs/referent/{idReferent}: + $ref: ./paths/collaborateur/collaborateursreferent.yaml + + + /referents: + $ref: ./paths/referents/referents.yaml + /referents/{idReferent}: + $ref: ./paths/referents/referentbyid.yaml + /referents/collaborateur/{idCollaborateur}: + $ref: ./paths/referents/referentbycollaborateur.yaml + + /ep: + $ref: ./paths/ep/ep.yaml + /ep/{idEP}: + $ref: ./paths/ep/epbyid.yaml + /ep/collaborateur/{idCollaborateur}: + $ref: ./paths/ep/epbycollaborateur.yaml + /ep/collaborateur/{idCollaborateur}/prochain: + $ref: ./paths/ep/prochainepcollaborateur.yaml + /ep/referent/{idReferent}: + $ref: ./paths/ep/epreferent.yaml + /ep/referent/{idReferent}/prochains: + $ref: ./paths/ep/prochainsepreferent.yaml + /ep/{idEP}/rappelSignature: + $ref: ./paths/ep/rappelsignature.yaml + /ep/update: + $ref: ./paths/ep/update.yaml + /ep/prochains: + $ref: ./paths/ep/prochainsep.yaml + /ep/epi: + $ref: ./paths/ep/epi.yaml + + + /formations: + $ref: ./paths/formation/formations.yaml + /formations/prochaines: + $ref: ./paths/formation/prochainesformations.yaml + /formations/{idFormation}: + $ref: ./paths/formation/formationbyid.yaml + + + /participationsformation/collaborateur/{idCollaborateur}: + $ref: ./paths/participationformation/participationbycollaborateur.yaml + + + /demandeformation: + $ref: ./paths/demandeformation/demandesformation.yaml + + + /engagements/: + $ref: ./paths/engagement/engagements.yaml + + + +components: + schemas: + $ref: ./schemas/_index.yaml + parameters: + $ref: ./parameters/_index.yaml + responses: + $ref: ./responses/_index.yaml + requestBodies: + $ref: ./requestbodies/_index.yaml + securitySchemes: + $ref: ./securityschemes/_index.yaml + + +security: + - bearerAuth: [] + diff --git a/parameters/_index.yaml b/parameters/_index.yaml new file mode 100644 index 0000000..162851f --- /dev/null +++ b/parameters/_index.yaml @@ -0,0 +1,64 @@ +#HEADER +token: + $ref: ./header/token.yaml + + +#PATH +idCollaborateur: + $ref: ./path/idCollaborateur.yaml + +idEP: + $ref: ./path/idEP.yaml + +idEvaluation: + $ref: ./path/idEvaluation.yaml + +idFormation: + $ref: ./path/idFormation.yaml + +idReferent: + $ref: ./path/idReferent.yaml + +mail: + $ref: ./path/mail.yaml + +type: + $ref: ./path/type.yaml + + +#QUERY +actionep: + $ref: ./query/actionep.yaml + +assistants: + $ref: ./query/assistants.yaml + +collaborateurs: + $ref: ./query/collaborateurs.yaml + +cptechlead: + $ref: ./query/cptechlead.yaml + +fonctions: + $ref: ./query/fonctions.yaml + +idAgence: + $ref: ./query/idAgence.yaml + +idBu: + $ref: ./query/idBu.yaml + +idCollaborateurs: + $ref: ./query/idCollaborateurs.yaml + +ra: + $ref: ./query/ra.yaml + +referents: + $ref: ./query/referents.yaml + +rh: + $ref: ./query/rh.yaml + +role: + $ref: ./query/role.yaml \ No newline at end of file diff --git a/parameters/header/token.yaml b/parameters/header/token.yaml new file mode 100644 index 0000000..c9a32e1 --- /dev/null +++ b/parameters/header/token.yaml @@ -0,0 +1,6 @@ +in: header +name: token +schema: + type: string +required: true +description: Token Keycloak que le serveur doit faire analyser diff --git a/parameters/path/idCollaborateur.yaml b/parameters/path/idCollaborateur.yaml new file mode 100644 index 0000000..246ec8c --- /dev/null +++ b/parameters/path/idCollaborateur.yaml @@ -0,0 +1,7 @@ +in: path +name: idCollaborateur +schema: + type: string + format: uuid +description: id collaborateur +required: true \ No newline at end of file diff --git a/parameters/path/idEP.yaml b/parameters/path/idEP.yaml new file mode 100644 index 0000000..2d78feb --- /dev/null +++ b/parameters/path/idEP.yaml @@ -0,0 +1,7 @@ +in: path +name: idEP +schema: + type: string + format: uuid +required: true +description: id EP diff --git a/parameters/path/idEvaluation.yaml b/parameters/path/idEvaluation.yaml new file mode 100644 index 0000000..3f0e96c --- /dev/null +++ b/parameters/path/idEvaluation.yaml @@ -0,0 +1,6 @@ +in: path +name: idEvaluation +schema: + type: string +required: true +description: id evaluation \ No newline at end of file diff --git a/parameters/path/idFormation.yaml b/parameters/path/idFormation.yaml new file mode 100644 index 0000000..322ebed --- /dev/null +++ b/parameters/path/idFormation.yaml @@ -0,0 +1,6 @@ +in: path +name: idFormation +schema: + type: number +required: true +description: id formation \ No newline at end of file diff --git a/parameters/path/idReferent.yaml b/parameters/path/idReferent.yaml new file mode 100644 index 0000000..51bcfdb --- /dev/null +++ b/parameters/path/idReferent.yaml @@ -0,0 +1,7 @@ +in: path +name: idReferent +schema: + type: string + format: uuid +required: true +description: id referent \ No newline at end of file diff --git a/parameters/path/mail.yaml b/parameters/path/mail.yaml new file mode 100644 index 0000000..1c3c87e --- /dev/null +++ b/parameters/path/mail.yaml @@ -0,0 +1,6 @@ +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 diff --git a/parameters/path/type.yaml b/parameters/path/type.yaml new file mode 100644 index 0000000..cfe5e5f --- /dev/null +++ b/parameters/path/type.yaml @@ -0,0 +1,6 @@ +in: path +name: type +schema: + type: string +required: true +description: type de l'EP \ No newline at end of file diff --git a/parameters/query/actionep.yaml b/parameters/query/actionep.yaml new file mode 100644 index 0000000..47cf831 --- /dev/null +++ b/parameters/query/actionep.yaml @@ -0,0 +1,6 @@ +in: query +name: actionep +schema: + type: string +required: true +description: paramêtre pour indiquer l'action à faire au moment de la mise à jour de l'EP diff --git a/parameters/query/assistants.yaml b/parameters/query/assistants.yaml new file mode 100644 index 0000000..ddd5251 --- /dev/null +++ b/parameters/query/assistants.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..9336258 --- /dev/null +++ b/parameters/query/collaborateurs.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..4580ab5 --- /dev/null +++ b/parameters/query/cptechlead.yaml @@ -0,0 +1,5 @@ +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 new file mode 100644 index 0000000..be611c0 --- /dev/null +++ b/parameters/query/fonctions.yaml @@ -0,0 +1,15 @@ +in: query +name: fonctions +schema: + type: array + items: + type: string + enum: + - assistants + - cp + - commerciaux + - deliveries + - 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 diff --git a/parameters/query/idAgence.yaml b/parameters/query/idAgence.yaml new file mode 100644 index 0000000..d599564 --- /dev/null +++ b/parameters/query/idAgence.yaml @@ -0,0 +1,5 @@ +in: query +name: idAgence +schema: + type: number +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 new file mode 100644 index 0000000..8cf9bcc --- /dev/null +++ b/parameters/query/idBu.yaml @@ -0,0 +1,5 @@ +in: query +name: idBu +schema: + type: number +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/idCollaborateurs.yaml b/parameters/query/idCollaborateurs.yaml new file mode 100644 index 0000000..9d67c2c --- /dev/null +++ b/parameters/query/idCollaborateurs.yaml @@ -0,0 +1,8 @@ +in: query +name: idCollaborateurs +schema: + type: array + items: + type: string + format: uuid +description: Liste des id des collaborateurs à récupérer \ No newline at end of file diff --git a/parameters/query/idReferent.yaml b/parameters/query/idReferent.yaml new file mode 100644 index 0000000..5676a47 --- /dev/null +++ b/parameters/query/idReferent.yaml @@ -0,0 +1,6 @@ +in: query +name: idReferent +schema: + type: string + format: uuid +description: id referent \ No newline at end of file diff --git a/parameters/query/ra.yaml b/parameters/query/ra.yaml new file mode 100644 index 0000000..cb70864 --- /dev/null +++ b/parameters/query/ra.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..ef49c70 --- /dev/null +++ b/parameters/query/referents.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..381995e --- /dev/null +++ b/parameters/query/rh.yaml @@ -0,0 +1,6 @@ +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 new file mode 100644 index 0000000..b4299fa --- /dev/null +++ b/parameters/query/role.yaml @@ -0,0 +1,6 @@ +in: query +name: role +schema: + type: string +required: true +description: role de l'utilisateur \ No newline at end of file diff --git a/paths/collaborateur/collaborateurbyid.yaml b/paths/collaborateur/collaborateurbyid.yaml new file mode 100644 index 0000000..4bbf064 --- /dev/null +++ b/paths/collaborateur/collaborateurbyid.yaml @@ -0,0 +1,16 @@ +get: + tags: + - collaborateurs + operationId: getCollaborateurById + description: recevoir un collaboratuer par son id + parameters: + - $ref: ../../parameters/path/idcollaborateur.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getcollaborateur.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateurbymail.yaml b/paths/collaborateur/collaborateurbymail.yaml new file mode 100644 index 0000000..645fe22 --- /dev/null +++ b/paths/collaborateur/collaborateurbymail.yaml @@ -0,0 +1,16 @@ +get: + tags: + - collaborateurs + operationId: getCollaborateurByMail + description: recevoir un collaborateur par son mail + parameters: + - $ref: ../../parameters/path/mail.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getcollaborateur.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/collaborateur/collaborateurs.yaml b/paths/collaborateur/collaborateurs.yaml new file mode 100644 index 0000000..9e564d5 --- /dev/null +++ b/paths/collaborateur/collaborateurs.yaml @@ -0,0 +1,18 @@ +get: + tags: + - collaborateurs + operationId: getCollaborateurs + description: recevoir la liste des collaborateurs + parameters: + - $ref: ../../parameters/query/assistants.yaml + - $ref: ../../parameters/query/collaborateurs.yaml + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + - $ref: ../../parameters/query/referents.yaml + - $ref: ../../parameters/query/rh.yaml + responses: + '200': + $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 new file mode 100644 index 0000000..0812e82 --- /dev/null +++ b/paths/collaborateur/collaborateursreferent.yaml @@ -0,0 +1,16 @@ +get: + tags: + - collaborateurs + operationId: getCollaborateursByReferent + description: Recevoir la liste des collaborateurs de le référent à la charge + parameters: + - $ref: ../../parameters/path/idreferent.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getcollaborateur.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml new file mode 100644 index 0000000..814cdf2 --- /dev/null +++ b/paths/demandeformation/demandesformation.yaml @@ -0,0 +1,45 @@ +get: + tags: + - demandesformation + operationId: getDemandesFormation + description: recevoir la liste des demandes de formations + parameters: + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + responses: + '200': + $ref: ../../responses/formation/demandesFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + +post: + tags: + - demandesformation + operationId: CreerDemandeFormation + description: créer une demande de formation pour un collaborateur + requestBody: + $ref: ../../requestbodies/demandeFormation.yaml + responses: + '201': + $ref: ../../responses/formation/creerDemandeFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + +put: + tags: + - demandesformation + operationId: UpdateDemandeFormation + description: repondre a une demande de formation et la mettre a jour + requestBody: + $ref: ../../requestbodies/demandeFormation.yaml + responses: + '200': + $ref: ../../responses/formation/reponseDemandeFormation.yaml + + '201': + $ref: ../../responses/formation/creerDemandeFormation.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 new file mode 100644 index 0000000..72346c0 --- /dev/null +++ b/paths/engagement/engagementbyid.yaml @@ -0,0 +1,14 @@ +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 new file mode 100644 index 0000000..4baa6de --- /dev/null +++ b/paths/engagement/engagements.yaml @@ -0,0 +1,15 @@ +get: + tags: + - engagements + operationId: getEngagements + description: récupérer la liste des engagements + parameters: + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + + responses: + '200': + $ref: ../../responses/engagement/engagements.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 new file mode 100644 index 0000000..d10fc3c --- /dev/null +++ b/paths/ep/champs.yaml @@ -0,0 +1,13 @@ +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 new file mode 100644 index 0000000..84e0868 --- /dev/null +++ b/paths/ep/ep.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getEP + description: recevoir la liste de tous les EP collaborateurs + parameters: + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + #- $ref: ../../parameters/query/debut.yaml + #- $ref: ../../parameters/query/fin.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 new file mode 100644 index 0000000..3f7d375 --- /dev/null +++ b/paths/ep/epbycollaborateur.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getEPByCollaborateur + description: recevoir la liste des EP collaborateur + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getlisteep.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/epbyid.yaml b/paths/ep/epbyid.yaml new file mode 100644 index 0000000..76ac77a --- /dev/null +++ b/paths/ep/epbyid.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getEPById + description: recevoir un EP par via son id + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '200': + $ref: ../../responses/ep/getep.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/epi.yaml b/paths/ep/epi.yaml new file mode 100644 index 0000000..ef85db3 --- /dev/null +++ b/paths/ep/epi.yaml @@ -0,0 +1,17 @@ +get: + tags: + - ep + operationId: createEPI + description: lancer la procedure entretien professionnel intermediaire + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/ep/creerepi.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/epreferent.yaml b/paths/ep/epreferent.yaml new file mode 100644 index 0000000..c3cb63e --- /dev/null +++ b/paths/ep/epreferent.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getEPByReferent + description: recevoir la liste de tous les EP fait passer par le référent + parameters: + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/ep/getlisteep.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/prochainepcollaborateur.yaml b/paths/ep/prochainepcollaborateur.yaml new file mode 100644 index 0000000..1cc31e1 --- /dev/null +++ b/paths/ep/prochainepcollaborateur.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getProchainEPByCollaborateur + description: recevoir son prochain EP + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/ep/getep.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/prochainsep.yaml b/paths/ep/prochainsep.yaml new file mode 100644 index 0000000..172bd14 --- /dev/null +++ b/paths/ep/prochainsep.yaml @@ -0,0 +1,14 @@ +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 new file mode 100644 index 0000000..9a5046a --- /dev/null +++ b/paths/ep/prochainsepreferent.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: getProchainsEPByReferent + description: recevoir la liste de tous les prochaines EP que fera passer le référent + parameters: + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/ep/getlisteep.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/rappelsignature.yaml b/paths/ep/rappelsignature.yaml new file mode 100644 index 0000000..ec426c0 --- /dev/null +++ b/paths/ep/rappelsignature.yaml @@ -0,0 +1,16 @@ +get: + tags: + - ep + operationId: rappelSignature + description : faire un rappel de signature EP + parameters: + - $ref: ../../parameters/path/idEP.yaml + responses: + '201': + $ref: ../../responses/ep/rappelSignature.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/ep/update.yaml b/paths/ep/update.yaml new file mode 100644 index 0000000..05731bb --- /dev/null +++ b/paths/ep/update.yaml @@ -0,0 +1,13 @@ +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/formation/formationbyid.yaml b/paths/formation/formationbyid.yaml new file mode 100644 index 0000000..5183a5c --- /dev/null +++ b/paths/formation/formationbyid.yaml @@ -0,0 +1,31 @@ +get: + tags: + - formations + operationId: getFormationById + description: Récupérer une formation par son id + parameters: + - $ref: ../../parameters/path/idFormation.yaml + responses: + '200': + $ref: ../../responses/formation/getformation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml + + +delete: + tags: + - formations + operationId: deleteFormation + description: Supprimer une formation + parameters: + - $ref: ../../parameters/path/idFormation.yaml + responses: + '204': + $ref: ../../responses/formation/supprimerFormation.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 new file mode 100644 index 0000000..85436eb --- /dev/null +++ b/paths/formation/formations.yaml @@ -0,0 +1,45 @@ +get: + tags: + - formations + operationId: getFormations + description: recevoir la liste des formations + parameters: + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + responses: + '200': + $ref: ../../responses/formation/getlisteformations.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + +post: + tags: + - formations + operationId: ajouterFormation + description: ajouter une nouvelle formations + requestBody: + $ref: ../../requestbodies/formation.yaml + responses: + '201': + $ref: ../../responses/formation/creerFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + +put: + tags: + - formations + operationId: updateFormation + description: update une formation + requestBody: + $ref: ../../requestbodies/formation.yaml + responses: + '200': + $ref: ../../responses/formation/updateFormation.yaml + + '201': + $ref: ../../responses/formation/creerFormation.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/paths/formation/prochainesformations.yaml b/paths/formation/prochainesformations.yaml new file mode 100644 index 0000000..0e1143b --- /dev/null +++ b/paths/formation/prochainesformations.yaml @@ -0,0 +1,17 @@ +get: + tags: + - formations + operationId: getProchainesFormation + description: Récupérer les formations plannifié et/ou replannifié + parameters: + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.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/participationformation/participationbycollaborateur.yaml b/paths/participationformation/participationbycollaborateur.yaml new file mode 100644 index 0000000..b39809f --- /dev/null +++ b/paths/participationformation/participationbycollaborateur.yaml @@ -0,0 +1,17 @@ +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 new file mode 100644 index 0000000..8eda948 --- /dev/null +++ b/paths/referents/referentbycollaborateur.yaml @@ -0,0 +1,16 @@ +get: + tags: + - referents + operationId: getReferentByCollaborateur + description: renvoie la liste des collaborateurs referents + parameters: + - $ref: ../../parameters/path/idCollaborateur.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getlistecollaborateurs.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/referents/referentbyid.yaml b/paths/referents/referentbyid.yaml new file mode 100644 index 0000000..9758712 --- /dev/null +++ b/paths/referents/referentbyid.yaml @@ -0,0 +1,16 @@ +get: + tags: + - referents + operationId: getReferentById + description: recevoir un referent par son id + parameters: + - $ref: ../../parameters/path/idReferent.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getcollaborateur.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '404': + $ref: ../../responses/erreur/notfound.yaml \ No newline at end of file diff --git a/paths/referents/referents.yaml b/paths/referents/referents.yaml new file mode 100644 index 0000000..0652b57 --- /dev/null +++ b/paths/referents/referents.yaml @@ -0,0 +1,16 @@ +get: + tags: + - referents + operationId: getReferents + description: recevoir la liste de tous les referents + parameters: + - $ref: ../../parameters/query/cptechlead.yaml + - $ref: ../../parameters/query/idBu.yaml + - $ref: ../../parameters/query/idAgence.yaml + - $ref: ../../parameters/query/referents.yaml + responses: + '200': + $ref: ../../responses/collaborateur/getlistereferrents.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 new file mode 100644 index 0000000..e69de29 diff --git a/requestbodies/_index.yaml b/requestbodies/_index.yaml new file mode 100644 index 0000000..27398ff --- /dev/null +++ b/requestbodies/_index.yaml @@ -0,0 +1,8 @@ +epBody: + $ref: ./ep.yaml + +formationBody: + $ref: ./formation.yaml + +demandeFormationBody: + $ref: ./demandeFormation.yaml diff --git a/requestbodies/demandeFormation.yaml b/requestbodies/demandeFormation.yaml new file mode 100644 index 0000000..ad03237 --- /dev/null +++ b/requestbodies/demandeFormation.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/formation/demandeformation.yaml \ No newline at end of file diff --git a/requestbodies/ep.yaml b/requestbodies/ep.yaml new file mode 100644 index 0000000..8342522 --- /dev/null +++ b/requestbodies/ep.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/ep/ep.yaml \ No newline at end of file diff --git a/requestbodies/formation.yaml b/requestbodies/formation.yaml new file mode 100644 index 0000000..e2bc560 --- /dev/null +++ b/requestbodies/formation.yaml @@ -0,0 +1,5 @@ +required: true +content: + application/json: + schema: + $ref: ../schemas/formation/formation.yaml \ No newline at end of file diff --git a/responses/_index.yaml b/responses/_index.yaml new file mode 100644 index 0000000..3d5d81c --- /dev/null +++ b/responses/_index.yaml @@ -0,0 +1,65 @@ +NotFoundResponse: + $ref: ./erreur/notfound.yaml + +ForbiddenResponse: + $ref: ./erreur/forbidden.yaml + + +getCollaborateurResponse: + $ref: ./collaborateur/getcollaborateur.yaml + +getlistecollaborateursResponse: + $ref: ./collaborateur/getlistecollaborateurs.yaml + +getlistereferentsResponse: + $ref: ./collaborateur/getlistereferrents.yaml + + +getepResponse: + $ref: ./ep/getep.yaml + +getlisteepResponse: + $ref: ./ep/getlisteep.yaml + +updateepResponse: + $ref: ./ep/updateep.yaml + +participantsResponse: + $ref: ./ep/participants.yaml + +notificationResponse: + $ref: ./ep/notificationResponse.yaml + +demandeepiResponse: + $ref: ./ep/creerepi.yaml + +rappelsignatureResponse: + $ref: ./ep/rappelSignature.yaml + + +getlisteformationsResponse: + $ref: ./formation/getlisteformations.yaml + +getformationResponse: + $ref: ./formation/getformation.yaml + +creerFormationResponse: + $ref: ./formation/creerFormation.yaml + +updateFormationResponse: + $ref: ./formation/updateFormation.yaml + +supprimerFormationResponse: + $ref: ./formation/supprimerFormation.yaml +#evaluationsResponse: +# $ref: ./formation/evaluations.yaml + +listedemandeformationResponse: + $ref: ./formation/demandesFormation.yaml + +creerDemandeFormationResponse: + $ref: ./formation/creerDemandeFormation.yaml + + +reponseDemandeFormationResponse: + $ref: ./formation/reponseDemandeFormation.yaml \ No newline at end of file diff --git a/responses/collaborateur/getcollaborateur.yaml b/responses/collaborateur/getcollaborateur.yaml new file mode 100644 index 0000000..1dd8b7a --- /dev/null +++ b/responses/collaborateur/getcollaborateur.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/collaborateur/getlistecollaborateurs.yaml b/responses/collaborateur/getlistecollaborateurs.yaml new file mode 100644 index 0000000..b04e982 --- /dev/null +++ b/responses/collaborateur/getlistecollaborateurs.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/collaborateur/collaborateur.yaml \ No newline at end of file diff --git a/responses/collaborateur/getlistereferrents.yaml b/responses/collaborateur/getlistereferrents.yaml new file mode 100644 index 0000000..eb77d3e --- /dev/null +++ b/responses/collaborateur/getlistereferrents.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/collaborateur/collaborateur.yaml diff --git a/responses/engagement/engagement.yaml b/responses/engagement/engagement.yaml new file mode 100644 index 0000000..ecf306f --- /dev/null +++ b/responses/engagement/engagement.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file diff --git a/responses/engagement/engagements.yaml b/responses/engagement/engagements.yaml new file mode 100644 index 0000000..ae18e45 --- /dev/null +++ b/responses/engagement/engagements.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file diff --git a/responses/ep/creerepi.yaml b/responses/ep/creerepi.yaml new file mode 100644 index 0000000..9737e38 --- /dev/null +++ b/responses/ep/creerepi.yaml @@ -0,0 +1 @@ +description: ajout EPI fait diff --git a/responses/ep/getep.yaml b/responses/ep/getep.yaml new file mode 100644 index 0000000..506f308 --- /dev/null +++ b/responses/ep/getep.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/ep/ep.yaml \ No newline at end of file diff --git a/responses/ep/getlistechamps.yaml b/responses/ep/getlistechamps.yaml new file mode 100644 index 0000000..ba6891f --- /dev/null +++ b/responses/ep/getlistechamps.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/ep/champ.yaml \ No newline at end of file diff --git a/responses/ep/getlisteep.yaml b/responses/ep/getlisteep.yaml new file mode 100644 index 0000000..54a437d --- /dev/null +++ b/responses/ep/getlisteep.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/ep/ep.yaml \ No newline at end of file diff --git a/responses/ep/notificationResponse.yaml b/responses/ep/notificationResponse.yaml new file mode 100644 index 0000000..61be455 --- /dev/null +++ b/responses/ep/notificationResponse.yaml @@ -0,0 +1 @@ +description: Notification envoyé avec succès diff --git a/responses/ep/participants.yaml b/responses/ep/participants.yaml new file mode 100644 index 0000000..aa22fdd --- /dev/null +++ b/responses/ep/participants.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/ep/participationEP.yaml \ No newline at end of file diff --git a/responses/ep/rappelSignature.yaml b/responses/ep/rappelSignature.yaml new file mode 100644 index 0000000..e136067 --- /dev/null +++ b/responses/ep/rappelSignature.yaml @@ -0,0 +1 @@ +description: Notification de rappel envoyé \ No newline at end of file diff --git a/responses/ep/updateep.yaml b/responses/ep/updateep.yaml new file mode 100644 index 0000000..9be2f77 --- /dev/null +++ b/responses/ep/updateep.yaml @@ -0,0 +1 @@ +description: EP mise à jour avec succès \ No newline at end of file diff --git a/responses/erreur/forbidden.yaml b/responses/erreur/forbidden.yaml new file mode 100644 index 0000000..123b03b --- /dev/null +++ b/responses/erreur/forbidden.yaml @@ -0,0 +1,5 @@ +description: Acces interdit +content: + application/json: + schema: + $ref: ../../schemas/erreur/erreur.yaml \ No newline at end of file diff --git a/responses/erreur/notfound.yaml b/responses/erreur/notfound.yaml new file mode 100644 index 0000000..eb96ba8 --- /dev/null +++ b/responses/erreur/notfound.yaml @@ -0,0 +1,5 @@ +description: La ressource introuvable +content: + application/json: + schema: + $ref: ../../schemas/erreur/erreur.yaml \ No newline at end of file diff --git a/responses/formation/creerDemandeFormation.yaml b/responses/formation/creerDemandeFormation.yaml new file mode 100644 index 0000000..5e909df --- /dev/null +++ b/responses/formation/creerDemandeFormation.yaml @@ -0,0 +1 @@ +description: Demande formation créée \ No newline at end of file diff --git a/responses/formation/creerFormation.yaml b/responses/formation/creerFormation.yaml new file mode 100644 index 0000000..0a08241 --- /dev/null +++ b/responses/formation/creerFormation.yaml @@ -0,0 +1 @@ +description: Formation créée avec succès \ No newline at end of file diff --git a/responses/formation/demandesFormation.yaml b/responses/formation/demandesFormation.yaml new file mode 100644 index 0000000..9fecfcf --- /dev/null +++ b/responses/formation/demandesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/demandeformation.yaml \ No newline at end of file diff --git a/responses/formation/getformation.yaml b/responses/formation/getformation.yaml new file mode 100644 index 0000000..cd4bd80 --- /dev/null +++ b/responses/formation/getformation.yaml @@ -0,0 +1,5 @@ +description: OK +content: + application/json: + schema: + $ref: ../../schemas/formation/formation.yaml \ No newline at end of file diff --git a/responses/formation/getlisteformations.yaml b/responses/formation/getlisteformations.yaml new file mode 100644 index 0000000..af17f15 --- /dev/null +++ b/responses/formation/getlisteformations.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: array + items: + $ref: ../../schemas/formation/formation.yaml \ No newline at end of file diff --git a/responses/formation/participationsformation.yaml b/responses/formation/participationsformation.yaml new file mode 100644 index 0000000..836c423 --- /dev/null +++ b/responses/formation/participationsformation.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/reponseDemandeFormation.yaml b/responses/formation/reponseDemandeFormation.yaml new file mode 100644 index 0000000..4730e0a --- /dev/null +++ b/responses/formation/reponseDemandeFormation.yaml @@ -0,0 +1 @@ +description: demande formation mise à jour \ No newline at end of file diff --git a/responses/formation/supprimerFormation.yaml b/responses/formation/supprimerFormation.yaml new file mode 100644 index 0000000..54a4ae4 --- /dev/null +++ b/responses/formation/supprimerFormation.yaml @@ -0,0 +1 @@ +description: formation supprimée \ No newline at end of file diff --git a/responses/formation/updateFormation.yaml b/responses/formation/updateFormation.yaml new file mode 100644 index 0000000..392f5f4 --- /dev/null +++ b/responses/formation/updateFormation.yaml @@ -0,0 +1 @@ +description: formation mise à jour \ No newline at end of file diff --git a/schemas/_index.yaml b/schemas/_index.yaml new file mode 100644 index 0000000..60a94bb --- /dev/null +++ b/schemas/_index.yaml @@ -0,0 +1,80 @@ +#Collaborateur +AgenceModel: + $ref: ./collaborateur/agence.yaml + +BusinessUnitModel: + $ref: ./collaborateur/businessunit.yaml + +CollaborateurModel: + $ref: ./collaborateur/collaborateur.yaml + + + +#EP +AugmentationSalaireModel: + $ref: ./ep/augmentationsalaire.yaml + +AutorisationModel: + $ref: ./ep/autorisation.yaml + +DemandeDelegationModel: + $ref: ./ep/demandedelegation.yaml + +DocumentModel: + $ref: ./ep/document.yaml + +EngagementModel: + $ref: ./ep/engagement.yaml + +EpModel: + $ref: ./ep/ep.yaml + +ParticipationEPModel: + $ref: ./ep/participationEP.yaml + +RDVEntretienModel: + $ref: ./ep/rdventretien.yaml + + +#Saisie +ChampModel: + $ref: ./saisie/champ.yaml + +SaisieModel: + $ref: ./saisie/saisie.yaml + +SaisieBoolTexteModel: + $ref: ./saisie/booltexte.yaml + +SaisieDeuxTextesModel: + $ref: ./saisie/deuxtextes.yaml + +SaisieNoteTexteModel: + $ref: ./saisie/notetexte.yaml + +SaisieObjectifsModel: + $ref: ./saisie/objectifs.yaml + +SaisieUnBoolModel: + $ref: ./saisie/unbool.yaml + +SaisieUnTexteModel: + $ref: ./saisie/untexte.yaml + + +#Formation +FormationModel: + $ref: ./formation/formation.yaml + +DemandeFormationModel: + $ref: ./formation/demandeformation.yaml + +ThemeModel: + $ref: ./formation/theme.yaml + +ParticipationFormationModel: + $ref: ./formation/participationformation.yaml + +#Erreur +ErreurModel: + $ref: ./erreur/erreur.yaml \ No newline at end of file diff --git a/schemas/collaborateur/agence.yaml b/schemas/collaborateur/agence.yaml new file mode 100644 index 0000000..5662f01 --- /dev/null +++ b/schemas/collaborateur/agence.yaml @@ -0,0 +1,13 @@ +type: object +properties: + id: + type: number + nom: + type: string + bus: + type: array + items: + $ref: ./businessunit.yaml +required: + - id + - nom \ No newline at end of file diff --git a/schemas/collaborateur/businessunit.yaml b/schemas/collaborateur/businessunit.yaml new file mode 100644 index 0000000..fd7fd81 --- /dev/null +++ b/schemas/collaborateur/businessunit.yaml @@ -0,0 +1,12 @@ +type: object +properties: + id: + type: number + nom: + type: string + agence: + $ref: ./agence.yaml +required: + - id + - nom + - agence \ No newline at end of file diff --git a/schemas/collaborateur/collaborateur.yaml b/schemas/collaborateur/collaborateur.yaml new file mode 100644 index 0000000..bdb1074 --- /dev/null +++ b/schemas/collaborateur/collaborateur.yaml @@ -0,0 +1,31 @@ +type: object +properties: + id: + type: string + format: uuid + nom: + type: string + prenom: + type: string + mailApside: + type: string + format: email + dateArrivee: + type: string + format: date-time + dateDepart: + type: string + format: date-time + businessUnit: + $ref: ./businessunit.yaml + referent: + $ref: ./collaborateur.yaml +required: + - id + - nom + - prenom + - agence + - mailApside + - dateArrive + - businessunit + - referent \ No newline at end of file diff --git a/schemas/ep/augmentationsalaire.yaml b/schemas/ep/augmentationsalaire.yaml new file mode 100644 index 0000000..a84c8f3 --- /dev/null +++ b/schemas/ep/augmentationsalaire.yaml @@ -0,0 +1,12 @@ +type: object +properties: + id: + type: number + augmentation: + type: number + ep: + $ref: ./ep.yaml +required: + - id + - augmentation + - ep \ No newline at end of file diff --git a/schemas/ep/autorisation.yaml b/schemas/ep/autorisation.yaml new file mode 100644 index 0000000..6b59ba9 --- /dev/null +++ b/schemas/ep/autorisation.yaml @@ -0,0 +1,13 @@ +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/demandedelegation.yaml b/schemas/ep/demandedelegation.yaml new file mode 100644 index 0000000..30feef8 --- /dev/null +++ b/schemas/ep/demandedelegation.yaml @@ -0,0 +1,23 @@ +type: object +properties: + id: + type: integer + ep: + $ref: ./ep.yaml + referent: + $ref: ../collaborateur/collaborateur.yaml + dateDemande: + type: string + format: date-time + reponse: + type: boolean + dateReponse: + type: string + format: date-time + raisonRefus: + type: string +required: + - id + - ep + - referent + - dateDemande \ No newline at end of file diff --git a/schemas/ep/document.yaml b/schemas/ep/document.yaml new file mode 100644 index 0000000..3f99bd0 --- /dev/null +++ b/schemas/ep/document.yaml @@ -0,0 +1,20 @@ +type: object +properties: + id: + type: integer + type: + type: string + ep: + $ref: ./ep.yaml + saisieCollaborateur: + 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 new file mode 100644 index 0000000..625848e --- /dev/null +++ b/schemas/ep/engagement.yaml @@ -0,0 +1,29 @@ +type: object +properties: + id: + type: number + example: + 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.yaml +required: + - id + - action + - modalite + - dispositif + - datePrevisionnelle + - ep \ No newline at end of file diff --git a/schemas/ep/ep.yaml b/schemas/ep/ep.yaml new file mode 100644 index 0000000..b8f499e --- /dev/null +++ b/schemas/ep/ep.yaml @@ -0,0 +1,80 @@ +type: object +properties: + id: + type: number + type: + type: string + dateCreation: + type: string + format: date-time + dateDisponibilite: + type: string + format: date-time + datePrevisionnelle: + type: string + format: date-time + dateSaisie: + type: string + format: date-time + etat: + type: number + cv: + type: string + dateEntretien: + type: string + format: date-time + typeEntretien: + type: string + obligatoire: + type: boolean + commentaireAssistant: + type: string + commentaireCollaborateur: + type: string + commentaireCommercial: + type: string + collaborateur: + $ref: ../collaborateur/collaborateur.yaml + referent: + $ref: ../collaborateur/collaborateur.yaml + demandesFormation: + type: array + items: + $ref: ../formation/demandeformation.yaml + participants: + type: array + items: + $ref: ../collaborateur/collaborateur.yaml + engagements: + type: array + items: + $ref: ./engagement.yaml + propositionsRDV: + type: array + items: + $ref: ./rdventretien.yaml + augmentationSalaire: + $ref: ./augmentationsalaire.yaml + autorisations: + type: array + items: + $ref: ./autorisation.yaml + demandesDelegation: + type: array + items: + $ref: ./demandedelegation.yaml + documents: + type: array + items: + $ref: ./document.yaml + +required: + - id + - type + - dateCreation + - dateDisponibilite + - datePrevisionnelle + - etat + - obligatoire + - collaborateur + - documents \ No newline at end of file diff --git a/schemas/ep/participationEP.yaml b/schemas/ep/participationEP.yaml new file mode 100644 index 0000000..41a5493 --- /dev/null +++ b/schemas/ep/participationEP.yaml @@ -0,0 +1,12 @@ +type: object +properties: + id: + type: number + collaborateur: + $ref: ../collaborateur/collaborateur.yaml + ep: + $ref: ./ep.yaml +required: + - id + - collaborateur + - ep \ No newline at end of file diff --git a/schemas/ep/rdventretien.yaml b/schemas/ep/rdventretien.yaml new file mode 100644 index 0000000..80e2a84 --- /dev/null +++ b/schemas/ep/rdventretien.yaml @@ -0,0 +1,15 @@ +type: object +properties: + id: + type: number + example: + typeEntretien: + type: string + example: + dateEntretien: + type: string + format: date-time +required: + - id + - typeEntretien + - dateEntretien \ No newline at end of file diff --git a/schemas/erreur/erreur.yaml b/schemas/erreur/erreur.yaml new file mode 100644 index 0000000..42858a1 --- /dev/null +++ b/schemas/erreur/erreur.yaml @@ -0,0 +1,10 @@ +type: object +properties: + code: + type: string + message: + type: string +required: + - code + - message + \ No newline at end of file diff --git a/schemas/formation/demandeformation.yaml b/schemas/formation/demandeformation.yaml new file mode 100644 index 0000000..837b303 --- /dev/null +++ b/schemas/formation/demandeformation.yaml @@ -0,0 +1,36 @@ +type: object +properties: + id: + type: integer + status: + type: string + libelle: + type: string + description: + type: string + demandeRH: + type: boolean + dateDemande: + type: string + format: date-time + reponse: + type: boolean + commentaireRefus: + type: string + dateDerniereReponse: + type: string + format: date-time + theme: + $ref: ./theme.yaml + ep: + $ref: ../ep/ep.yaml + +required: + - id + - status + - libelle + - description + - demandeRH + - dateDemande + - ep + - theme \ No newline at end of file diff --git a/schemas/formation/formation.yaml b/schemas/formation/formation.yaml new file mode 100644 index 0000000..a23b0d0 --- /dev/null +++ b/schemas/formation/formation.yaml @@ -0,0 +1,50 @@ +type: object +properties: + id: + type: integer + intitule: + type: string + origine: + type: string + statut: + type: string + enum: [Planifiée, Replanifiée, Réalisée, Annulée] + dateDebut: + type: string + format: date-time + dateFin: + type: string + format: date-time + heure: + type: number + jour: + type: number + organisme: + type: string + mode: + type: string + enum: [Présentiel, Visioconférence] + type: + type: string + enum: [Externe, Interne] + estCertifie: + type: boolean + participantsFormation: + type: array + items: + $ref: participationformation.yaml + + +required: + - id + - intitule + - origine + - status + - dateDebut + - dateFin + - heure + - jour + - organisme + - mode + - type + - estCertifie \ No newline at end of file diff --git a/schemas/formation/participationformation.yaml b/schemas/formation/participationformation.yaml new file mode 100644 index 0000000..04f1834 --- /dev/null +++ b/schemas/formation/participationformation.yaml @@ -0,0 +1,24 @@ +type: object +properties: + id: + type: number + dateCreation: + type: string + format: date-time + formation: + $ref: ./formation.yaml + demandeformation: + $ref: ./demandeformation.yaml + estEvaluee: + type: boolean + evaluations: + type: array + items: + $ref: ../saisie/saisie.yaml + +required: + - id + - dateCreation + - formation + - demandeformation + \ No newline at end of file diff --git a/schemas/formation/theme.yaml b/schemas/formation/theme.yaml new file mode 100644 index 0000000..a669e66 --- /dev/null +++ b/schemas/formation/theme.yaml @@ -0,0 +1,14 @@ +type: object +properties: + id: + type: integer + nom: + type: string + demandesFormation: + type: array + items: + $ref: ./demandeformation.yaml +required: + - id + - nom + - demandesFormation \ No newline at end of file diff --git a/schemas/saisie/booltexte.yaml b/schemas/saisie/booltexte.yaml new file mode 100644 index 0000000..698c5fa --- /dev/null +++ b/schemas/saisie/booltexte.yaml @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..d3e3838 --- /dev/null +++ b/schemas/saisie/champ.yaml @@ -0,0 +1,26 @@ +type: object +properties: + id: + type: integer + texte: + type: string + section: + type: string + ordre: + type: number + typeChamp: + type: string + typeSaisie: + type: string + saisies: + type: array + items: + $ref: ./saisie.yaml + +required: + - id + - texte + - section + - ordre + - typeChamp + - typeSaisie \ No newline at end of file diff --git a/schemas/saisie/deuxtextes.yaml b/schemas/saisie/deuxtextes.yaml new file mode 100644 index 0000000..4536a56 --- /dev/null +++ b/schemas/saisie/deuxtextes.yaml @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..e61ee89 --- /dev/null +++ b/schemas/saisie/notetexte.yaml @@ -0,0 +1,11 @@ +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 new file mode 100644 index 0000000..e51970e --- /dev/null +++ b/schemas/saisie/objectifs.yaml @@ -0,0 +1,12 @@ +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 new file mode 100644 index 0000000..818773b --- /dev/null +++ b/schemas/saisie/saisie.yaml @@ -0,0 +1,19 @@ +type: object +properties: + id: + type: string + type: + type: string + champ: + $ref: ./champ.yaml + participationFormation: + $ref: ../formation/participationformation.yaml + documentCollaborateur: + $ref: ../ep/document.yaml + documentReferent: + $ref: ../ep/document.yaml + +required: + - id + - type + - champ \ No newline at end of file diff --git a/schemas/saisie/unbool.yaml b/schemas/saisie/unbool.yaml new file mode 100644 index 0000000..f102dc0 --- /dev/null +++ b/schemas/saisie/unbool.yaml @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..73c4927 --- /dev/null +++ b/schemas/saisie/untexte.yaml @@ -0,0 +1,8 @@ +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 new file mode 100644 index 0000000..f4b815d --- /dev/null +++ b/securityschemes/_index.yaml @@ -0,0 +1,2 @@ +bearerAuth: + $ref: ./bearerauth.yaml \ No newline at end of file diff --git a/securityschemes/bearerauth.yaml b/securityschemes/bearerauth.yaml new file mode 100644 index 0000000..47be619 --- /dev/null +++ b/securityschemes/bearerauth.yaml @@ -0,0 +1,3 @@ +type: http +scheme: bearer +bearerFormat: JWT \ No newline at end of file