diff --git a/openapi.yaml b/openapi.yaml index 3710b79..5cbc816 100644 --- a/openapi.yaml +++ b/openapi.yaml @@ -1,6 +1,6 @@ openapi: 3.0.0 info: - version: 1.3.5 + version: 1.3.6 title: API du serveur de l'application de digitalisation des EP description: API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. diff --git a/responses/referent/getListeReferrents.yaml b/responses/referent/getListeReferrents.yaml index d0bd14a..eb77d3e 100644 --- a/responses/referent/getListeReferrents.yaml +++ b/responses/referent/getListeReferrents.yaml @@ -4,4 +4,4 @@ content: schema: type: array items: - $ref: ../../schemas/collaborateur/referent.yaml + $ref: ../../schemas/collaborateur/collaborateur.yaml diff --git a/responses/referent/getReferent.yaml b/responses/referent/getReferent.yaml index 6dfb40b..1dd8b7a 100644 --- a/responses/referent/getReferent.yaml +++ b/responses/referent/getReferent.yaml @@ -2,4 +2,4 @@ description: OK content: application/json: schema: - $ref: ../../schemas/collaborateur/referent.yaml \ No newline at end of file + $ref: ../../schemas/collaborateur/collaborateur.yaml \ No newline at end of file diff --git a/schemas/_index.yaml b/schemas/_index.yaml index b2f894b..311b348 100644 --- a/schemas/_index.yaml +++ b/schemas/_index.yaml @@ -8,9 +8,6 @@ BusinessUnitDTO: CollaborateurDTO: $ref: ./collaborateur/collaborateur.yaml -ReferentDTO: - $ref: ./collaborateur/referent.yaml - #Note AffichageNoteDTO: $ref: ./note/affichageNote.yaml diff --git a/schemas/collaborateur/collaborateur.yaml b/schemas/collaborateur/collaborateur.yaml index d1995d9..d32e098 100644 --- a/schemas/collaborateur/collaborateur.yaml +++ b/schemas/collaborateur/collaborateur.yaml @@ -20,7 +20,7 @@ properties: businessUnit: $ref: ./businessUnit.yaml referent: - $ref: ./referent.yaml + $ref: ./collaborateur.yaml required: - id - nom diff --git a/schemas/collaborateur/referent.yaml b/schemas/collaborateur/referent.yaml deleted file mode 100644 index 71c3185..0000000 --- a/schemas/collaborateur/referent.yaml +++ /dev/null @@ -1,21 +0,0 @@ -type: object -description: Les informations d'un collaborateur -properties: - id: - type: string - format: uuid - nom: - type: string - prenom: - type: string - mailApside: - type: string - format: email - businessUnit: - $ref: ./businessUnit.yaml -required: - - id - - nom - - prenom - - mailApside - - businessunit \ No newline at end of file diff --git a/schemas/ep/ep.yaml b/schemas/ep/ep.yaml index 7ed78f9..7d1e384 100644 --- a/schemas/ep/ep.yaml +++ b/schemas/ep/ep.yaml @@ -44,7 +44,7 @@ properties: collaborateur: $ref: ../collaborateur/collaborateur.yaml referent: - $ref: ../collaborateur/referent.yaml + $ref: ../collaborateur/collaborateur.yaml demandesFormation: type: array items: diff --git a/schemas/ep/epInformations.yaml b/schemas/ep/epInformations.yaml index c544de0..498d42c 100644 --- a/schemas/ep/epInformations.yaml +++ b/schemas/ep/epInformations.yaml @@ -19,7 +19,7 @@ properties: collaborateur: $ref: ../collaborateur/collaborateur.yaml referent: - $ref: ../collaborateur/referent.yaml + $ref: ../collaborateur/collaborateur.yaml required: - id