master
Yanaël GRETTE 4 years ago
parent 6af897613b
commit 33d8189d2f
  1. 26
      openapi.yaml
  2. 18
      paths/demandeformation/demandeFormationRepondre.yaml
  3. 17
      paths/demandeformation/demandesformation.yaml
  4. 15
      paths/engagement/engagementReponse.yaml
  5. 18
      paths/engagement/engagements.yaml
  6. 3
      paths/ep/epbyid.yaml
  7. 2
      paths/ep/updateEP.yaml
  8. 4
      paths/ep/updateSaisieEP.yaml
  9. 17
      paths/formation/formationbyid.yaml
  10. 17
      paths/formation/formations.yaml
  11. 13
      paths/formation/supprimerFormation.yaml
  12. 18
      paths/formation/updateFormation.yaml
  13. 29
      paths/note/note.yaml
  14. 17
      paths/note/noteById.yaml
  15. 10
      paths/note/notes.yaml
  16. 12
      paths/note/nouvelleNote.yaml
  17. 16
      paths/note/supprimerNote.yaml
  18. 18
      paths/note/updateNote.yaml
  19. 3
      schemas/collaborateur/profil.yaml
  20. 2
      schemas/formation/formation.yaml

@ -1,6 +1,6 @@
openapi: 3.0.0 openapi: 3.0.0
info: info:
version: 1.3.1 version: 1.3.2
title: API du serveur de l'application de digitalisation des EP title: API du serveur de l'application de digitalisation des EP
description: description:
API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
@ -17,22 +17,28 @@ paths:
$ref: ./paths/collaborateur/collaborateurs.yaml $ref: ./paths/collaborateur/collaborateurs.yaml
/collaborateurs/{idCollaborateur}: /collaborateurs/{idCollaborateur}:
$ref: ./paths/collaborateur/collaborateurById.yaml $ref: ./paths/collaborateur/collaborateurById.yaml
/collaborateurs/{mail}: /collaborateurs/mail/{mail}:
$ref: ./paths/collaborateur/collaborateurByMail.yaml $ref: ./paths/collaborateur/collaborateurByMail.yaml
/collaborateurs/{mail}/profil: /collaborateurs/profil/{mail}:
$ref: ./paths/collaborateur/collaborateurProfilByMail.yaml $ref: ./paths/collaborateur/collaborateurProfilByMail.yaml
/collaborateurs/referent/{idReferent}: /collaborateurs/referent/{idReferent}:
$ref: ./paths/collaborateur/collaborateursReferent.yaml $ref: ./paths/collaborateur/collaborateursReferent.yaml
#Note #Note
/notes/: /notes/:
$ref: ./paths/note/note.yaml $ref: ./paths/note/notes.yaml
/notes/nouvellenote:
$ref: ./paths/note/nouvelleNote.yaml
/notes/{idNote}: /notes/{idNote}:
$ref: ./paths/note/noteById.yaml $ref: ./paths/note/noteById.yaml
/notes/{idNote}/updateNote:
$ref: ./paths/note/updateNote.yaml
/notes/auteur/{idReferent}: /notes/auteur/{idReferent}:
$ref: ./paths/note/notesAuteur.yaml $ref: ./paths/note/notesAuteur.yaml
/notes/auteur/{idReferent}/collaborateur/{idCollaborateur}: /notes/auteur/{idReferent}/collaborateur/{idCollaborateur}:
$ref: ./paths/note/notesParCollaborateur.yaml $ref: ./paths/note/notesParCollaborateur.yaml
/notes/{idNote}/supprimer:
$ref: ./paths/note/supprimerNote.yaml
#Referent #Referent
/referents: /referents:
@ -59,8 +65,10 @@ paths:
$ref: ./paths/ep/prochainsEPReferent.yaml $ref: ./paths/ep/prochainsEPReferent.yaml
/ep/{idEP}/rappelSignature: /ep/{idEP}/rappelSignature:
$ref: ./paths/ep/rappelSignature.yaml $ref: ./paths/ep/rappelSignature.yaml
/ep/update: /ep/{idEP}/updateep:
$ref: ./paths/ep/updateEP.yaml $ref: ./paths/ep/updateEP.yaml
/ep/{idEP}/updatesaisie:
$ref: ./paths/ep/updateSaisieEP.yaml
/ep/enCours: /ep/enCours:
$ref: ./paths/ep/epEnCours.yaml $ref: ./paths/ep/epEnCours.yaml
/ep/signes: /ep/signes:
@ -99,10 +107,14 @@ paths:
$ref: ./paths/engagement/engagementsEnAttente.yaml $ref: ./paths/engagement/engagementsEnAttente.yaml
/engagements/repondus: /engagements/repondus:
$ref: ./paths/engagement/engagementsRepondus.yaml $ref: ./paths/engagement/engagementsRepondus.yaml
/engagements/{idEngagement}/repondre:
$ref: ./paths/engagement/engagementReponse.yaml
#DemandeFormation #DemandeFormation
/demandeformation: /demandeformation:
$ref: ./paths/demandeformation/demandesFormation.yaml $ref: ./paths/demandeformation/demandesFormation.yaml
/demandeformation/{idDemandeFormation}/repondre:
$ref: ./paths/demandeformation/demandeFormationRepondre.yaml
/demandeformation/enattente: /demandeformation/enattente:
$ref: ./paths/demandeformation/demandesFormationAttente.yaml $ref: ./paths/demandeformation/demandesFormationAttente.yaml
/demandeformation/repondus: /demandeformation/repondus:
@ -121,6 +133,10 @@ paths:
$ref: ./paths/formation/formations.yaml $ref: ./paths/formation/formations.yaml
/formations/{idFormation}: /formations/{idFormation}:
$ref: ./paths/formation/formationById.yaml $ref: ./paths/formation/formationById.yaml
/formations/{idFormation}/update:
$ref: ./paths/formation/updateFormation.yaml
/formations/{idFormation}/supprimer:
$ref: ./paths/formation/supprimerFormation.yaml
/formations/prochaines: /formations/prochaines:
$ref: ./paths/formation/prochainesFormations.yaml $ref: ./paths/formation/prochainesFormations.yaml
/formations/realisees: /formations/realisees:

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

