diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml index 28ff97c..1317dfc 100644 --- a/paths/demandeformation/demandesformation.yaml +++ b/paths/demandeformation/demandesformation.yaml @@ -16,19 +16,5 @@ get: '200': $ref: ../../responses/demandeformation/getListeDemandesFormation.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/creationDemandeFormation.yaml - responses: - '201': - $ref: ../../responses/demandeformation/demandeFormationCreee.yaml - '403': $ref: ../../responses/erreur/forbidden.yaml \ No newline at end of file diff --git a/requestbodies/_index.yaml b/requestbodies/_index.yaml index ba32466..92737cf 100644 --- a/requestbodies/_index.yaml +++ b/requestbodies/_index.yaml @@ -1,5 +1,3 @@ -CreationDemandeFormationBody: - $ref: ./creationDemandeFormation.yaml DemandeDelegationBody: $ref: ./demandeDelegation.yaml diff --git a/requestbodies/creationDemandeFormation.yaml b/requestbodies/creationDemandeFormation.yaml deleted file mode 100644 index b17b2b1..0000000 --- a/requestbodies/creationDemandeFormation.yaml +++ /dev/null @@ -1,5 +0,0 @@ -required: true -content: - application/json: - schema: - $ref: ../schemas/demandeformation/creationDemandeFormation.yaml diff --git a/schemas/_index.yaml b/schemas/_index.yaml index 32f82e3..cac33d0 100644 --- a/schemas/_index.yaml +++ b/schemas/_index.yaml @@ -68,9 +68,6 @@ SaisieDTO: $ref: ./saisie/saisie.yaml #DemandeFormation -CreationDemandeFormationDTO: - $ref: ./demandeformation/creationDemandeFormation.yaml - DemandeFormationDTO: $ref: ./demandeformation/demandeFormation.yaml diff --git a/schemas/demandeformation/creationDemandeFormation.yaml b/schemas/demandeformation/creationDemandeFormation.yaml deleted file mode 100644 index fc8db42..0000000 --- a/schemas/demandeformation/creationDemandeFormation.yaml +++ /dev/null @@ -1,18 +0,0 @@ -type: object -description: Objet à envoyer lors d'une demande de formation -properties: - id: - type: integer - format: int64 - libelle: - type: string - description: - type: string - theme: - type: integer - -required: - - id - - libelle - - description - - theme \ No newline at end of file diff --git a/schemas/demandeformation/demandeFormation.yaml b/schemas/demandeformation/demandeFormation.yaml index 06662e7..a29c625 100644 --- a/schemas/demandeformation/demandeFormation.yaml +++ b/schemas/demandeformation/demandeFormation.yaml @@ -1,26 +1,33 @@ type: object -description: Les détails d'une demande de formation +description: DTO permettant de gérer les demandes de formation properties: id: type: integer format: int64 + description: Id de la demande de formation libelle: type: string + description: Libellé de la demande de formation description: type: string + description: Description détaillée de la demande de formation demandeRH: type: boolean default: false + description: Indique si il s'agit d'une demande de formation créer par une RH ou non dateDemande: type: string format: date-time + description: Date à laquelle la demande a été effectuée etatDemande: $ref: ../enum/etatDemande.yaml commentaireRefus: type: string + description: Commentaire expliquant la raison pour laquelle la demande de formation a été refusée dateDerniereReponse: type: string format: date-time + description: Date à laquelle la demande de formation a reçu une réponse pour la dernière fois theme: $ref: ./theme.yaml origine: @@ -38,5 +45,4 @@ required: - demandeRH - dateDemande - etatDemande - - ep - theme \ No newline at end of file diff --git a/schemas/demandeformation/origineDemandesFormation.yaml b/schemas/demandeformation/origineDemandesFormation.yaml index c43beeb..eba04b8 100644 --- a/schemas/demandeformation/origineDemandesFormation.yaml +++ b/schemas/demandeformation/origineDemandesFormation.yaml @@ -1,10 +1,12 @@ type: object -description: Origine d'une demande de formation +description: DTO concernant l'origine de la demande de formation properties: id: type: integer + description: Id de l'origine de la demande de formation libelle: type: string + description: Libellé de l'origine de la demande de formation required: - id diff --git a/schemas/demandeformation/theme.yaml b/schemas/demandeformation/theme.yaml index 2342c4a..d9bfde6 100644 --- a/schemas/demandeformation/theme.yaml +++ b/schemas/demandeformation/theme.yaml @@ -1,16 +1,13 @@ type: object -description: Thème d'une demande de formation +description: DTO concernant le thème d'une demande de formation properties: id: type: integer - nom: + description: Id du thème de la demande de formation + libelle: type: string - demandesFormation: - type: array - items: - $ref: ./demandeFormation.yaml + description: Libellé du thème required: - id - - nom - - demandesFormation \ No newline at end of file + - libelle \ No newline at end of file