|
|
|
get:
|
|
|
|
tags:
|
|
|
|
- formations
|
|
|
|
operationId: getFormations
|
|
|
|
description: Récupérer la liste des formations.
|
|
|
|
parameters:
|
|
|
|
- $ref: ../../parameters/query/idAgence.yaml
|
|
|
|
- $ref: ../../parameters/query/idStatuts.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
|
|
|
|
- $ref: ../../parameters/query/dateDebut.yaml
|
|
|
|
- $ref: ../../parameters/query/dateFin.yaml
|
|
|
|
responses:
|
|
|
|
'200':
|
|
|
|
$ref: ../../responses/formation/getListeFormations.yaml
|
|
|
|
|
|
|
|
'401':
|
|
|
|
$ref: ../../responses/erreur/unauthorized.yaml
|
|
|
|
|
|
|
|
'403':
|
|
|
|
$ref: ../../responses/erreur/forbidden.yaml
|
|
|
|
|
|
|
|
'500':
|
|
|
|
$ref: ../../responses/erreur/internalServerError.yaml
|
|
|
|
|
|
|
|
post:
|
|
|
|
tags:
|
|
|
|
- formations
|
|
|
|
operationId: addFormation
|
|
|
|
description: Créer une nouvelle formation.
|
|
|
|
requestBody:
|
|
|
|
$ref: ../../requestbodies/formation.yaml
|
|
|
|
responses:
|
|
|
|
'201':
|
|
|
|
$ref: ../../responses/formation/AddFormation.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
|