Ajout d'un count pour les demandes de formations et suppression des références vers les thèmes des demandes de formation (sans supprimer les fichiers)

master
Yanaël GRETTE 4 years ago
parent 642e7105df
commit 8a3d1a5547
  1. 6
      openapi.yaml
  2. 4
      parameters/_index.yaml
  3. 27
      paths/demandeformation/demandesFormationCount.yaml
  4. 1
      paths/demandeformation/demandesformation.yaml
  5. 4
      responses/_index.yaml
  6. 7
      responses/demandeformation/getCountDemandesFormation.yaml
  7. 4
      schemas/_index.yaml
  8. 5
      schemas/demandeformation/demandeFormation.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:

@ -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

@ -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

@ -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:

@ -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

@ -0,0 +1,7 @@
description: OK
content:
application/json:
schema:
type: integer
format: int64
description: Nombre total de demandes de formation

@ -80,8 +80,8 @@ DemandeFormationDTO:
OrigineDemandeFormationDTO:
$ref: ./demandeformation/origineDemandesFormation.yaml
ThemeDTO:
$ref: ./demandeformation/theme.yaml
#ThemeDTO:
#$ref: ./demandeformation/theme.yaml
#Formation
EvaluationDTO:

@ -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
- etatDemande
Loading…
Cancel
Save