@ -29,22 +29,5 @@ post:
'201': '201':
$ref: ../../responses/demandeformation/demandeFormationCreee.yaml $ref: ../../responses/demandeformation/demandeFormationCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
put:
tags:
- demandesFormation
operationId: UpdateDemandeFormation
description: Répondre a une demande de formation et la mettre à jour
requestBody:
$ref: ../../requestbodies/demandeFormation.yaml
responses:
'200':
$ref: ../../responses/demandeformation/reponseDemandeFormation.yaml
'201':
$ref: ../../responses/demandeformation/demandeFormationCreee.yaml
'403': '403':
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml

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

@ -16,20 +16,4 @@ get:
$ref: ../../responses/engagement/getListeEngagements.yaml $ref: ../../responses/engagement/getListeEngagements.yaml
'403': '403':
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml
put:
tags:
- engagements
operationId: repondreEngagement
description: Donnez une réponse à un engagement
requestBody:
$ref: ../../requestbodies/engagement.yaml
responses:
'200':
$ref: ../../responses/engagement/reponseEngagement.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -13,4 +13,5 @@ get:
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml
'404': '404':
$ref: ../../responses/erreur/notFound.yaml $ref: ../../responses/erreur/notFound.yaml

@ -3,6 +3,8 @@ put:
- ep - ep
operationId: updateEP operationId: updateEP
description: Mettre à jour l'EP déjà saisie description: Mettre à jour l'EP déjà saisie
parameters:
- $ref: ../../parameters/path/idEP.yaml
requestBody: requestBody:
$ref: ../../requestbodies/ep.yaml $ref: ../../requestbodies/ep.yaml
responses: responses:

@ -1,8 +1,10 @@
put: put:
tags: tags:
- ep - ep
operationId: updateEP operationId: updateSaisieEP
description: Poursuivre le processus de l'EP ou bien seulement sauvegarder les modifications description: Poursuivre le processus de l'EP ou bien seulement sauvegarder les modifications
parameters:
- $ref: ../../parameters/path/idEP.yaml
requestBody: requestBody:
$ref: ../../requestbodies/saisieEP.yaml $ref: ../../requestbodies/saisieEP.yaml
responses: responses:

