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

master
jboinembalome 4 years ago
parent 1052997875
commit 4fb0089a18
  1. 28
      openapi.yaml
  2. 1
      parameters/query/etatsDemande.yaml
  3. 16
      paths/demandeepi/annulerDemandeEPI.yaml
  4. 16
      paths/demandeepi/creationEPI.yaml
  5. 16
      paths/demandeepi/demandeAssistante.yaml
  6. 16
      paths/demandeepi/demandeEPI.yaml
  7. 16
      paths/demandeepi/demandeEPIEnCours.yaml
  8. 22
      paths/demandeepi/demandesEpiDemandeAssistant.yaml
  9. 22
      paths/demandeepi/demandesEpiDemandeCollaborateur.yaml
  10. 10
      paths/demandeepi/demandesEpiDemandeIdCollaborateur.yaml
  11. 23
      paths/demandeepi/demandesEpiDemandeIdCollaborateurCount.yaml
  12. 10
      paths/demandeepi/demandesEpiDemandeIdReferent.yaml
  13. 23
      paths/demandeepi/demandesEpiDemandeIdReferentCount.yaml
  14. 22
      paths/demandeepi/demandesEpiDemandeReferent.yaml
  15. 50
      paths/demandeepi/demandesEpiIdDemandeEpi.yaml
  16. 18
      paths/demandeepi/reponseEPI.yaml
  17. 48
      responses/_index.yaml
  18. 2
      responses/demandeepi/demandeEPIAnnulee.yaml
  19. 6
      responses/demandeepi/demandeEPICreee.yaml
  20. 1
      responses/demandeepi/epiCree.yaml
  21. 7
      responses/demandeepi/getCountDemandeEPI.yaml
  22. 5
      responses/demandeepi/getDemandeEPI.yaml
  23. 1
      responses/demandeepi/reponseDemandeEPI.yaml
  24. 5
      responses/demandeepi/updateDemandeEPI.yaml

@ -96,22 +96,22 @@ paths:
$ref: ./paths/engagement/engagementsIdEngagement.yaml
#DemandeEPI
/demandesepi/{idDemandeEPI}:
$ref: ./paths/demandeepi/demandesEpiIdDemandeEpi.yaml
/demandesepi/collaborateur/{idCollaborateur}:
$ref: ./paths/demandeepi/demandesEPICollaborateur.yaml
/demandesepi/collaborateur/{idCollaborateur}/enCours:
$ref: ./paths/demandeepi/demandeEPIEnCours.yaml
/demandesepi/collaborateur/{idCollaborateur}/demande:
$ref: ./paths/demandeepi/demandeEPI.yaml
$ref: ./paths/demandeepi/demandesEpiDemandeIdCollaborateur.yaml
/demandesepi/collaborateur/{idCollaborateur}/count:
$ref: ./paths/demandeepi/demandesEpiDemandeIdCollaborateurCount.yaml
/demandesepi/demande/assistant:
$ref: ./paths/demandeepi/demandesEpiDemandeAssistant.yaml
/demandesepi/demande/collaborateur:
$ref: ./paths/demandeepi/demandesEpiDemandeCollaborateur.yaml
/demandesepi/demande/referent:
$ref: ./paths/demandeepi/demandesEpiDemandeReferent.yaml
/demandesepi/referent/{idReferent}:
$ref: ./paths/demandeepi/demandesEPIReferent.yaml
/demandesepi/referent/{idReferent}/demande/{idCollaborateur}:
$ref: ./paths/demandeepi/creationEPI.yaml
/demandesepi/{idDemandeEPI}/repondre:
$ref: ./paths/demandeepi/reponseEPI.yaml
/demandesepi/{idDemandeEPI}/annuler:
$ref: ./paths/demandeepi/annulerDemandeEPI.yaml
/demandesepi/demandeassistante/{idCollaborateur}:
$ref: ./paths/demandeepi/demandeAssistante.yaml
$ref: ./paths/demandeepi/demandesEpiDemandeIdReferent.yaml
/demandesepi/referent/{idReferent}/count:
$ref: ./paths/demandeepi/demandesEpiDemandeIdReferentCount.yaml
#DemandeDelegation
/demandesdelegation/{idCollaborateur}:

@ -4,5 +4,6 @@ schema:
type: array
items:
$ref: ../../schemas/enum/etatDemande.yaml
default: null
required: false
description: Liste des états des demandes à afficher

