MAJ des urls pour la partie demandeFormation en fonction des spécification techniques

master
Yanaël GRETTE 4 years ago
parent 2920133ca8
commit cef648874f
  1. 16
      openapi.yaml
  2. 48
      paths/demandeformation/demandeFormationId.yaml
  3. 18
      paths/demandeformation/demandeFormationRepondre.yaml
  4. 20
      paths/demandeformation/demandesFormationAttente.yaml
  5. 20
      paths/demandeformation/demandesFormationRepondues.yaml
  6. 34
      paths/demandeformation/demandesformation.yaml
  7. 8
      paths/demandeformation/originesDemandesFormation.yaml
  8. 3
      paths/participationformation/evaluer.yaml
  9. 6
      responses/demandeformation/demandeFormationCreee.yaml
  10. 1
      responses/demandeformation/demandeFormationSupprimee.yaml
  11. 6
      responses/demandeformation/reponseDemandeFormation.yaml

@ -120,22 +120,18 @@ paths:
$ref: ./paths/demandedelegation/demandeDelegationId.yaml
#DemandeFormation
/demandeformation:
$ref: ./paths/demandeformation/demandesFormation.yaml
/demandeformation/{idDemandeFormation}/repondre:
$ref: ./paths/demandeformation/demandeFormationRepondre.yaml
/demandeformation/enattente:
$ref: ./paths/demandeformation/demandesFormationAttente.yaml
/demandeformation/repondus:
$ref: ./paths/demandeformation/demandesFormationRepondues.yaml
/demandesformation:
$ref: ./paths/demandeformation/demandesFormation.yaml
/demandesformation/{idDemandeFormation}:
$ref: ./paths/demandeformation/demandeFormationId.yaml
#OrigineDemandeFormation
/originesdemandesformation:
$ref: ./paths/demandeformation/originesDemandesFormation.yaml
#Theme
/themes:
$ref: ./paths/demandeformation/themes.yaml
#/themes:
# $ref: ./paths/demandeformation/themes.yaml
#Formation
/formations:

@ -0,0 +1,48 @@
put:
tags:
- demandesFormation
operationId: RepondreDemandeFormation
description: Répondre a une demande de formation et la mettre à jour
parameters:
- $ref: ../../parameters/path/idDemandeFormation.yaml
requestBody:
$ref: ../../requestbodies/demandeFormation.yaml
responses:
'200':
$ref: ../../responses/demandeformation/reponseDemandeFormation.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml
delete:
tags:
- demandesFormation
operationId: SupprimerDemandeFormation
description: Supprimer une demande de formation
parameters:
- $ref: ../../parameters/path/idDemandeFormation.yaml
responses:
'200':
$ref: ../../responses/demandeformation/demandeFormationSupprimee.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -1,18 +0,0 @@
put:
tags:
- demandesFormation
operationId: RepondreDemandeFormation
description: Répondre a une demande de formation et la mettre à jour
parameters:
- $ref: ../../parameters/path/idDemandeFormation.yaml
requestBody:
$ref: ../../requestbodies/demandeFormation.yaml
responses:
'200':
$ref: ../../responses/demandeformation/reponseDemandeFormation.yaml
'201':
$ref: ../../responses/demandeformation/demandeFormationCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -1,20 +0,0 @@
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

@ -1,20 +0,0 @@
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

@ -2,7 +2,7 @@ get:
tags:
- demandesFormation
operationId: getDemandesFormation
description: Récupérer la liste des demandes de formations
description: Récupérer une liste de demandes de formation
parameters:
- $ref: ../../parameters/query/etatsDemande.yaml
- $ref: ../../parameters/query/idBUs.yaml
@ -11,10 +11,38 @@ get:
- $ref: ../../parameters/query/parPage.yaml
- $ref: ../../parameters/query/texte.yaml
- $ref: ../../parameters/query/tri.yaml
- $ref: ../../parameters/query/theme.yaml
#- $ref: ../../parameters/query/theme.yaml
- $ref: ../../parameters/query/dateDebut.yaml
- $ref: ../../parameters/query/dateFin.yaml
responses:
'200':
$ref: ../../responses/demandeformation/getListeDemandesFormation.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
$ref: ../../responses/erreur/forbidden.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml
post:
tags:
- demandesFormation
operationId: ajouterDemandeFormation
description: Créer demande de formation pour un collaborateur
requestBody:
$ref: ../../requestbodies/demandeFormation.yaml
responses:
'200':
$ref: ../../responses/demandeformation/demandeFormationCreee.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -7,5 +7,11 @@ get:
'200':
$ref: ../../responses/demandeformation/getListeOriginesDemandesFormation.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
$ref: ../../responses/erreur/forbidden.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -19,6 +19,9 @@ put:
'404':
$ref: ../../responses/erreur/notFound.yaml
'415':
$ref: ../../responses/erreur/unsupportedMediaType.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -1 +1,5 @@
description: Demande formation créée
description: Demande formation créée
content:
application/json:
schema:
$ref: ../../schemas/demandeformation/demandeFormation.yaml

@ -0,0 +1 @@
description: Demande de formation supprimée avec succès

@ -1 +1,5 @@
description: demande formation mise à jour
description: demande formation mise à jour
content:
application/json:
schema:
$ref: ../../schemas/demandeformation/demandeFormation.yaml
Loading…
Cancel
Save