diff --git a/openapi.yaml b/openapi.yaml index 9eaf582..52d173a 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -120,16 +120,14 @@ paths: #DemandeFormation /demandesformation: $ref: ./paths/demandeformation/demandesFormation.yaml + /demandesformation/count: + $ref: ./paths/demandeformation/demandesFormationCount.yaml /demandesformation/{idDemandeFormation}: $ref: ./paths/demandeformation/demandeFormationId.yaml #OrigineDemandeFormation /originesdemandesformation: $ref: ./paths/demandeformation/originesDemandesFormation.yaml - - #Theme - #/themes: - # $ref: ./paths/demandeformation/themes.yaml #Formation /formation: diff --git a/parameters/_index.yaml b/parameters/_index.yaml index 47ba79d..b7a1737 100644 --- a/parameters/_index.yaml +++ b/parameters/_index.yaml @@ -93,8 +93,8 @@ statutFormation: texte: $ref: ./query/texte.yaml -theme: - $ref: ./query/theme.yaml +#theme: + #$ref: ./query/theme.yaml tri: $ref: ./query/tri.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesFormationCount.yaml b/paths/demandeformation/demandesFormationCount.yaml new file mode 100644 index 0000000..c318c88 --- /dev/null +++ b/paths/demandeformation/demandesFormationCount.yaml @@ -0,0 +1,27 @@ +get: + tags: + - demandesFormation + operationId: getDemandesFormationCount + description: Récupérer le nombre de demandes de formation total + parameters: + - $ref: ../../parameters/query/etatsDemande.yaml + - $ref: ../../parameters/query/idBUs.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/demandeformation/getCountDemandesFormation.yaml + + '401': + $ref: ../../responses/erreur/unauthorized.yaml + + '403': + $ref: ../../responses/erreur/forbidden.yaml + + '500': + $ref: ../../responses/erreur/internalServerError.yaml \ No newline at end of file diff --git a/paths/demandeformation/demandesformation.yaml b/paths/demandeformation/demandesformation.yaml index 369ecff..520e680 100644 --- a/paths/demandeformation/demandesformation.yaml +++ b/paths/demandeformation/demandesformation.yaml @@ -11,7 +11,6 @@ get: - $ref: ../../parameters/query/parPage.yaml - $ref: ../../parameters/query/texte.yaml - $ref: ../../parameters/query/tri.yaml - #- $ref: ../../parameters/query/theme.yaml - $ref: ../../parameters/query/dateDebut.yaml - $ref: ../../parameters/query/dateFin.yaml responses: diff --git a/responses/_index.yaml b/responses/_index.yaml index 42af475..605d872 100644 --- a/responses/_index.yaml +++ b/responses/_index.yaml @@ -165,8 +165,8 @@ GetListeDemandesFormationResponse: GetListeOriginesDemandeFormationResponse: $ref: ./demandeformation/getListeOriginesDemandesFormation.yaml -GetListThemesResponse: - $ref: ./demandeformation/getListeThemes.yaml +#GetListThemesResponse: + #$ref: ./demandeformation/getListeThemes.yaml ReponseDemandeFormationResponse: $ref: ./demandeformation/reponseDemandeFormation.yaml diff --git a/responses/demandeformation/getCountDemandesFormation.yaml b/responses/demandeformation/getCountDemandesFormation.yaml new file mode 100644 index 0000000..99dbcfa --- /dev/null +++ b/responses/demandeformation/getCountDemandesFormation.yaml @@ -0,0 +1,7 @@ +description: OK +content: + application/json: + schema: + type: integer + format: int64 + description: Nombre total de demandes de formation \ No newline at end of file diff --git a/schemas/_index.yaml b/schemas/_index.yaml index a118e39..948c1fe 100644 --- a/schemas/_index.yaml +++ b/schemas/_index.yaml @@ -80,8 +80,8 @@ DemandeFormationDTO: OrigineDemandeFormationDTO: $ref: ./demandeformation/origineDemandesFormation.yaml -ThemeDTO: - $ref: ./demandeformation/theme.yaml +#ThemeDTO: + #$ref: ./demandeformation/theme.yaml #Formation EvaluationDTO: diff --git a/schemas/demandeformation/demandeFormation.yaml b/schemas/demandeformation/demandeFormation.yaml index 9fbe8c3..b33a85e 100644 --- a/schemas/demandeformation/demandeFormation.yaml +++ b/schemas/demandeformation/demandeFormation.yaml @@ -28,8 +28,6 @@ properties: type: string format: date-time description: Date à laquelle la demande de formation a reçu une réponse pour la dernière fois - theme: - $ref: ./theme.yaml origine: $ref: ./origineDemandesFormation.yaml collaborateur: @@ -44,5 +42,4 @@ required: - description - demandeRH - dateDemande - - etatDemande - - theme \ No newline at end of file + - etatDemande \ No newline at end of file