parent
cef648874f
commit
2a94e0056a
@ -0,0 +1,9 @@ |
||||
in: query |
||||
name: idStatuts |
||||
schema: |
||||
type: array |
||||
items: |
||||
type: integer |
||||
default: null |
||||
required: false |
||||
description: liste des ids des statuts des formations à récupérer |
@ -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 |
||||
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 |
@ -1,16 +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 |
||||
|
||||
'403': |
||||
$ref: ../../responses/erreur/forbidden.yaml |
||||
|
||||
'404': |
||||
$ref: ../../responses/erreur/notFound.yaml |
@ -1,21 +0,0 @@ |
||||
get: |
||||
tags: |
||||
- formations |
||||
operationId: getFormationAnnulees |
||||
description: Récupérer les formations annulées |
||||
parameters: |
||||
- $ref: ../../parameters/query/asc.yaml |
||||
- $ref: ../../parameters/query/idAgence.yaml |
||||
- $ref: ../../parameters/query/numPage.yaml |
||||
- $ref: ../../parameters/query/parPage.yaml |
||||
- $ref: ../../parameters/query/texte.yaml |
||||
- $ref: ../../parameters/query/tri.yaml |
||||
responses: |
||||
'200': |
||||
$ref: ../../responses/formation/getListeFormations.yaml |
||||
|
||||
'403': |
||||
$ref: ../../responses/erreur/forbidden.yaml |
||||
|
||||
'404': |
||||
$ref: ../../responses/erreur/notFound.yaml |
@ -0,0 +1,27 @@ |
||||
get: |
||||
tags: |
||||
- formations |
||||
operationId: getFormationsCount |
||||
description: Récupérer le nombre total de 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/getcountformation.yaml |
||||
|
||||
'401': |
||||
$ref: ../../responses/erreur/unauthorized.yaml |
||||
|
||||
'403': |
||||
$ref: ../../responses/erreur/forbidden.yaml |
||||
|
||||
'500': |
||||
$ref: ../../responses/erreur/internalServerError.yaml |
@ -1,21 +0,0 @@ |
||||
get: |
||||
tags: |
||||
- formations |
||||
operationId: getFormationRealisee |
||||
description: Récupérer les formations réalisées |
||||
parameters: |
||||
- $ref: ../../parameters/query/asc.yaml |
||||
- $ref: ../../parameters/query/idAgence.yaml |
||||
- $ref: ../../parameters/query/numPage.yaml |
||||
- $ref: ../../parameters/query/parPage.yaml |
||||
- $ref: ../../parameters/query/texte.yaml |
||||
- $ref: ../../parameters/query/tri.yaml |
||||
responses: |
||||
'200': |
||||
$ref: ../../responses/formation/getListeFormations.yaml |
||||
|
||||
'403': |
||||
$ref: ../../responses/erreur/forbidden.yaml |
||||
|
||||
'404': |
||||
$ref: ../../responses/erreur/notFound.yaml |
@ -1,21 +0,0 @@ |
||||
get: |
||||
tags: |
||||
- formations |
||||
operationId: getProchainesFormation |
||||
description: Récupérer les formations plannifié et replannifié |
||||
parameters: |
||||
- $ref: ../../parameters/query/asc.yaml |
||||
- $ref: ../../parameters/query/idAgence.yaml |
||||
- $ref: ../../parameters/query/numPage.yaml |
||||
- $ref: ../../parameters/query/parPage.yaml |
||||
- $ref: ../../parameters/query/texte.yaml |
||||
- $ref: ../../parameters/query/tri.yaml |
||||
responses: |
||||
'200': |
||||
$ref: ../../responses/formation/getListeFormations.yaml |
||||
|
||||
'403': |
||||
$ref: ../../responses/erreur/forbidden.yaml |
||||
|
||||
'404': |
||||
$ref: ../../responses/erreur/notFound.yaml |
@ -1,13 +0,0 @@ |
||||
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 |
@ -1,18 +0,0 @@ |
||||
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 |
@ -0,0 +1,7 @@ |
||||
description: OK |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: integer |
||||
format: int64 |
||||
description: Nombre total de formations |
Loading…
Reference in new issue