@ -1,16 +0,0 @@
get:
tags:
- demandesEPI
operationId: annulerDemandeEPI
description: Annuler la demande d'EPI
parameters:
- $ref: ../../parameters/path/idDemandeEPI.yaml
responses:
'200':
$ref: ../../responses/demandeepi/demandeEPIAnnulee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,16 +0,0 @@
get:
tags:
- demandesEPI
operationId: createEPI
description: Lancer la procedure pour un entretien professionnel intermediaire, une demande d'EPI validée est créé par la même occasion
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
- $ref: ../../parameters/path/idReferent.yaml
responses:
'200':
$ref: ../../responses/demandeepi/epiCree.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,16 +0,0 @@
get:
tags:
- demandesEPI
operationId: demandeEPIAssistante
description: Demande d'EPI et par l'assistant et création automatique de l'EPI
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
responses:
'200':
$ref: ../../responses/demandeepi/epiCree.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,16 +0,0 @@
get:
tags:
- demandesEPI
operationId: demandeEPI
description: Demande d'EPI par un collaborateur
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
responses:
'200':
$ref: ../../responses/demandeepi/demandeEPICreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,16 +0,0 @@
get:
tags:
- demandesEPI
operationId: getDemandeEPIEnCours
description: Récupération de l'EPI en cours d'un collaborateur
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
responses:
'200':
$ref: ../../responses/demandeepi/getDemandeEPI.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -0,0 +1,22 @@
post:
tags:
- demandesEPI
operationId: addDemandeEpiAssistant
description: Effectuer la création d’une demande d’EPI par l'assistant.
requestBody:
$ref: ../../requestbodies/DemandeEpi.yaml
responses:
'201':
$ref: ../../responses/demandeepi/demandeEPICreee.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'415':
$ref: ../../responses/erreur/unsupportedMediaType.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -0,0 +1,22 @@
post:
tags:
- demandesEPI
operationId: addDemandeEpiCollaborateur
description: Effectuer la création d’une demande d’EPI par le collaborateur.
requestBody:
$ref: ../../requestbodies/DemandeEpi.yaml
responses:
'201':
$ref: ../../responses/demandeepi/demandeEPICreee.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'415':
$ref: ../../responses/erreur/unsupportedMediaType.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -2,7 +2,7 @@ get:
tags:
- demandesEPI
operationId: getDemandeEPICollaborateur
description: Récupération de la liste des demandes EPI d'un collaborateur
description: Récupérer la liste des demandes d’EPI d’un collaborateur.
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
- $ref: ../../parameters/query/etatsDemande.yaml
@ -10,8 +10,14 @@ get:
'200':
$ref: ../../responses/demandeepi/getListeDemandesEPI.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
$ref: ../../responses/erreur/notFound.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -0,0 +1,23 @@
get:
tags:
- demandesEPI
operationId: getDemandeEPICollaborateurCount
description: Récupérer le nombre total de demandes d’EPI d’un collaborateur.
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
- $ref: ../../parameters/query/etatsDemande.yaml
responses:
'200':
$ref: ../../responses/demandeepi/getCountDemandeEPI.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

@ -2,7 +2,7 @@ get:
tags:
- demandesEPI
operationId: getDemandeEPIReferent
description: Récupération de la liste des demandes EPI d'un referent
description: Récupérer la liste des demandes d’EPI qu’un référent a reçu.
parameters:
- $ref: ../../parameters/path/idReferent.yaml
- $ref: ../../parameters/query/etatsDemande.yaml
@ -10,8 +10,14 @@ get:
'200':
$ref: ../../responses/demandeepi/getListeDemandesEPI.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
$ref: ../../responses/erreur/notFound.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -0,0 +1,23 @@
get:
tags:
- demandesEPI
operationId: getDemandeEPIReferentCount
description: Récupérer le nombre total de demandes d’EPI qu’un référent a reçu.
parameters:
- $ref: ../../parameters/path/idReferent.yaml
- $ref: ../../parameters/query/etatsDemande.yaml
responses:
'200':
$ref: ../../responses/demandeepi/getCountDemandeEPI.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

@ -0,0 +1,22 @@
post:
tags:
- demandesEPI
operationId: addDemandeEpiReferent
description: Effectuer la création d’une demande d’EPI par le référent.
requestBody:
$ref: ../../requestbodies/DemandeEpi.yaml
responses:
'201':
$ref: ../../responses/demandeepi/demandeEPICreee.yaml
'401':
$ref: ../../responses/erreur/unauthorized.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'415':
$ref: ../../responses/erreur/unsupportedMediaType.yaml
'500':
$ref: ../../responses/erreur/internalServerError.yaml

