parent
134f00d991
commit
e056cde317
@ -1,73 +0,0 @@ |
|||||||
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 |
|
||||||
parameters: |
|
||||||
- $ref: ../../parameters/path/idFormation.yaml |
|
||||||
responses: |
|
||||||
'204': |
|
||||||
$ref: ../../responses/formation/formationSupprimee.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,5 @@ |
|||||||
|
description: Formation créée avec succès |
||||||
|
content: |
||||||
|
application/json: |
||||||
|
schema: |
||||||
|
$ref: ../../schemas/formation/formation.yaml |
@ -1 +0,0 @@ |
|||||||
description: Formation créée avec succès |
|
Loading…
Reference in new issue