diff --git a/openapi.yaml b/openapi.yaml index c0832f6..2d1263b 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.3.0 + version: 1.3.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. diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml index 40bbc50..28febc1 100644 --- a/paths/demandeformation/demandesformation.yaml +++ b/paths/demandeformation/demandesformation.yaml @@ -20,7 +20,7 @@ get: post: tags: - - demandesformation + - demandesFormation operationId: creerDemandeFormation description: Créer une demande de formation pour un collaborateur requestBody: @@ -34,7 +34,7 @@ post: put: tags: - - demandesformation + - demandesFormation operationId: UpdateDemandeFormation description: Répondre a une demande de formation et la mettre à jour requestBody: diff --git a/paths/referents/referentbyid.yaml b/paths/referents/referentbyid.yaml index a9583e1..aa1076c 100644 --- a/paths/referents/referentbyid.yaml +++ b/paths/referents/referentbyid.yaml @@ -7,7 +7,7 @@ get: - $ref: ../../parameters/path/idReferent.yaml responses: '200': - $ref: ../../responses/collaborateur/getCollaborateur.yaml + $ref: ../../responses/referent/getReferent.yaml '403': $ref: ../../responses/erreur/forbidden.yaml diff --git a/responses/engagement/getEngagement.yaml b/responses/engagement/getEngagement.yaml index fa1a345..ecf306f 100644 --- a/responses/engagement/getEngagement.yaml +++ b/responses/engagement/getEngagement.yaml @@ -2,4 +2,4 @@ description: OK content: application/json: schema: - $ref: ../../schemas/engagement/engagement.yaml \ No newline at end of file + $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file diff --git a/responses/engagement/getListeEngagements.yaml b/responses/engagement/getListeEngagements.yaml index 9869b4d..ae18e45 100644 --- a/responses/engagement/getListeEngagements.yaml +++ b/responses/engagement/getListeEngagements.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/engagement/engagement.yaml \ No newline at end of file + $ref: ../../schemas/ep/engagement.yaml \ No newline at end of file diff --git a/responses/referent/getListeReferrents.yaml b/responses/referent/getListeReferrents.yaml index eb77d3e..d0bd14a 100644 --- a/responses/referent/getListeReferrents.yaml +++ b/responses/referent/getListeReferrents.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/collaborateur/collaborateur.yaml + $ref: ../../schemas/collaborateur/referent.yaml diff --git a/responses/referent/getReferent.yaml b/responses/referent/getReferent.yaml index 1dd8b7a..6dfb40b 100644 --- a/responses/referent/getReferent.yaml +++ b/responses/referent/getReferent.yaml @@ -2,4 +2,4 @@ description: OK content: application/json: schema: - $ref: ../../schemas/collaborateur/collaborateur.yaml \ No newline at end of file + $ref: ../../schemas/collaborateur/referent.yaml \ No newline at end of file diff --git a/schemas/_index.yaml b/schemas/_index.yaml index df5308f..9e9efea 100644 --- a/schemas/_index.yaml +++ b/schemas/_index.yaml @@ -8,6 +8,9 @@ BusinessUnitDTO: CollaborateurDTO: $ref: ./collaborateur/collaborateur.yaml +ReferentDTO: + $ref: ./collaborateur/referent.yaml + ProfilDTO: $ref: ./collaborateur/profil.yaml @@ -44,6 +47,9 @@ EpSaisieDTO: ObjectifDTO: $ref: ./ep/objectif.yaml +ObjectifPrecedentDTO: + $ref: ./ep/objectifPrecedent.yaml + ParticipationEPDTO: $ref: ./ep/participationEP.yaml @@ -70,7 +76,6 @@ ChampDTO: SaisieDTO: $ref: ./saisie/saisie.yaml - #DemandeFormation CreationDemandeFormationDTO: $ref: ./demandeformation/creationDemandeFormation.yaml @@ -78,10 +83,16 @@ CreationDemandeFormationDTO: DemandeFormationDTO: $ref: ./demandeformation/demandeFormation.yaml +OrigineDemandeFormationDTO: + $ref: ./demandeformation/origineDemandesFormation.yaml + ThemeDTO: $ref: ./demandeformation/theme.yaml #Formation +EvaluationDTO: + $ref: ./formation/evaluation.yaml + FormationDTO: $ref: ./formation/formation.yaml @@ -97,6 +108,9 @@ OrigineFormationDTO: ParticipationFormationDTO: $ref: ./formation/participationFormation.yaml +StatutFormationDTO: + $ref: ./formation/statutFormation.yaml + TypeFormationDTO: $ref: ./formation/typeFormation.yaml diff --git a/schemas/collaborateur/collaborateur.yaml b/schemas/collaborateur/collaborateur.yaml index d32e098..d1995d9 100644 --- a/schemas/collaborateur/collaborateur.yaml +++ b/schemas/collaborateur/collaborateur.yaml @@ -20,7 +20,7 @@ properties: businessUnit: $ref: ./businessUnit.yaml referent: - $ref: ./collaborateur.yaml + $ref: ./referent.yaml required: - id - nom diff --git a/schemas/collaborateur/referent.yaml b/schemas/collaborateur/referent.yaml new file mode 100644 index 0000000..05f1d69 --- /dev/null +++ b/schemas/collaborateur/referent.yaml @@ -0,0 +1,25 @@ +type: object +description: Les informations d'un collaborateur +properties: + id: + type: string + format: uuid + nom: + type: string + prenom: + type: string + mailApside: + type: string + format: email + businessUnit: + $ref: ./businessUnit.yaml + collaborateurs: + type: array + items: + $ref: ./collaborateur.yaml +required: + - id + - nom + - prenom + - mailApside + - businessunit \ No newline at end of file diff --git a/schemas/engagement/engagement.yaml b/schemas/engagement/engagement.yaml deleted file mode 100644 index c93c2cd..0000000 --- a/schemas/engagement/engagement.yaml +++ /dev/null @@ -1,28 +0,0 @@ -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/ep.yaml b/schemas/ep/ep.yaml index 39133b5..5eeb418 100644 --- a/schemas/ep/ep.yaml +++ b/schemas/ep/ep.yaml @@ -55,7 +55,7 @@ properties: engagements: type: array items: - $ref: ../engagement/engagement.yaml + $ref: ../ep/engagement.yaml augmentationSalaire: $ref: ./augmentationSalaire.yaml demandesDelegation: