parent
43f64cfcb3
commit
2f7c363ed9
@ -0,0 +1,73 @@ |
|||||||
|
get: |
||||||
|
tags: |
||||||
|
- formations |
||||||
|
operationId: getFormationById |
||||||
|
description: Récupérer une formation par son id. |
||||||
|
parameters: |
||||||
|
- $ref: ../../parameters/path/idFormation.yaml |
||||||
|
responses: |
||||||
|
'200': |
||||||
|
$ref: ../../responses/formation/getFormation.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 |
||||||
|
|
||||||
|
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 |
||||||
|
|
||||||
|
'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: |
||||||
|
- formations |
||||||
|
operationId: deleteFormation |
||||||
|
description: Supprimer une formation par son id. |
||||||
|
parameters: |
||||||
|
- $ref: ../../parameters/path/idFormation.yaml |
||||||
|
responses: |
||||||
|
'204': |
||||||
|
$ref: ../../responses/formation/deleteFormation.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 |
Loading…
Reference in new issue