MAJ des urls pour la partie engagement en fonction des spécifications techniques

master
jboinembalome 4 years ago
parent 0d656921d9
commit 1052997875
  1. 18
      openapi.yaml
  2. 3
      parameters/query/etatsEngagement.yaml
  3. 15
      paths/engagement/engagementReponse.yaml
  4. 12
      paths/engagement/engagements.yaml
  5. 26
      paths/engagement/engagementsCount.yaml
  6. 19
      paths/engagement/engagementsEnAttente.yaml
  7. 27
      paths/engagement/engagementsIdEngagement.yaml
  8. 19
      paths/engagement/engagementsRepondus.yaml
  9. 5
      responses/_index.yaml
  10. 7
      responses/engagement/getCountEngagement.yaml
  11. 5
      responses/engagement/getEngagement.yaml
  12. 1
      responses/engagement/reponseEngagement.yaml
  13. 5
      responses/engagement/updateEngagement.yaml

@ -87,6 +87,14 @@ paths:
/ep/participation/{idCollaborateur}/count:
$ref: ./paths/ep/epParticipationIdCollaborateurCount.yaml
#Engagement
/engagements:
$ref: ./paths/engagement/engagements.yaml
/engagements/count:
$ref: ./paths/engagement/engagementsCount.yaml
/engagements/{idEngagement}:
$ref: ./paths/engagement/engagementsIdEngagement.yaml
#DemandeEPI
/demandesepi/collaborateur/{idCollaborateur}:
$ref: ./paths/demandeepi/demandesEPICollaborateur.yaml
@ -113,16 +121,6 @@ paths:
/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
/engagements/{idEngagement}/repondre:
$ref: ./paths/engagement/engagementReponse.yaml
#DemandeFormation
/demandeformation:
$ref: ./paths/demandeformation/demandesFormation.yaml

@ -4,5 +4,6 @@ schema:
type: array
items:
$ref: ../../schemas/enum/etatEngagement.yaml
default: null
required: false
description: Etat de l'engagement
description: Etats de l'engagement

@ -1,15 +0,0 @@
put:
tags:
- engagements
operationId: repondreEngagement
description: Donnez une réponse à un engagement
parameters:
- $ref: ../../parameters/path/idEngagement.yaml
requestBody:
$ref: ../../requestbodies/engagement.yaml
responses:
'200':
$ref: ../../responses/engagement/reponseEngagement.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -2,11 +2,11 @@ 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/etatsEngagement.yaml
- $ref: ../../parameters/query/asc.yaml
- $ref: ../../parameters/query/idBUs.yaml
- $ref: ../../parameters/query/asc.yaml
- $ref: ../../parameters/query/numPage.yaml
- $ref: ../../parameters/query/parPage.yaml
- $ref: ../../parameters/query/texte.yaml
@ -16,5 +16,11 @@ get:
'200':
$ref: ../../responses/engagement/getListeEngagements.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
$ref: ../../responses/erreur/forbidden.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -0,0 +1,26 @@
get:
tags:
- engagements
operationId: getEngagementsCount
description: Récupérer le nombre total d’engagements.
parameters:
- $ref: ../../parameters/query/etatsEngagement.yaml
- $ref: ../../parameters/query/idBUs.yaml
- $ref: ../../parameters/query/asc.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/getCountEngagement.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

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

@ -0,0 +1,27 @@
put:
tags:
- engagements
operationId: updateEngagement
description: Répondre à un engagement.
parameters:
- $ref: ../../parameters/path/idEngagement.yaml
requestBody:
$ref: ../../requestbodies/engagement.yaml
responses:
'200':
$ref: ../../responses/engagement/updateEngagement.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
'415':
$ref: ../../responses/erreur/unsupportedMediaType.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

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

@ -81,14 +81,11 @@ ReponseEPIReponse:
#Engagement
GetEngagementReponse:
$ref: ./engagement/getEngagement.yaml
GetListeEngagementsReponse:
$ref: ./engagement/getListeEngagements.yaml
ReponseEngagementReponse:
$ref: ./engagement/reponseEngagement.yaml
$ref: ./engagement/updateEngagement.yaml
#DemandeDelegation

@ -0,0 +1,7 @@
description: OK
content:
application/json:
schema:
type: integer
format: int64
description: Nombre total d'engagements

@ -1,5 +0,0 @@
description: OK
content:
application/json:
schema:
$ref: ../../schemas/ep/engagement.yaml

@ -1 +0,0 @@
description: Engagement mise à jour

@ -0,0 +1,5 @@
description: Engagement modifié avec succès
content:
application/json:
schema:
$ref: ../../schemas/ep/engagement.yaml
Loading…
Cancel
Save