You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
openAPIServeurEPA/paths/formation/formations.yaml

50 lines
1.3 KiB

get:
tags:
- formations
operationId: getFormations
description: Récupérer la liste des formations
parameters:
- $ref: ../../parameters/query/asc.yaml
- $ref: ../../parameters/query/idAgence.yaml
- $ref: ../../parameters/query/numPage.yaml
- $ref: ../../parameters/query/parPage.yaml
- $ref: ../../parameters/query/statutformation.yaml
- $ref: ../../parameters/query/texte.yaml
- $ref: ../../parameters/query/tri.yaml
responses:
'200':
$ref: ../../responses/formation/getListeFormations.yaml
'403':
$ref: ../../responses/erreur/forbidden.yaml
post:
tags:
- formations
operationId: ajouterFormation
description: Ajouter une nouvelle formation
requestBody:
$ref: ../../requestbodies/formation.yaml
responses:
'201':
$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':
$ref: ../../responses/erreur/forbidden.yaml