@ -0,0 +1,50 @@
put:
tags:
- demandesEPI
operationId: updateDemandeEPI
description: Répondre à une demande d’EPI.
parameters:
- $ref: ../../parameters/path/idDemandeEPI.yaml
requestBody:
$ref: ../../requestbodies/demandeEPI.yaml
responses:
'200':
$ref: ../../responses/demandeepi/updateDemandeEPI.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
delete:
tags:
- demandesEPI
operationId: deleteDemandeEPI
description: Annuler une demande d’EPI.
parameters:
- $ref: ../../parameters/path/idDemandeEPI.yaml
responses:
'204':
$ref: ../../responses/demandeepi/demandeEPIAnnulee.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:
- demandesEPI
operationId: repondreDemandeEPI
description: Répondre à une demande EPI en attente
parameters:
- $ref: ../../parameters/path/idDemandeEPI.yaml
requestBody:
$ref: ../../requestbodies/demandeEPI.yaml
responses:
'200':
$ref: ../../responses/demandeepi/reponseDemandeEPI.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -19,6 +19,9 @@ GetCollaborateurResponse:
GetListecollaborateursResponse:
$ref: ./collaborateur/getListeCollaborateurs.yaml
GetCountCollaborateurResponse:
$ref: ./collaborateur/getCountCollaborateur.yaml
#Note
GetListeNoteResponse:
@ -36,12 +39,21 @@ NoteSupprimerResponse:
updateNoteResponse:
$ref: ./note/updateNote.yaml
GetCountNoteResponse:
$ref: ./note/getCountNote.yaml
#EP
DeleteEPResponse:
$ref: ./ep/deleteEp.yaml
DeleteEPCollaborateurResponse:
$ref: ./ep/deleteEpCollaborateur.yaml
GetEPResponse:
$ref: ./ep/getEP.yaml
GetListeEPResponse:
GetListeEPInformationResponse:
$ref: ./ep/getListeEpInformation.yaml
GetListeParticipantsResponse:
@ -59,6 +71,23 @@ SaisirProchainEPResponse:
UpdateEPResponse:
$ref: ./ep/updateEP.yaml
UpdateSaisieEPResponse:
$ref: ./ep/updateSaisieEP.yaml
GetCountEPResponse:
$ref: ./ep/getCountEP.yaml
#Engagement
GetListeEngagementsReponse:
$ref: ./engagement/getListeEngagements.yaml
GetCountEngagementResponse:
$ref: ./engagement/getCountEngagement.yaml
ReponseEngagementReponse:
$ref: ./engagement/updateEngagement.yaml
#DemandeEPI
DemandeEPIAnnuleeReponse:
@ -67,25 +96,14 @@ DemandeEPIAnnuleeReponse:
DemandeEPICreeeResponse:
$ref: ./demandeepi/demandeEPICreee.yaml
EPICreeReponse:
$ref: ./demandeepi/epiCree.yaml
GetDemandeEPIResponse:
$ref: ./demandeepi/getDemandeEPI.yaml
GetListeDemandesEPIResponse:
$ref: ./demandeepi/getListeDemandesEPI.yaml
ReponseEPIReponse:
$ref: ./demandeepi/reponseDemandeEPI.yaml
$ref: ./demandeepi/updateDemandeEPI.yaml
#Engagement
GetListeEngagementsReponse:
$ref: ./engagement/getListeEngagements.yaml
ReponseEngagementReponse:
$ref: ./engagement/updateEngagement.yaml
GetCountDemandeEPIResponse:
$ref: ./demandeepi/getCountDemandeEPI.yaml
#DemandeDelegation

@ -1 +1 @@
description: demande d'EPI annulée
description: Demande annulée

@ -1 +1,5 @@
description: demande d'EPI effectuée
description: Demande d'EPI créée avec succès
content:
application/json:
schema:
$ref: ../../schemas/demandeepi/demandeEPI.yaml

@ -1 +0,0 @@
description: Demande d'EPI créée avec l'EPI correspondant

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

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

@ -1 +0,0 @@
description: Réponse à la demande d'EPI envoyée

@ -0,0 +1,5 @@
description: Demande mise à jour
content:
application/json:
schema:
$ref: ../../schemas/demandeepi/demandeEPI.yaml
Loading…
Cancel
Save