Ajout des urls et du DTO pour la partie referentEP à l'aide des spécifications techniques

master
Yanaël GRETTE 4 years ago
parent 2a94e0056a
commit 375812f17f
  1. 12
      openapi.yaml
  2. 24
      paths/referentep/collaborateursIdReferent.yaml
  3. 24
      paths/referentep/referentIdCollaborateur.yaml
  4. 16
      paths/referents/referentActuelByCollaborateur.yaml
  5. 16
      paths/referents/referentbyid.yaml
  6. 20
      paths/referents/referents.yaml
  7. 21
      paths/referents/referentsByCollaborateur.yaml
  8. 3
      requestbodies/_index.yaml
  9. 5
      requestbodies/referentEP.yaml
  10. 7
      responses/_index.yaml
  11. 7
      responses/referent/getListeReferrents.yaml
  12. 5
      responses/referent/getReferent.yaml
  13. 5
      responses/referentep/updateReferentEP.yaml
  14. 3
      schemas/_index.yaml
  15. 14
      schemas/collaborateur/referentEP.yaml

@ -40,14 +40,10 @@ paths:
#ReferentEP #ReferentEP
#/referents: /referentsep/collaborateur/{idCollaborateur}:
#$ref: ./paths/referents/referents.yaml $ref: ./paths/referentep/referentIdCollaborateur.yaml
#/referents/{idReferent}: /referentsep/referent/{idReferent}:
#$ref: ./paths/referents/referentById.yaml $ref: ./paths/referentep/collaborateursIdReferent.yaml
#/referents/collaborateur/{idCollaborateur}:
#$ref: ./paths/referents/referentsByCollaborateur.yaml
#/referents/actuel/collaborateur/{idCollaborateur}:
#$ref: ./paths/referents/referentActuelByCollaborateur.yaml
#EP #EP
/ep/{idCollaborateur}: /ep/{idCollaborateur}:

@ -0,0 +1,24 @@
put:
tags:
- referentsep
operationId: updateCollaborateursReferent
description: Mettre à jour le référent de plusieurs collaborateurs
parameters:
- $ref: ../../parameters/path/idReferent.yaml
requestBody:
$ref: ../../requestbodies/referentEP.yaml
responses:
'200':
$ref: ../../responses/referentep/updateReferentEP.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,24 @@
put:
tags:
- referentsep
operationId: updateReferentCollaborateur
description: Mettre à jour le référent d'un collaborateur
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
requestBody:
$ref: ../../requestbodies/referentEP.yaml
responses:
'200':
$ref: ../../responses/referentep/updateReferentEP.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,16 +0,0 @@
get:
tags:
- referents
operationId: getReferentActuelCollaborateur
description: Récupérer le référent d'un collaborateur
parameters:
- $ref: ../../parameters/path/idCollaborateur.yaml
responses:
'200':
$ref: ../../responses/referent/getReferent.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,16 +0,0 @@
get:
tags:
- referents
operationId: getReferentById
description: Récupérer un referent par son id
parameters:
- $ref: ../../parameters/path/idReferent.yaml
responses:
'200':
$ref: ../../responses/referent/getReferent.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -1,20 +0,0 @@
get:
tags:
- referents
operationId: getReferents
description: Récupérer la liste de tous les referents
parameters:
- $ref: ../../parameters/query/asc.yaml
- $ref: ../../parameters/query/roles.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/tri.yaml
responses:
'200':
$ref: ../../responses/referent/getListeReferrents.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -1,21 +0,0 @@
get:
tags:
- referents
operationId: getReferentsByCollaborateur
description: Récupérer la liste des référents d'un collaborateur
parameters:
- $ref: ../../parameters/query/asc.yaml
- $ref: ../../parameters/path/idCollaborateur.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/referent/getListeReferrents.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -23,5 +23,8 @@ FormationBody:
NoteBody: NoteBody:
$ref: ./note.yaml $ref: ./note.yaml
ReferentEPBody:
$ref: ./referentEP.yaml
SaisieEPBody: SaisieEPBody:
$ref: ./saisieEP.yaml $ref: ./saisieEP.yaml

@ -0,0 +1,5 @@
required: true
content:
application/json:
schema:
$ref: ../schemas/collaborateur/referentEP.yaml

@ -172,9 +172,6 @@ ReponseDemandeFormationResponse:
$ref: ./demandeformation/reponseDemandeFormation.yaml $ref: ./demandeformation/reponseDemandeFormation.yaml
#Referent #ReferentEP
GetReferentResponse: GetReferentResponse:
$ref: ./referent/getReferent.yaml $ref: ./referentep/updateReferentEP.yaml
GetListereferentsResponse:
$ref: ./referent/getListeReferrents.yaml

@ -1,7 +0,0 @@
description: OK
content:
application/json:
schema:
type: array
items:
$ref: ../../schemas/collaborateur/collaborateur.yaml

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

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

@ -8,6 +8,9 @@ BusinessUnitDTO:
CollaborateurDTO: CollaborateurDTO:
$ref: ./collaborateur/collaborateur.yaml $ref: ./collaborateur/collaborateur.yaml
ReferentEPDTO:
$ref: ./collaborateur/referentEP.yaml
#Note #Note
AffichageNoteDTO: AffichageNoteDTO:
$ref: ./note/affichageNote.yaml $ref: ./note/affichageNote.yaml

@ -0,0 +1,14 @@
type: object
description: DTO permettant de gérer les référents EP
properties:
idReferent:
type: string
format: uuid
description: Id du référent
idsCollaborateur:
type: array
items:
type: string
format: uuid
required:
- idReferent
Loading…
Cancel
Save