commit
f9af2e20d3
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,23 @@ |
||||
openapi: 3.0.0 |
||||
|
||||
info: |
||||
description: Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside |
||||
version: "1.1.2" |
||||
title: Service Collaborateur API |
||||
contact: |
||||
email: lilian.gayet@apside-groupe.com |
||||
|
||||
paths: |
||||
$ref: "./routes/_index.yaml" |
||||
|
||||
components: |
||||
parameters: |
||||
$ref: "./parameters/_index.yaml" |
||||
schemas: |
||||
$ref: "./schemas/_index.yaml" |
||||
responses: |
||||
$ref: "./responses/_index.yaml" |
||||
|
||||
servers: |
||||
- description: SwaggerHub API Auto Mocking |
||||
url: https://virtserver.swaggerhub.com/LilianG/Service-Collaborateur/1.1.1 |
@ -0,0 +1,8 @@ |
||||
in: path |
||||
name: adresseId |
||||
description: Ce paramêtre permet de renseigner l'identifiant de l'adresse recherchée |
||||
required: true |
||||
schema: |
||||
type: integer |
||||
format: int64 |
||||
example: 1 |
@ -0,0 +1,8 @@ |
||||
in: path |
||||
name: agenceId |
||||
description: Ce paramêtre permet de renseigner l'identifiant de l'agence recherchée |
||||
required: true |
||||
schema: |
||||
type: integer |
||||
format: int64 |
||||
example: 1 |
@ -0,0 +1,6 @@ |
||||
in: query |
||||
name: ancienCollaborateur |
||||
description: Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside |
||||
required: false |
||||
schema: |
||||
type: boolean |
@ -0,0 +1,8 @@ |
||||
in: path |
||||
name: buId |
||||
description: Ce paramêtre permet de renseigner l'identifiant de la business-unit recherchée |
||||
required: true |
||||
schema: |
||||
type: integer |
||||
format: int64 |
||||
example: 1 |
@ -0,0 +1,7 @@ |
||||
in: path |
||||
name: collabId |
||||
description: Ce paramêtre permet de renseigner l'identifiant du collaborateur recherché |
||||
required: true |
||||
schema: |
||||
type: string |
||||
format: uuid |
@ -0,0 +1,9 @@ |
||||
in: query |
||||
name: collabsId |
||||
description: Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés |
||||
required: false |
||||
schema: |
||||
type: array |
||||
items: |
||||
type: string |
||||
format: uuid |
@ -0,0 +1,9 @@ |
||||
in: query |
||||
name: date |
||||
description: Ce paramêtre permet de renseigner la date recherchée |
||||
required: true |
||||
schema: |
||||
type: string |
||||
format: Date |
||||
example: |
||||
"2020-01-01" |
@ -0,0 +1,10 @@ |
||||
in: path |
||||
name: mailApside |
||||
description: Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\ "@" doit être changé en "%40" /!\ |
||||
required: true |
||||
schema: |
||||
type: string |
||||
format: mail |
||||
example: |
||||
- "john.doe@apside-groupe.com" |
||||
- "doe@apside.fr" |
@ -0,0 +1,8 @@ |
||||
in: path |
||||
name: nomClient |
||||
description: Ce paramêtre permet de renseigner le nom du client lié au projet |
||||
required: true |
||||
schema: |
||||
type: string |
||||
example: |
||||
- "Harmonie Mutuelle" |
@ -0,0 +1,8 @@ |
||||
in: path |
||||
name: projetId |
||||
description: Ce paramêtre permet de renseigner l'identifiant du projet recherché |
||||
required: true |
||||
schema: |
||||
type: integer |
||||
format: int64 |
||||
example: 1 |
@ -0,0 +1,7 @@ |
||||
in: path |
||||
name: refId |
||||
description: Ce paramêtre permet de renseigner l'identifiant du référent recherché |
||||
required: true |
||||
schema: |
||||
type: string |
||||
format: uuid |
@ -0,0 +1,6 @@ |
||||
in: query |
||||
name: referent |
||||
description: Ce paramêtre permet de filtrer les collaborateurs référents |
||||
required: false |
||||
schema: |
||||
type: boolean |
@ -0,0 +1,30 @@ |
||||
# Identifiants |
||||
CollabId: |
||||
$ref: "./CollabId.yaml" |
||||
CollabsId: |
||||
$ref: "./CollabsId.yaml" |
||||
MailApside: |
||||
$ref: "./MailApside.yaml" |
||||
|
||||
RefId: |
||||
$ref: "./RefId.yaml" |
||||
AgenceId: |
||||
$ref: "./AgenceId.yaml" |
||||
BuId: |
||||
$ref: "./BuId.yaml" |
||||
AdresseId: |
||||
$ref: "./AdresseId.yaml" |
||||
ProjetId: |
||||
$ref: "./ProjetId.yaml" |
||||
|
||||
# Specifique aux collaborateurs |
||||
Anciens: |
||||
$ref: "./Anciens.yaml" |
||||
Referent: |
||||
$ref: "./Referent.yaml" |
||||
Date: |
||||
$ref: "./Date.yaml" |
||||
|
||||
# Specifique aux projets |
||||
NomClient: |
||||
$ref: "./NomClient.yaml" |
@ -0,0 +1 @@ |
||||
description: Opération terminée avec succès |
@ -0,0 +1 @@ |
||||
description: Mauvais paramètre |
@ -0,0 +1 @@ |
||||
description: il n'y a pas d'adresse |
@ -0,0 +1 @@ |
||||
description: il n'y a pas d'agence |
@ -0,0 +1 @@ |
||||
description: il n'y a pas de business-unit |
@ -0,0 +1 @@ |
||||
description: il n'y a pas de collaborateur |
@ -0,0 +1 @@ |
||||
description: il n'y a pas de d'objet recherché possédant cet id |
@ -0,0 +1 @@ |
||||
description: il n'y a pas de collaborateur associé à ce mail |
@ -0,0 +1 @@ |
||||
description: il n'y a pas de projet |
@ -0,0 +1,18 @@ |
||||
200: |
||||
$ref: "./200.yaml" |
||||
400: |
||||
$ref: "./400.yaml" |
||||
404Id: |
||||
$ref: "./404Id.yaml" |
||||
404Mail: |
||||
$ref: "./404Mail.yaml" |
||||
404Collab: |
||||
$ref: "./404Collab.yaml" |
||||
404Agence: |
||||
$ref: "./404Agence.yaml" |
||||
404Adresse: |
||||
$ref: "./404Adresse.yaml" |
||||
404BU: |
||||
$ref: "./404BU.yaml" |
||||
404Projet: |
||||
$ref: "./404Projet.yaml" |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "adresse" |
||||
summary: rechercher une adresse |
||||
operationId: ChercherAdresse |
||||
description: | |
||||
rechercher une adresse à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/AdresseId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/Adresse.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "adresse" |
||||
summary: rechercher toutes les adresses |
||||
operationId: ChercherAdresses |
||||
description: | |
||||
Cette requette demande de récupérer toutes les adresses existantes |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Adresse.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Adresse.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "adresse" |
||||
summary: mettre à jour une adresse |
||||
description: "" |
||||
operationId: MajAdressepatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAdresse.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/AdresseId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,15 @@ |
||||
tags: |
||||
- "adresse" |
||||
summary: ajout d'une nouvelle adresse |
||||
description: "" |
||||
operationId: AjoutAdresse |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAdresse.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "adresse" |
||||
summary: mettre à jour une adresse |
||||
description: "" |
||||
operationId: MajAdresse |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAdresse.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/AdresseId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "agence" |
||||
summary: rechercher une adresse |
||||
operationId: ChercherAgence |
||||
description: | |
||||
rechercher une agence à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/AgenceId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/Agence.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "agence" |
||||
summary: rechercher toutes les agences |
||||
operationId: ChercherAgences |
||||
description: | |
||||
Cette requette demande de récupérer toutes les agences existantes |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Agence.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Agence.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "agence" |
||||
summary: mettre à jour une agence |
||||
description: "" |
||||
operationId: MajAgencepatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAgence.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/AgenceId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,15 @@ |
||||
tags: |
||||
- "agence" |
||||
summary: ajout d'une nouvelle agence |
||||
description: "" |
||||
operationId: AjoutAgence" |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAgence.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "agence" |
||||
summary: mettre à jour une agence |
||||
description: "" |
||||
operationId: MajAgence |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleAgence.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/AgenceId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "business-unit" |
||||
summary: rechercher une business-unit |
||||
operationId: ChercherBU |
||||
description: | |
||||
rechercher une business-unit à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/BuId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/BU.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "business-unit" |
||||
summary: rechercher toutes les business-units |
||||
operationId: ChercherBUs |
||||
description: | |
||||
Cette requette demande de récupérer toutes les business-units existantes |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/BU.yaml' |
||||
'404': |
||||
$ref: '../../responses/404BU.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "business-unit" |
||||
summary: mettre à jour une business-unit |
||||
description: "" |
||||
operationId: MajBUpatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleBU.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/BuId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,15 @@ |
||||
tags: |
||||
- "business-unit" |
||||
summary: ajout d'une nouvelle business-unit |
||||
description: "" |
||||
operationId: AjoutBU |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleBU.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "business-unit" |
||||
summary: mettre à jour une business-unit |
||||
description: "" |
||||
operationId: MajBU |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvelleBU.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/BuId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: rechercher un collaborateur |
||||
operationId: ChercherCollabId |
||||
description: | |
||||
rechercher un collaborateur à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: mettre à jour un collaborateur |
||||
description: "" |
||||
operationId: MajCollabpatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/nouveaux/NouveauCollaborateur.yaml' |
||||
parameters: |
||||
- $ref: '../../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: mettre à jour un collaborateur |
||||
description: "" |
||||
operationId: MajCollab |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/nouveaux/NouveauCollaborateur.yaml' |
||||
parameters: |
||||
- $ref: '../../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: rechercher un collaborateur |
||||
operationId: ChercherCollabMail |
||||
description: | |
||||
rechercher un collaborateur à l'aide de son mail apside |
||||
parameters: |
||||
- $ref: '../../../parameters/MailApside.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: mettre à jour un collaborateur |
||||
description: "" |
||||
operationId: MajCollabpatchMail |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/nouveaux/NouveauCollaborateur.yaml' |
||||
parameters: |
||||
- $ref: '../../../parameters/MailApside.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: mettre à jour un collaborateur |
||||
description: "" |
||||
operationId: MajCollabMail |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../../schemas/nouveaux/NouveauCollaborateur.yaml' |
||||
parameters: |
||||
- $ref: '../../../parameters/MailApside.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../../responses/400.yaml' |
@ -0,0 +1,15 @@ |
||||
tags: |
||||
- "collaborateur" |
||||
summary: ajout d'un nouveau collaborateur |
||||
description: "" |
||||
operationId: AjoutCollab |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouveauCollaborateur.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,24 @@ |
||||
tags: |
||||
- "collaborateurs" |
||||
- "référents" |
||||
summary: rechercher tous les collaborateurs |
||||
operationId: ChercherCollab |
||||
description: | |
||||
Cette requette demande de récupérer tous les collaborateurs existant |
||||
parameters: |
||||
- $ref: '../../parameters/CollabsId.yaml' |
||||
- $ref: '../../parameters/Anciens.yaml' |
||||
- $ref: '../../parameters/Referent.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Collab.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,23 @@ |
||||
tags: |
||||
- "collaborateurs" |
||||
- "référents" |
||||
summary: rechercher tous les collaborateurs d'un Business-unit |
||||
operationId: ChercherCollabAgence |
||||
description: | |
||||
Cette requette demande de récupérer tous les collaborateurs existant au sein d'une agence |
||||
parameters: |
||||
- $ref: '../../parameters/AgenceId.yaml' |
||||
- $ref: '../../parameters/Referent.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Collab.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,23 @@ |
||||
tags: |
||||
- "collaborateurs" |
||||
- "référents" |
||||
summary: rechercher tous les collaborateurs d'un Business-unit |
||||
operationId: ChercherCollabBU |
||||
description: | |
||||
Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit |
||||
parameters: |
||||
- $ref: '../../parameters/BuId.yaml' |
||||
- $ref: '../../parameters/Referent.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Collab.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,21 @@ |
||||
tags: |
||||
- "collaborateurs" |
||||
summary: rechercher tous les collaborateurs d'un référent |
||||
operationId: ChercherCollabRef |
||||
description: | |
||||
Cette requette demande de récupérer tous les collaborateurs existant au sein d'une business-unit |
||||
parameters: |
||||
- $ref: '../../parameters/RefId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Collab.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,18 @@ |
||||
tags: |
||||
- "péridode d'essai" |
||||
summary: mettre à jour la première partie de la péridode d'essai |
||||
description: | |
||||
La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 |
||||
operationId: Maj1PEPatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvellePeriodeEssai.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,18 @@ |
||||
tags: |
||||
- "péridode d'essai" |
||||
summary: mettre à jour une péridode d'essai en cours |
||||
description: | |
||||
La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 |
||||
operationId: MajPEPatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvellePeriodeEssai.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,18 @@ |
||||
tags: |
||||
- "péridode d'essai" |
||||
summary: mettre à jour la première partie de la péridode d'essai |
||||
description: | |
||||
La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 |
||||
operationId: Maj1PE |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvellePeriodeEssai.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,18 @@ |
||||
tags: |
||||
- "péridode d'essai" |
||||
summary: mettre à jour une péridode d'essai |
||||
description: | |
||||
La différence entre la première et celle en cours est que, si une période d'essai est prolongee, il y en a techniquement 2 |
||||
operationId: MajPE |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouvellePeriodeEssai.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: rechercher un projet |
||||
operationId: ChercherProjet |
||||
description: | |
||||
rechercher un projet à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/ProjetId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/Projet.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,19 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: rechercher toutes les projets |
||||
operationId: ChercherProjets |
||||
description: | |
||||
Cette requette demande de récupérer tous les projets existants |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Projet.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Projet.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,21 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: rechercher tous les projets |
||||
operationId: ChercherProjetsClient |
||||
description: | |
||||
Cette requette demande de récupérer tous les projets existants |
||||
parameters: |
||||
- $ref: '../../parameters/NomClient.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultats de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Projet.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Projet.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: mettre à jour un projet |
||||
description: "" |
||||
operationId: MajProjetpatch |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouveauProjet.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/ProjetId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,15 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: ajout d'un nouveau projet |
||||
description: "" |
||||
operationId: AjoutProjet |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouveauProjet.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,17 @@ |
||||
tags: |
||||
- "projet" |
||||
summary: mettre à jour un projet |
||||
description: "" |
||||
operationId: MajProjet |
||||
requestBody: |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/nouveaux/NouveauProjet.yaml' |
||||
parameters: |
||||
- $ref: '../../parameters/ProjetId.yaml' |
||||
responses: |
||||
'200': |
||||
$ref: '../../responses/200.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,20 @@ |
||||
tags: |
||||
- "référent" |
||||
summary: rechercher le référent qui a le plus suivit |
||||
operationId: ChercherRefSuiviParDateCollabId |
||||
description: | |
||||
rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
- $ref: '../../parameters/Date.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,20 @@ |
||||
tags: |
||||
- "référent" |
||||
summary: rechercher le référent qui a le plus suivit |
||||
operationId: ChercherRefSuiviParDateCollabMail |
||||
description: | |
||||
rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l'aide de son mail apside |
||||
parameters: |
||||
- $ref: '../../parameters/MailApside.yaml' |
||||
- $ref: '../../parameters/Date.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Mail.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,21 @@ |
||||
tags: |
||||
- "référents" |
||||
summary: rechercher les référents |
||||
operationId: ChercherRefCollabId |
||||
description: | |
||||
rechercher les référents d'un collaborateur à l'aide de son identifiant |
||||
parameters: |
||||
- $ref: '../../parameters/CollabId.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Id.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,21 @@ |
||||
tags: |
||||
- "référents" |
||||
summary: rechercher les référents |
||||
operationId: ChercherRefCollabMail |
||||
description: | |
||||
rechercher les référents d'un collaborateur à l'aide de son mail apside |
||||
parameters: |
||||
- $ref: '../../parameters/MailApside.yaml' |
||||
responses: |
||||
'200': |
||||
description: résultat de la recherche |
||||
content: |
||||
application/json: |
||||
schema: |
||||
type: array |
||||
items: |
||||
$ref: '../../schemas/Collaborateur.yaml' |
||||
'404': |
||||
$ref: '../../responses/404Mail.yaml' |
||||
'400': |
||||
$ref: '../../responses/400.yaml' |
@ -0,0 +1,130 @@ |
||||
# Endpoints collaborateurs |
||||
/collaborateurs: |
||||
get: |
||||
$ref: "./Collaborateurs/getCollabs.yaml" |
||||
post: |
||||
$ref: "./Collaborateur/postCollabs.yaml" |
||||
|
||||
/collaborateurs/bu/{buId}: |
||||
get: |
||||
$ref: "./Collaborateurs/getCollabsBU.yaml" |
||||
/collaborateurs/agence/{agenceId}: |
||||
get: |
||||
$ref: "./Collaborateurs/getCollabsAgence.yaml" |
||||
/collaborateurs/referent/{refId}: |
||||
get: |
||||
$ref: "./Collaborateurs/getCollabsRef.yaml" |
||||
|
||||
# Endpoints collaborateur unique |
||||
/collaborateurs/{collabId}: |
||||
get: |
||||
$ref: "./Collaborateur/Id/getCollab.yaml" |
||||
put: |
||||
$ref: "./Collaborateur/Id/putCollab.yaml" |
||||
patch: |
||||
$ref: "./Collaborateur/Id/patchCollab.yaml" |
||||
|
||||
/collaborateurs/{mailApside}: |
||||
get: |
||||
$ref: "./Collaborateur/Mail/getCollab.yaml" |
||||
put: |
||||
$ref: "./Collaborateur/Mail/putCollab.yaml" |
||||
patch: |
||||
$ref: "./Collaborateur/Mail/patchCollab.yaml" |
||||
|
||||
# Endpoints référents |
||||
/collaborateurs/{collabId}/referents: |
||||
get: |
||||
$ref: "./Referents/getRefsCollabId.yaml" |
||||
/collaborateurs/{mailApside}/referents: |
||||
get: |
||||
$ref: "./Referents/getRefsCollabMail.yaml" |
||||
|
||||
# Endpoints référent unique |
||||
/collaborateurs/{collabId}/referent: |
||||
get: |
||||
$ref: "./Referent/getRefCollabId.yaml" |
||||
/collaborateurs/{mailApside}/referent: |
||||
get: |
||||
$ref: "./Referent/getRefCollabMail.yaml" |
||||
|
||||
# Endpoints periode d essai |
||||
/collaborateurs/{collabId}/PeriodeEssai: |
||||
put: |
||||
$ref: "./PE/putPeriode.yaml" |
||||
patch: |
||||
$ref: "./PE/patchPeriode.yaml" |
||||
|
||||
/collaborateurs/{collabId}/PremierePeriodeEssai: |
||||
put: |
||||
$ref: "./PE/put1Periode.yaml" |
||||
patch: |
||||
$ref: "./PE/patch1Periode.yaml" |
||||
|
||||
# Endpoints Agences |
||||
/agences: |
||||
get: |
||||
$ref: "./Agences/getAgences.yaml" |
||||
post: |
||||
$ref: "./Agences/postAgence.yaml" |
||||
|
||||
# Endpoints agence unique |
||||
/agence/{agenceId}: |
||||
get: |
||||
$ref: "./Agences/getAgence.yaml" |
||||
put: |
||||
$ref: "./Agences/putAgence.yaml" |
||||
patch: |
||||
$ref: "./Agences/patchAgence.yaml" |
||||
|
||||
# Endpoints business-units |
||||
/bus: |
||||
get: |
||||
$ref: "./BusinessUnits/getBUs.yaml" |
||||
post: |
||||
$ref: "./BusinessUnits/postBU.yaml" |
||||
|
||||
# Endpoints business-unit unique |
||||
/bus/{buId}: |
||||
get: |
||||
$ref: "./BusinessUnits/getBU.yaml" |
||||
put: |
||||
$ref: "./BusinessUnits/putBU.yaml" |
||||
patch: |
||||
$ref: "./BusinessUnits/patchBU.yaml" |
||||
|
||||
# Endpoints adresses |
||||
/adresses: |
||||
get: |
||||
$ref: "./Adresses/getAdresses.yaml" |
||||
post: |
||||
$ref: "./Adresses/postAdresse.yaml" |
||||
|
||||
# Endpoints adresse unique |
||||
/adresses/{adresseId}: |
||||
get: |
||||
$ref: "./Adresses/getAdresse.yaml" |
||||
put: |
||||
$ref: "./Adresses/putAdresse.yaml" |
||||
patch: |
||||
$ref: "./Adresses/patchAdresse.yaml" |
||||
|
||||
# Endpoints projets |
||||
/projets: |
||||
get: |
||||
$ref: "./Projets/getProjets.yaml" |
||||
post: |
||||
$ref: "./Projets/postProjet.yaml" |
||||
|
||||
/projets/{nomClient}: |
||||
get: |
||||
$ref: "./Projets/getProjetsClient.yaml" |
||||
|
||||
# Endpoints adresse unique |
||||
/projets/{projetId}: |
||||
get: |
||||
$ref: "./Projets/getProjet.yaml" |
||||
put: |
||||
$ref: "./Projets/putProjet.yaml" |
||||
patch: |
||||
$ref: "./Projets/patchProjet.yaml" |
@ -0,0 +1,19 @@ |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: integer |
||||
format: int64 |
||||
rue: |
||||
type: string |
||||
ville: |
||||
type: string |
||||
codePostal: |
||||
type: string |
||||
pays: |
||||
type: string |
||||
dateDebut: |
||||
type: string |
||||
format: date |
||||
dateFin: |
||||
type: string |
||||
format: date |
@ -0,0 +1,11 @@ |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: integer |
||||
format: int64 |
||||
nom: |
||||
type: string |
||||
bus: |
||||
type: array |
||||
items: |
||||
$ref: './BU.yaml' |
@ -0,0 +1,9 @@ |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: integer |
||||
format: int64 |
||||
nom: |
||||
type: string |
||||
agence: |
||||
$ref: './Agence.yaml' |
@ -0,0 +1,61 @@ |
||||
type: object |
||||
required: |
||||
- id |
||||
- nom |
||||
- prenom |
||||
properties: |
||||
id: |
||||
type: string |
||||
format: uuid |
||||
nom: |
||||
type: string |
||||
prenom: |
||||
type: string |
||||
genre: |
||||
$ref: './Genre.yaml' |
||||
dateNaissance: |
||||
type: string |
||||
format: date |
||||
nbEnfants: |
||||
type: integer |
||||
format: int32 |
||||
adresse: |
||||
$ref: './Adresse.yaml' |
||||
telephone: |
||||
type: string |
||||
mailPerso: |
||||
type: string |
||||
format: email |
||||
mailApside: |
||||
type: string |
||||
format: email |
||||
statut: |
||||
$ref: './Statut.yaml' |
||||
fonctions: |
||||
type: array |
||||
items: |
||||
$ref: './Fonction.yaml' |
||||
businessUnit: |
||||
$ref: './BU.yaml' |
||||
referent: |
||||
$ref: './Collaborateur.yaml' |
||||
parrain: |
||||
$ref: './Collaborateur.yaml' |
||||
projets: |
||||
type: array |
||||
items: |
||||
$ref: './Projet.yaml' |
||||
technologiesPref: |
||||
type: array |
||||
items: |
||||
$ref: './Technologie.yaml' |
||||
periodeEssai: |
||||
type: array |
||||
items: |
||||
$ref: './PeriodeEssai.yaml' |
||||
dateArrivee: |
||||
type: string |
||||
format: date |
||||
dateDepart: |
||||
type: string |
||||
format: date |
@ -0,0 +1,6 @@ |
||||
type: object |
||||
properties: |
||||
code: |
||||
type: string |
||||
intitule: |
||||
type: string |
@ -0,0 +1,5 @@ |
||||
type: string |
||||
enum: |
||||
- FEMININ |
||||
- MASCULIN |
||||
- NEUTRE |
@ -0,0 +1,7 @@ |
||||
type: string |
||||
enum: |
||||
- VALIDEE |
||||
- PROLONGEE_COLLAB |
||||
- PROLONGEE_APSIDE |
||||
- ARRETEE_COLLAB |
||||
- ARRETEE_APSIDE |
@ -0,0 +1,18 @@ |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: integer |
||||
format: int64 |
||||
dateDebut: |
||||
type: string |
||||
format: date |
||||
dateFinPrev: |
||||
type: string |
||||
format: date |
||||
dateFinEffect: |
||||
type: string |
||||
format: date |
||||
commentaire: |
||||
type: string |
||||
issuePE: |
||||
$ref: './IssuePE.yaml' |
@ -0,0 +1,17 @@ |
||||
type: object |
||||
properties: |
||||
id: |
||||
type: integer |
||||
format: int64 |
||||
nom: |
||||
type: string |
||||
client: |
||||
type: string |
||||
debut: |
||||
type: string |
||||
format: date |
||||
fin: |
||||
type: string |
||||
format: date |
||||
description: |
||||
type: string |
@ -0,0 +1,6 @@ |
||||
type: string |
||||
enum: |
||||
- CADRE |
||||
- NON-CADRE |
||||
- ALTERNANT |
||||
- STAGIAIRE |
@ -0,0 +1,6 @@ |
||||
type: object |
||||
properties: |
||||
code: |
||||
type: string |
||||
intitule: |
||||
type: string |
@ -0,0 +1,37 @@ |
||||
# Modele |
||||
Collaborateur: |
||||
$ref: "./Collaborateur.yaml" |
||||
Adresse: |
||||
$ref: "./Adresse.yaml" |
||||
Agence: |
||||
$ref: "./Agence.yaml" |
||||
BU: |
||||
$ref: "./BU.yaml" |
||||
Fonction: |
||||
$ref: "./Fonction.yaml" |
||||
Genre: |
||||
$ref: "./Genre.yaml" |
||||
PeriodeEssai: |
||||
$ref: "./PeriodeEssai.yaml" |
||||
IssuePE: |
||||
$ref: "./IssuePE.yaml" |
||||
Projet: |
||||
$ref: "./Projet.yaml" |
||||
Statut: |
||||
$ref: "./Statut.yaml" |
||||
Technologie: |
||||
$ref: "./Technologie.yaml" |
||||
|
||||
# Simplification pour POST / PUT / PATCH |
||||
NouveauCollaborateur: |
||||
$ref: "./nouveaux/NouveauCollaborateur.yaml" |
||||
NouvelleAgence: |
||||
$ref: "./nouveaux/NouvelleAgence.yaml" |
||||
NouvelleAdresse: |
||||
$ref: "./nouveaux/NouvelleAdresse.yaml" |
||||
NouvelleBU: |
||||
$ref: "./nouveaux/NouvelleBU.yaml" |
||||
NouveauProjet: |
||||
$ref: "./nouveaux/NouveauProjet.yaml" |
||||
NouvellePeriodeEssai: |
||||
$ref: "./nouveaux/NouvellePeriodeEssai.yaml" |
@ -0,0 +1,56 @@ |
||||
type: object |
||||
properties: |
||||
nom: |
||||
type: string |
||||
prenom: |
||||
type: string |
||||
genre: |
||||
type: string |
||||
enum: |
||||
- FEMININ |
||||
- MASCULIN |
||||
- NEUTRE |
||||
dateNaissance: |
||||
type: string |
||||
format: date |
||||
nbEnfants: |
||||
type: integer |
||||
format: int32 |
||||
adresse: |
||||
type: string |
||||
adresseId: |
||||
type: integer |
||||
format: int64 |
||||
telephone: |
||||
type: string |
||||
mailPerso: |
||||
type: string |
||||
format: email |
||||
mailApside: |
||||
type: string |
||||
format: email |
||||
statut: |
||||
type: string |
||||
enum: |
||||
- CADRE |
||||
- NON-CADRE |
||||
- ALTERNANT |
||||
- STAGIAIRE |
||||
fonctions: |
||||
type: string |
||||
businessUnit: |
||||
type: integer |
||||
format: int64 |
||||
parrain: |
||||
type: integer |
||||
format: int64 |
||||
technologiesPref: |
||||
type: array |
||||
items: |
||||
type: string |
||||
dateDebutPE: |
||||
type: string |
||||
format: date |
||||
dateFinPE: |
||||
type: string |
||||
format: date |
@ -0,0 +1,14 @@ |
||||
type: object |
||||
properties: |
||||
nom: |
||||
type: string |
||||
client: |
||||
type: string |
||||
debut: |
||||
type: string |
||||
format: date |
||||
fin: |
||||
type: string |
||||
format: date |
||||
description: |
||||
type: string |
@ -0,0 +1,16 @@ |
||||
type: object |
||||
properties: |
||||
rue: |
||||
type: string |
||||
ville: |
||||
type: string |
||||
codePostal: |
||||
type: string |
||||
pays: |
||||
type: string |
||||
dateDebut: |
||||
type: string |
||||
format: date |
||||
dateFin: |
||||
type: string |
||||
format: date |
@ -0,0 +1,8 @@ |
||||
type: object |
||||
properties: |
||||
nom: |
||||
type: string |
||||
bus: |
||||
type: array |
||||
items: |
||||
$ref: '../BU.yaml' |
@ -0,0 +1,6 @@ |
||||
type: object |
||||
properties: |
||||
nom: |
||||
type: string |
||||
agence: |
||||
$ref: '../Agence.yaml' |
@ -0,0 +1,15 @@ |
||||
type: object |
||||
properties: |
||||
dateDebut: |
||||
type: string |
||||
format: date |
||||
dateFinPrev: |
||||
type: string |
||||
format: date |
||||
dateFinEffect: |
||||
type: string |
||||
format: date |
||||
commentaire: |
||||
type: string |
||||
issuePE: |
||||
$ref: '../IssuePE.yaml' |
Loading…
Reference in new issue