@ -13,19 +13,4 @@ get:
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml
'404': '404':
$ref: ../../responses/erreur/notFound.yaml $ref: ../../responses/erreur/notFound.yaml
delete:
tags:
- formations
operationId: deleteFormation
description: Supprimer une formation
parameters:
- $ref: ../../parameters/path/idFormation.yaml
responses:
'204':
$ref: ../../responses/formation/formationSupprimee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -29,22 +29,5 @@ post:
'201': '201':
$ref: ../../responses/formation/formationCreee.yaml $ref: ../../responses/formation/formationCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
put:
tags:
- formations
operationId: updateFormation
description: Mettre à jour une formation
requestBody:
$ref: ../../requestbodies/formation.yaml
responses:
'200':
$ref: ../../responses/formation/updateFormation.yaml
'201':
$ref: ../../responses/formation/formationCreee.yaml
'403': '403':
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml

@ -0,0 +1,13 @@
delete:
tags:
- formations
operationId: deleteFormation
description: Supprimer une formation
parameters:
- $ref: ../../parameters/path/idFormation.yaml
responses:
'204':
$ref: ../../responses/formation/formationSupprimee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -0,0 +1,18 @@
put:
tags:
- formations
operationId: updateFormation
description: Mettre à jour une formation
parameters:
- $ref: ../../parameters/path/idFormation.yaml
requestBody:
$ref: ../../requestbodies/formation.yaml
responses:
'200':
$ref: ../../responses/formation/updateFormation.yaml
'201':
$ref: ../../responses/formation/formationCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -1,29 +0,0 @@
post:
tags:
- notes
operationId: nouvelleNote
description: Ajouter une nouvelle note
requestBody:
$ref: ../../requestbodies/note.yaml
responses:
'201':
$ref: ../../responses/note/noteCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
put:
tags:
- notes
operationId: updateNote
description: Mettre à jour une note
requestBody:
$ref: ../../requestbodies/note.yaml
responses:
'200':
$ref: ../../responses/note/updateNote.yaml
'201':
$ref: ../../responses/note/noteCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -12,22 +12,5 @@ get:
'403': '403':
$ref: ../../responses/erreur/forbidden.yaml $ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml
delete:
tags:
- notes
operationId: deleteNote
description: Supprimer une note
parameters:
- $ref: ../../parameters/path/idNote.yaml
responses:
'204':
$ref: ../../responses/note/noteSupprimee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404': '404':
$ref: ../../responses/erreur/notFound.yaml $ref: ../../responses/erreur/notFound.yaml

@ -0,0 +1,10 @@
get:
tags:
- notes
operationId: getNotes
description: Récupérer toutes les notes
responses:
'200':
$ref: ../../responses/note/getListeNotes.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -0,0 +1,12 @@
post:
tags:
- notes
operationId: nouvelleNote
description: Ajouter une nouvelle note
requestBody:
$ref: ../../requestbodies/note.yaml
responses:
'201':
$ref: ../../responses/note/noteCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -0,0 +1,16 @@
delete:
tags:
- notes
operationId: deleteNote
description: Supprimer une note
parameters:
- $ref: ../../parameters/path/idNote.yaml
responses:
'204':
$ref: ../../responses/note/noteSupprimee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
'404':
$ref: ../../responses/erreur/notFound.yaml

@ -0,0 +1,18 @@
put:
tags:
- notes
operationId: updateNote
description: Mettre à jour une note
parameters:
- $ref: ../../parameters/path/idNote.yaml
requestBody:
$ref: ../../requestbodies/note.yaml
responses:
'200':
$ref: ../../responses/note/updateNote.yaml
'201':
$ref: ../../responses/note/noteCreee.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml

@ -1,6 +1,9 @@
type: object type: object
description: Information utile à avoir lorsqu'un utilisateur se connecte description: Information utile à avoir lorsqu'un utilisateur se connecte
properties: properties:
id:
type: string
format: uuid
nom: nom:
type: string type: string
prenom: prenom:

@ -9,6 +9,8 @@ properties:
$ref: ./origineFormation.yaml $ref: ./origineFormation.yaml
statut: statut:
$ref: ./statutFormation.yaml $ref: ./statutFormation.yaml
idAgence:
type: integer
dateDebut: dateDebut:
type: string type: string
format: date-time format: date-time

Loading…
Cancel
Save