diff --git a/schemas/collaborateur/agence.yaml b/schemas/collaborateur/agence.yaml index 9f3d9ff..cb8ed01 100644 --- a/schemas/collaborateur/agence.yaml +++ b/schemas/collaborateur/agence.yaml @@ -1,11 +1,13 @@ type: object -description: Une agence de Apside +description: Agence à laquelle appartient le collaborateur properties: id: type: integer format: int64 + description: Id de l'agence nom: type: string + description: Nom de l'agence bu: type: array items: diff --git a/schemas/collaborateur/businessunit.yaml b/schemas/collaborateur/businessunit.yaml index d0111c4..9d77c27 100644 --- a/schemas/collaborateur/businessunit.yaml +++ b/schemas/collaborateur/businessunit.yaml @@ -1,14 +1,15 @@ type: object -description: Une business unit d'une agence +description: Business unit à laquelle appartient le collaborateur properties: id: type: integer format: int64 + description: Id de l'agence nom: type: string + description: Nom de la business unit agence: $ref: ./agence.yaml required: - id - - nom - - agence \ No newline at end of file + - nom \ No newline at end of file diff --git a/schemas/collaborateur/collaborateur.yaml b/schemas/collaborateur/collaborateur.yaml index d32e098..659f0a9 100644 --- a/schemas/collaborateur/collaborateur.yaml +++ b/schemas/collaborateur/collaborateur.yaml @@ -1,22 +1,28 @@ type: object -description: Les informations d'un collaborateur +description: Objet contenant les données du collaborateur properties: id: type: string format: uuid + description: Id du collaborateur nom: type: string + description: Nom du collaborateur prenom: type: string + description: Prénom du collaborateur mailApside: type: string format: email + description: Mail Apside du collaborateur dateArrivee: type: string format: date-time + description: Date à laquelle le collaborateur a été embauché dateDepart: type: string format: date-time + description: Date à laquelle le collaborateur a quitté l'entreprise businessUnit: $ref: ./businessUnit.yaml referent: