Création d'un pseudo serveur collaborateur avec les implémentations suffisantes pour le serveur EP et données générées aléatoirement

master
Yanaël GRETTE 4 years ago
commit aa85c67029
  1. 61
      ServeurCollaborateur/Attributes/ValidateModelStateAttribute.cs
  2. 158
      ServeurCollaborateur/Controllers/AdresseApi.cs
  3. 158
      ServeurCollaborateur/Controllers/AgenceApi.cs
  4. 158
      ServeurCollaborateur/Controllers/BusinessUnitApi.cs
  5. 461
      ServeurCollaborateur/Controllers/CollaborateurApi.cs
  6. 122
      ServeurCollaborateur/Controllers/PeriodeDessaiApi.cs
  7. 190
      ServeurCollaborateur/Controllers/ProjetApi.cs
  8. 51
      ServeurCollaborateur/Filters/BasePathFilter.cs
  9. 96
      ServeurCollaborateur/Filters/GeneratePathParamsValidationFilter.cs
  10. 18
      ServeurCollaborateur/IService/ICollaborateurService.cs
  11. 203
      ServeurCollaborateur/Models/Adresse.cs
  12. 147
      ServeurCollaborateur/Models/Agence.cs
  13. 147
      ServeurCollaborateur/Models/BU.cs
  14. 388
      ServeurCollaborateur/Models/Collaborateur.cs
  15. 133
      ServeurCollaborateur/Models/Fonction.cs
  16. 44
      ServeurCollaborateur/Models/Genre.cs
  17. 54
      ServeurCollaborateur/Models/IssuePE.cs
  18. 392
      ServeurCollaborateur/Models/NouveauCollaborateur.cs
  19. 175
      ServeurCollaborateur/Models/NouveauProjet.cs
  20. 189
      ServeurCollaborateur/Models/NouvelleAdresse.cs
  21. 133
      ServeurCollaborateur/Models/NouvelleAgence.cs
  22. 133
      ServeurCollaborateur/Models/NouvelleBU.cs
  23. 175
      ServeurCollaborateur/Models/NouvellePeriodeEssai.cs
  24. 189
      ServeurCollaborateur/Models/PeriodeEssai.cs
  25. 189
      ServeurCollaborateur/Models/Projet.cs
  26. 49
      ServeurCollaborateur/Models/Statut.cs
  27. 133
      ServeurCollaborateur/Models/Technologie.cs
  28. 26
      ServeurCollaborateur/Program.cs
  29. 30
      ServeurCollaborateur/Properties/launchSettings.json
  30. 15
      ServeurCollaborateur/ServeurCollaborateur.csproj
  31. 89
      ServeurCollaborateur/Service/CollaborateurService.cs
  32. 54
      ServeurCollaborateur/Startup.cs
  33. 9
      ServeurCollaborateur/appsettings.Development.json
  34. 10
      ServeurCollaborateur/appsettings.json
  35. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Microsoft.OpenApi.dll
  36. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Microsoft.Web.Infrastructure.dll
  37. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Newtonsoft.Json.dll
  38. 3679
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.deps.json
  39. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.dll
  40. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.exe
  41. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.pdb
  42. 8
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.runtimeconfig.dev.json
  43. 13
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/ServeurCollaborateur.runtimeconfig.json
  44. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.Annotations.dll
  45. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.Swagger.dll
  46. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Swashbuckle.AspNetCore.SwaggerGen.dll
  47. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/Swashbuckle.Core.dll
  48. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/System.Net.Http.Formatting.dll
  49. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/System.Web.Http.WebHost.dll
  50. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/System.Web.Http.dll
  51. BIN
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/WebActivatorEx.dll
  52. 9
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/appsettings.Development.json
  53. 10
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/appsettings.json
  54. 1483
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/collaborateurs - Copier.json
  55. 1481
      ServeurCollaborateur/bin/Debug/netcoreapp3.1/collaborateurs.json
  56. 1481
      ServeurCollaborateur/collaborateurs.json
  57. 4
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs
  58. 23
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.AssemblyInfo.cs
  59. 1
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.AssemblyInfoInputs.cache
  60. 0
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.MvcApplicationPartsAssemblyInfo.cache
  61. 18
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.MvcApplicationPartsAssemblyInfo.cs
  62. 1
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.RazorTargetAssemblyInfo.cache
  63. BIN
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.assets.cache
  64. 0
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.csproj.CopyComplete
  65. 1
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.csproj.CoreCompileInputs.cache
  66. 35
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.csproj.FileListAbsolute.txt
  67. BIN
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.csprojAssemblyReference.cache
  68. BIN
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.dll
  69. 1
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.genruntimeconfig.cache
  70. BIN
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/ServeurCollaborateur.pdb
  71. BIN
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/apphost.exe
  72. 0
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/staticwebassets/ServeurCollaborateur.StaticWebAssets.Manifest.cache
  73. 1
      ServeurCollaborateur/obj/Debug/netcoreapp3.1/staticwebassets/ServeurCollaborateur.StaticWebAssets.xml
  74. 83
      ServeurCollaborateur/obj/ServeurCollaborateur.csproj.nuget.dgspec.json
  75. 18
      ServeurCollaborateur/obj/ServeurCollaborateur.csproj.nuget.g.props
  76. 6
      ServeurCollaborateur/obj/ServeurCollaborateur.csproj.nuget.g.targets
  77. 519
      ServeurCollaborateur/obj/project.assets.json
  78. 93
      ServeurCollaborateur/obj/project.nuget.cache
  79. 25
      ServeurCollaborateurSolution.sln

@ -0,0 +1,61 @@
using System.ComponentModel.DataAnnotations;
using System.Reflection;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.AspNetCore.Mvc.Filters;
using Microsoft.AspNetCore.Mvc.ModelBinding;
namespace IO.Swagger.Attributes
{
/// <summary>
/// Model state validation attribute
/// </summary>
public class ValidateModelStateAttribute : ActionFilterAttribute
{
/// <summary>
/// Called before the action method is invoked
/// </summary>
/// <param name="context"></param>
public override void OnActionExecuting(ActionExecutingContext context)
{
// Per https://blog.markvincze.com/how-to-validate-action-parameters-with-dataannotation-attributes/
var descriptor = context.ActionDescriptor as ControllerActionDescriptor;
if (descriptor != null)
{
foreach (var parameter in descriptor.MethodInfo.GetParameters())
{
object args = null;
if (context.ActionArguments.ContainsKey(parameter.Name))
{
args = context.ActionArguments[parameter.Name];
}
ValidateAttributes(parameter, args, context.ModelState);
}
}
if (!context.ModelState.IsValid)
{
context.Result = new BadRequestObjectResult(context.ModelState);
}
}
private void ValidateAttributes(ParameterInfo parameter, object args, ModelStateDictionary modelState)
{
foreach (var attributeData in parameter.CustomAttributes)
{
var attributeInstance = parameter.GetCustomAttribute(attributeData.AttributeType);
var validationAttribute = attributeInstance as ValidationAttribute;
if (validationAttribute != null)
{
var isValid = validationAttribute.IsValid(args);
if (!isValid)
{
modelState.AddModelError(parameter.Name, validationAttribute.FormatErrorMessage(parameter.Name));
}
}
}
}
}
}

@ -0,0 +1,158 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class AdresseApiController : ControllerBase
{
/// <summary>
/// ajout d&#x27;une nouvelle adresse
/// </summary>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPost]
[Route("/adresses")]
[ValidateModelState]
[SwaggerOperation("AjoutAdresse")]
public virtual IActionResult AjoutAdresse([FromBody]NouvelleAdresse body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// rechercher une adresse
/// </summary>
/// <remarks>rechercher une adresse à l&#x27;aide de son identifiant </remarks>
/// <param name="adresseId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;adresse recherchée</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/adresses/{adresseId}")]
[ValidateModelState]
[SwaggerOperation("ChercherAdresse")]
[SwaggerResponse(statusCode: 200, type: typeof(Adresse), description: "résultat de la recherche")]
public virtual IActionResult ChercherAdresse([FromRoute][Required]long? adresseId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(Adresse));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<Adresse>(exampleJson)
: default(Adresse); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher toutes les adresses
/// </summary>
/// <remarks>Cette requette demande de récupérer toutes les adresses existantes </remarks>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas d&#x27;adresse</response>
[HttpGet]
[Route("/adresses")]
[ValidateModelState]
[SwaggerOperation("ChercherAdresses")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Adresse>), description: "résultats de la recherche")]
public virtual IActionResult ChercherAdresses()
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Adresse>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n}, {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Adresse>>(exampleJson)
: default(List<Adresse>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// mettre à jour une adresse
/// </summary>
/// <param name="adresseId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;adresse recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/adresses/{adresseId}")]
[ValidateModelState]
[SwaggerOperation("MajAdresse")]
public virtual IActionResult MajAdresse([FromRoute][Required]long? adresseId, [FromBody]NouvelleAdresse body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour une adresse
/// </summary>
/// <param name="adresseId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;adresse recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/adresses/{adresseId}")]
[ValidateModelState]
[SwaggerOperation("MajAdressepatch")]
public virtual IActionResult MajAdressepatch([FromRoute][Required]long? adresseId, [FromBody]NouvelleAdresse body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,158 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class AgenceApiController : ControllerBase
{
/// <summary>
/// ajout d&#x27;une nouvelle agence
/// </summary>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPost]
[Route("/agences")]
[ValidateModelState]
[SwaggerOperation("AjoutAgence")]
public virtual IActionResult AjoutAgence([FromBody]NouvelleAgence body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// rechercher une adresse
/// </summary>
/// <remarks>rechercher une agence à l&#x27;aide de son identifiant </remarks>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/agences/{agenceId}")]
[ValidateModelState]
[SwaggerOperation("ChercherAgence")]
[SwaggerResponse(statusCode: 200, type: typeof(Agence), description: "résultat de la recherche")]
public virtual IActionResult ChercherAgence([FromRoute][Required]long? agenceId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(Agence));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<Agence>(exampleJson)
: default(Agence); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher toutes les agences
/// </summary>
/// <remarks>Cette requette demande de récupérer toutes les agences existantes </remarks>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas d&#x27;agence</response>
[HttpGet]
[Route("/agences")]
[ValidateModelState]
[SwaggerOperation("ChercherAgences")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Agence>), description: "résultats de la recherche")]
public virtual IActionResult ChercherAgences()
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Agence>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n}, {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Agence>>(exampleJson)
: default(List<Agence>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// mettre à jour une agence
/// </summary>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/agences/{agenceId}")]
[ValidateModelState]
[SwaggerOperation("MajAgence")]
public virtual IActionResult MajAgence([FromRoute][Required]long? agenceId, [FromBody]NouvelleAgence body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour une agence
/// </summary>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/agences/{agenceId}")]
[ValidateModelState]
[SwaggerOperation("MajAgencepatch")]
public virtual IActionResult MajAgencepatch([FromRoute][Required]long? agenceId, [FromBody]NouvelleAgence body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,158 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class BusinessUnitApiController : ControllerBase
{
/// <summary>
/// ajout d&#x27;une nouvelle business-unit
/// </summary>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPost]
[Route("/bus")]
[ValidateModelState]
[SwaggerOperation("AjoutBU")]
public virtual IActionResult AjoutBU([FromBody]NouvelleBU body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// rechercher une business-unit
/// </summary>
/// <remarks>rechercher une business-unit à l&#x27;aide de son identifiant </remarks>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/bus/{buId}")]
[ValidateModelState]
[SwaggerOperation("ChercherBU")]
[SwaggerResponse(statusCode: 200, type: typeof(BU), description: "résultat de la recherche")]
public virtual IActionResult ChercherBU([FromRoute][Required]long? buId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(BU));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<BU>(exampleJson)
: default(BU); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher toutes les business-units
/// </summary>
/// <remarks>Cette requette demande de récupérer toutes les business-units existantes </remarks>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de business-unit</response>
[HttpGet]
[Route("/bus")]
[ValidateModelState]
[SwaggerOperation("ChercherBUs")]
[SwaggerResponse(statusCode: 200, type: typeof(List<BU>), description: "résultats de la recherche")]
public virtual IActionResult ChercherBUs()
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<BU>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n}, {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<BU>>(exampleJson)
: default(List<BU>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// mettre à jour une business-unit
/// </summary>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/bus/{buId}")]
[ValidateModelState]
[SwaggerOperation("MajBU")]
public virtual IActionResult MajBU([FromRoute][Required]long? buId, [FromBody]NouvelleBU body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour une business-unit
/// </summary>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/bus/{buId}")]
[ValidateModelState]
[SwaggerOperation("MajBUpatch")]
public virtual IActionResult MajBUpatch([FromRoute][Required]long? buId, [FromBody]NouvelleBU body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,461 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
using ServeurCollaborateur.IService;
using System.Threading.Tasks;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class CollaborateurApiController : ControllerBase
{
readonly ICollaborateurService collaborateurService;
public CollaborateurApiController(ICollaborateurService _collaborateurService)
{
collaborateurService = _collaborateurService;
}
/// <summary>
/// ajout d&#x27;un nouveau collaborateur
/// </summary>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPost]
[Route("/collaborateurs")]
[ValidateModelState]
[SwaggerOperation("AjoutCollab")]
public virtual IActionResult AjoutCollab([FromBody]NouveauCollaborateur body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// rechercher tous les collaborateurs
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les collaborateurs existant </remarks>
/// <param name="collabsId">Ce paramêtre permet de renseigner la liste des identifiants des collaborateurs recherchés</param>
/// <param name="ancienCollaborateur">Ce paramêtre permet de filtrer les anciens collaborateurs qui ne sont plus chez Apside</param>
/// <param name="roles">Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde.</param>
/// <param name="buIds">Ce paramêtre permet de renseigner la liste des identifiants des BU auxquelles sont rattachés les collaborateur</param>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur</response>
[HttpGet]
[Route("/collaborateurs")]
[ValidateModelState]
[SwaggerOperation("ChercherCollab")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultats de la recherche")]
public virtual IActionResult ChercherCollab([FromQuery]List<Guid?> collabsId, [FromQuery]bool? ancienCollaborateur, [FromQuery]List<string> roles, [FromQuery]List<long?> buIds)
{
IEnumerable<Collaborateur> collaborateurs;
try
{
collaborateurs = collaborateurService.GetCollaborateurs(collabsId, ancienCollaborateur, roles, buIds);
}
catch(Exception e)
{
Console.WriteLine(e.Message);
return StatusCode(400, "Ché plus c'est quoi le problème");
}
return Ok(collaborateurs) ;
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une agence </remarks>
/// <param name="agenceId">Ce paramêtre permet de renseigner l&#x27;identifiant de l&#x27;agence recherchée</param>
/// <param name="roles">Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde.</param>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur</response>
[HttpGet]
[Route("/collaborateurs/agence/{agenceId}")]
[ValidateModelState]
[SwaggerOperation("ChercherCollabAgence")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultats de la recherche")]
public virtual IActionResult ChercherCollabAgence([FromRoute][Required]long? agenceId, [FromQuery]List<string> roles)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Collaborateur>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Collaborateur>>(exampleJson)
: default(List<Collaborateur>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un Business-unit
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les collaborateurs existant au sein d&#x27;une business-unit </remarks>
/// <param name="buId">Ce paramêtre permet de renseigner l&#x27;identifiant de la business-unit recherchée</param>
/// <param name="roles">Ce paramêtre permet de renseigner la liste des rôles des collaborateurs à récupérer. Si elle est vide ou null, on récupère tout le monde.</param>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur</response>
[HttpGet]
[Route("/collaborateurs/bu/{buId}")]
[ValidateModelState]
[SwaggerOperation("ChercherCollabBU")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultats de la recherche")]
public virtual IActionResult ChercherCollabBU([FromRoute][Required]long? buId, [FromQuery]List<string> roles)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Collaborateur>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Collaborateur>>(exampleJson)
: default(List<Collaborateur>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>rechercher un collaborateur à l&#x27;aide de son identifiant </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/collaborateurs/{collabId}")]
[ValidateModelState]
[SwaggerOperation("ChercherCollabId")]
[SwaggerResponse(statusCode: 200, type: typeof(Collaborateur), description: "résultat de la recherche")]
public virtual IActionResult ChercherCollabId([FromRoute][Required]Guid? collabId)
{
Collaborateur collaborateur;
try
{
collaborateur = collaborateurService.GetCollaborateurById(collabId);
}
catch(Exception e)
{
return NotFound("Pas trouvé");
}
return Ok(collaborateur);
}
/// <summary>
/// rechercher un collaborateur
/// </summary>
/// <remarks>rechercher un collaborateur à l&#x27;aide de son mail apside </remarks>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/collaborateurs/mail/{mailApside}")]
[ValidateModelState]
[SwaggerOperation("ChercherCollabMail")]
[SwaggerResponse(statusCode: 200, type: typeof(Collaborateur), description: "résultat de la recherche")]
public virtual IActionResult ChercherCollabMail([FromRoute][Required]string mailApside)
{
Collaborateur collaborateur;
try
{
collaborateur = collaborateurService.GetCollaborateurByMail(mailApside);
}
catch (Exception e)
{
return NotFound("Pas trouvé");
}
return Ok(collaborateur);
}
/// <summary>
/// rechercher tous les collaborateurs d&#x27;un référent
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les collaborateurs d&#x27;un référent </remarks>
/// <param name="refId">Ce paramêtre permet de renseigner l&#x27;identifiant du référent recherché</param>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur</response>
[HttpGet]
[Route("/collaborateurs/referent/{refId}")]
[ValidateModelState]
[SwaggerOperation("ChercherCollabRef")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultats de la recherche")]
public virtual IActionResult ChercherCollabRef([FromRoute][Required]Guid? refId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Collaborateur>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Collaborateur>>(exampleJson)
: default(List<Collaborateur>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher le référent actuel
/// </summary>
/// <remarks>rechercher le référent actuel du collaborateur à l&#x27;aide de son identifiant </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/collaborateurs/{collabId}/referent")]
[ValidateModelState]
[SwaggerOperation("ChercherRefActuelId")]
[SwaggerResponse(statusCode: 200, type: typeof(Collaborateur), description: "résultat de la recherche")]
public virtual IActionResult ChercherRefActuelId([FromRoute][Required]Guid? collabId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(Collaborateur));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<Collaborateur>(exampleJson)
: default(Collaborateur); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher le référent actuel
/// </summary>
/// <remarks>rechercher le référent actuel du collaborateur l&#x27;aide de son mail apside </remarks>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur associé à ce mail</response>
[HttpGet]
[Route("/collaborateurs/{mailApside}/referent")]
[ValidateModelState]
[SwaggerOperation("ChercherRefActuelMail")]
[SwaggerResponse(statusCode: 200, type: typeof(Collaborateur), description: "résultat de la recherche")]
public virtual IActionResult ChercherRefActuelMail([FromRoute][Required]string mailApside)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(Collaborateur));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<Collaborateur>(exampleJson)
: default(Collaborateur); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/collaborateurs/{collabId}/referents")]
[ValidateModelState]
[SwaggerOperation("ChercherRefCollabId")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultat de la recherche")]
public virtual IActionResult ChercherRefCollabId([FromRoute][Required]Guid? collabId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Collaborateur>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Collaborateur>>(exampleJson)
: default(List<Collaborateur>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside </remarks>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de collaborateur associé à ce mail</response>
[HttpGet]
[Route("/collaborateurs/{mailApside}/referents")]
[ValidateModelState]
[SwaggerOperation("ChercherRefCollabMail")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Collaborateur>), description: "résultat de la recherche")]
public virtual IActionResult ChercherRefCollabMail([FromRoute][Required]string mailApside)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Collaborateur>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bus\" : [ null, null ],\n \"id\" : 5,\n \"nom\" : \"nom\"\n },\n \"id\" : 1,\n \"nom\" : \"nom\"\n },\n \"dateNaissance\" : \"2000-01-23\",\n \"mailPerso\" : \"\",\n \"mailApside\" : \"\",\n \"technologiesPref\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"telephone\" : \"telephone\",\n \"dateDepart\" : \"2000-01-23\",\n \"nom\" : \"nom\",\n \"periodeEssai\" : [ {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n }, {\n \"dateDebut\" : \"2000-01-23\",\n \"dateFinPrev\" : \"2000-01-23\",\n \"issuePE\" : \"VALIDEE\",\n \"id\" : 2,\n \"dateFinEffect\" : \"2000-01-23\",\n \"commentaire\" : \"commentaire\"\n } ],\n \"fonctions\" : [ {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n }, {\n \"code\" : \"code\",\n \"intitule\" : \"intitule\"\n } ],\n \"projets\" : [ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n }, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n } ],\n \"genre\" : \"FEMININ\",\n \"adresse\" : {\n \"ville\" : \"ville\",\n \"rue\" : \"rue\",\n \"dateDebut\" : \"2000-01-23\",\n \"id\" : 6,\n \"codePostal\" : \"codePostal\",\n \"dateFin\" : \"2000-01-23\",\n \"pays\" : \"pays\"\n },\n \"dateArrivee\" : \"2000-01-23\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nbEnfants\" : 0,\n \"prenom\" : \"prenom\",\n \"statut\" : \"CADRE\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Collaborateur>>(exampleJson)
: default(List<Collaborateur>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/collaborateurs/{collabId}")]
[ValidateModelState]
[SwaggerOperation("MajCollab")]
public virtual IActionResult MajCollab([FromRoute][Required]Guid? collabId, [FromBody]NouveauCollaborateur body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/collaborateurs/mail/{mailApside}")]
[ValidateModelState]
[SwaggerOperation("MajCollabMail")]
public virtual IActionResult MajCollabMail([FromRoute][Required]string mailApside, [FromBody]NouveauCollaborateur body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/collaborateurs/{collabId}")]
[ValidateModelState]
[SwaggerOperation("MajCollabpatch")]
public virtual IActionResult MajCollabpatch([FromRoute][Required]Guid? collabId, [FromBody]NouveauCollaborateur body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour un collaborateur
/// </summary>
/// <param name="mailApside">Ce paramêtre permet de renseigner le mail apside du collaborateur recherché /!\\ \&quot;@\&quot; doit être changé en \&quot;%40\&quot; /!\\</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/collaborateurs/{mailApside}")]
[ValidateModelState]
[SwaggerOperation("MajCollabpatchMail")]
public virtual IActionResult MajCollabpatchMail([FromRoute][Required]string mailApside, [FromBody]NouveauCollaborateur body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,122 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class PeriodeDessaiApiController : ControllerBase
{
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2 </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/collaborateurs/{collabId}/PremierePeriodeEssai")]
[ValidateModelState]
[SwaggerOperation("Maj1PE")]
public virtual IActionResult Maj1PE([FromRoute][Required]Guid? collabId, [FromBody]NouvellePeriodeEssai body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai
/// </summary>
/// <remarks>La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2 </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/collaborateurs/{collabId}/PremierePeriodeEssai")]
[ValidateModelState]
[SwaggerOperation("Maj1PEPatch")]
public virtual IActionResult Maj1PEPatch([FromRoute][Required]Guid? collabId, [FromBody]NouvellePeriodeEssai body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai
/// </summary>
/// <remarks>La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2 </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/collaborateurs/{collabId}/PeriodeEssai")]
[ValidateModelState]
[SwaggerOperation("MajPE")]
public virtual IActionResult MajPE([FromRoute][Required]Guid? collabId, [FromBody]NouvellePeriodeEssai body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour une péridode d&#x27;essai en cours
/// </summary>
/// <remarks>La différence entre la première et celle en cours est que, si une période d&#x27;essai est prolongee, il y en a techniquement 2 </remarks>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/collaborateurs/{collabId}/PeriodeEssai")]
[ValidateModelState]
[SwaggerOperation("MajPEPatch")]
public virtual IActionResult MajPEPatch([FromRoute][Required]Guid? collabId, [FromBody]NouvellePeriodeEssai body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,190 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using Swashbuckle.AspNetCore.Annotations;
using Swashbuckle.AspNetCore.SwaggerGen;
using Newtonsoft.Json;
using System.ComponentModel.DataAnnotations;
using IO.Swagger.Attributes;
using Microsoft.AspNetCore.Authorization;
using IO.Swagger.Models;
namespace IO.Swagger.Controllers
{
/// <summary>
///
/// </summary>
[ApiController]
public class ProjetApiController : ControllerBase
{
/// <summary>
/// ajout d&#x27;un nouveau projet
/// </summary>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPost]
[Route("/projets")]
[ValidateModelState]
[SwaggerOperation("AjoutProjet")]
public virtual IActionResult AjoutProjet([FromBody]NouveauProjet body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// rechercher un projet
/// </summary>
/// <remarks>rechercher un projet à l&#x27;aide de son identifiant </remarks>
/// <param name="projetId">Ce paramêtre permet de renseigner l&#x27;identifiant du projet recherché</param>
/// <response code="200">résultat de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de d&#x27;objet recherché possédant cet id</response>
[HttpGet]
[Route("/projets/{projetId}")]
[ValidateModelState]
[SwaggerOperation("ChercherProjet")]
[SwaggerResponse(statusCode: 200, type: typeof(Projet), description: "résultat de la recherche")]
public virtual IActionResult ChercherProjet([FromRoute][Required]long? projetId)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(Projet));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "{\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<Projet>(exampleJson)
: default(Projet); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher toutes les projets
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les projets existants </remarks>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de projet</response>
[HttpGet]
[Route("/projets")]
[ValidateModelState]
[SwaggerOperation("ChercherProjets")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Projet>), description: "résultats de la recherche")]
public virtual IActionResult ChercherProjets()
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Projet>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n}, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Projet>>(exampleJson)
: default(List<Projet>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// rechercher tous les projets
/// </summary>
/// <remarks>Cette requette demande de récupérer tous les projets existants </remarks>
/// <param name="nomClient">Ce paramêtre permet de renseigner le nom du client lié au projet</param>
/// <response code="200">résultats de la recherche</response>
/// <response code="400">Mauvais paramètre</response>
/// <response code="404">il n&#x27;y a pas de projet</response>
[HttpGet]
[Route("/projets/{nomClient}")]
[ValidateModelState]
[SwaggerOperation("ChercherProjetsClient")]
[SwaggerResponse(statusCode: 200, type: typeof(List<Projet>), description: "résultats de la recherche")]
public virtual IActionResult ChercherProjetsClient([FromRoute][Required]string nomClient)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(List<Projet>));
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404);
string exampleJson = null;
exampleJson = "[ {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n}, {\n \"debut\" : \"2000-01-23\",\n \"client\" : \"client\",\n \"description\" : \"description\",\n \"fin\" : \"2000-01-23\",\n \"id\" : 5,\n \"nom\" : \"nom\"\n} ]";
var example = exampleJson != null
? JsonConvert.DeserializeObject<List<Projet>>(exampleJson)
: default(List<Projet>); //TODO: Change the data returned
return new ObjectResult(example);
}
/// <summary>
/// mettre à jour un projet
/// </summary>
/// <param name="projetId">Ce paramêtre permet de renseigner l&#x27;identifiant du projet recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPut]
[Route("/projets/{projetId}")]
[ValidateModelState]
[SwaggerOperation("MajProjet")]
public virtual IActionResult MajProjet([FromRoute][Required]long? projetId, [FromBody]NouveauProjet body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
/// <summary>
/// mettre à jour un projet
/// </summary>
/// <param name="projetId">Ce paramêtre permet de renseigner l&#x27;identifiant du projet recherché</param>
/// <param name="body"></param>
/// <response code="200">Opération terminée avec succès</response>
/// <response code="400">Mauvais paramètre</response>
[HttpPatch]
[Route("/projets/{projetId}")]
[ValidateModelState]
[SwaggerOperation("MajProjetpatch")]
public virtual IActionResult MajProjetpatch([FromRoute][Required]long? projetId, [FromBody]NouveauProjet body)
{
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200);
//TODO: Uncomment the next line to return response 400 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(400);
throw new NotImplementedException();
}
}
}

@ -0,0 +1,51 @@
using System.Linq;
using System.Text.RegularExpressions;
using Swashbuckle.AspNetCore.Swagger;
using Swashbuckle.AspNetCore.SwaggerGen;
using Microsoft.OpenApi.Models;
namespace IO.Swagger.Filters
{
/// <summary>
/// BasePath Document Filter sets BasePath property of Swagger and removes it from the individual URL paths
/// </summary>
public class BasePathFilter : IDocumentFilter
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="basePath">BasePath to remove from Operations</param>
public BasePathFilter(string basePath)
{
BasePath = basePath;
}
/// <summary>
/// Gets the BasePath of the Swagger Doc
/// </summary>
/// <returns>The BasePath of the Swagger Doc</returns>
public string BasePath { get; }
/// <summary>
/// Apply the filter
/// </summary>
/// <param name="swaggerDoc">OpenApiDocument</param>
/// <param name="context">FilterContext</param>
public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
{
swaggerDoc.Servers.Add(new OpenApiServer() { Url = this.BasePath });
var pathsToModify = swaggerDoc.Paths.Where(p => p.Key.StartsWith(this.BasePath)).ToList();
foreach (var path in pathsToModify)
{
if (path.Key.StartsWith(this.BasePath))
{
string newKey = Regex.Replace(path.Key, $"^{this.BasePath}", string.Empty);
swaggerDoc.Paths.Remove(path.Key);
swaggerDoc.Paths.Add(newKey, path.Value);
}
}
}
}
}

@ -0,0 +1,96 @@
using System.ComponentModel.DataAnnotations;
using System.Linq;
using Microsoft.AspNetCore.Mvc.Controllers;
using Microsoft.OpenApi.Models;
using Swashbuckle.AspNetCore.SwaggerGen;
namespace IO.Swagger.Filters
{
/// <summary>
/// Path Parameter Validation Rules Filter
/// </summary>
public class GeneratePathParamsValidationFilter : IOperationFilter
{
/// <summary>
/// Constructor
/// </summary>
/// <param name="operation">Operation</param>
/// <param name="context">OperationFilterContext</param>
public void Apply(OpenApiOperation operation, OperationFilterContext context)
{
var pars = context.ApiDescription.ParameterDescriptions;
foreach (var par in pars)
{
var swaggerParam = operation.Parameters.SingleOrDefault(p => p.Name == par.Name);
var attributes = ((ControllerParameterDescriptor)par.ParameterDescriptor).ParameterInfo.CustomAttributes;
if (attributes != null && attributes.Count() > 0 && swaggerParam != null)
{
// Required - [Required]
var requiredAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RequiredAttribute));
if (requiredAttr != null)
{
swaggerParam.Required = true;
}
// Regex Pattern [RegularExpression]
var regexAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RegularExpressionAttribute));
if (regexAttr != null)
{
string regex = (string)regexAttr.ConstructorArguments[0].Value;
if (swaggerParam is OpenApiParameter)
{
((OpenApiParameter)swaggerParam).Schema.Pattern = regex;
}
}
// String Length [StringLength]
int? minLenght = null, maxLength = null;
var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute));
if (stringLengthAttr != null)
{
if (stringLengthAttr.NamedArguments.Count == 1)
{
minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value;
}
maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value;
}
var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute));
if (minLengthAttr != null)
{
minLenght = (int)minLengthAttr.ConstructorArguments[0].Value;
}
var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute));
if (maxLengthAttr != null)
{
maxLength = (int)maxLengthAttr.ConstructorArguments[0].Value;
}
if (swaggerParam is OpenApiParameter)
{
((OpenApiParameter)swaggerParam).Schema.MinLength = minLenght;
((OpenApiParameter)swaggerParam).Schema.MaxLength = maxLength;
}
// Range [Range]
var rangeAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RangeAttribute));
if (rangeAttr != null)
{
int rangeMin = (int)rangeAttr.ConstructorArguments[0].Value;
int rangeMax = (int)rangeAttr.ConstructorArguments[1].Value;
if (swaggerParam is OpenApiParameter)
{
((OpenApiParameter)swaggerParam).Schema.Minimum = rangeMin;
((OpenApiParameter)swaggerParam).Schema.Maximum = rangeMax;
}
}
}
}
}
}
}

@ -0,0 +1,18 @@
using IO.Swagger.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ServeurCollaborateur.IService
{
public interface ICollaborateurService
{
public Collaborateur GetCollaborateurById(Guid? id);
public Collaborateur GetCollaborateurByMail(string mail);
public IEnumerable<Collaborateur> GetCollaborateurs(List<Guid?> collabsId, bool? ancienCollaborateur, List<string> roles, List<long?> buIds);
}
}

@ -0,0 +1,203 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Adresse : IEquatable<Adresse>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id")]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Rue
/// </summary>
[DataMember(Name="rue")]
public string Rue { get; set; }
/// <summary>
/// Gets or Sets Ville
/// </summary>
[DataMember(Name="ville")]
public string Ville { get; set; }
/// <summary>
/// Gets or Sets CodePostal
/// </summary>
[DataMember(Name="codePostal")]
public string CodePostal { get; set; }
/// <summary>
/// Gets or Sets Pays
/// </summary>
[DataMember(Name="pays")]
public string Pays { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut")]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFin
/// </summary>
[DataMember(Name="dateFin")]
public DateTime? DateFin { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Adresse {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Rue: ").Append(Rue).Append("\n");
sb.Append(" Ville: ").Append(Ville).Append("\n");
sb.Append(" CodePostal: ").Append(CodePostal).Append("\n");
sb.Append(" Pays: ").Append(Pays).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFin: ").Append(DateFin).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Adresse)obj);
}
/// <summary>
/// Returns true if Adresse instances are equal
/// </summary>
/// <param name="other">Instance of Adresse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Adresse other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
Rue == other.Rue ||
Rue != null &&
Rue.Equals(other.Rue)
) &&
(
Ville == other.Ville ||
Ville != null &&
Ville.Equals(other.Ville)
) &&
(
CodePostal == other.CodePostal ||
CodePostal != null &&
CodePostal.Equals(other.CodePostal)
) &&
(
Pays == other.Pays ||
Pays != null &&
Pays.Equals(other.Pays)
) &&
(
DateDebut == other.DateDebut ||
DateDebut != null &&
DateDebut.Equals(other.DateDebut)
) &&
(
DateFin == other.DateFin ||
DateFin != null &&
DateFin.Equals(other.DateFin)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (Rue != null)
hashCode = hashCode * 59 + Rue.GetHashCode();
if (Ville != null)
hashCode = hashCode * 59 + Ville.GetHashCode();
if (CodePostal != null)
hashCode = hashCode * 59 + CodePostal.GetHashCode();
if (Pays != null)
hashCode = hashCode * 59 + Pays.GetHashCode();
if (DateDebut != null)
hashCode = hashCode * 59 + DateDebut.GetHashCode();
if (DateFin != null)
hashCode = hashCode * 59 + DateFin.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Adresse left, Adresse right)
{
return Equals(left, right);
}
public static bool operator !=(Adresse left, Adresse right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,147 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Agence : IEquatable<Agence>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id")]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Bus
/// </summary>
[DataMember(Name="bus")]
public List<BU> Bus { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Agence {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Bus: ").Append(Bus).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Agence)obj);
}
/// <summary>
/// Returns true if Agence instances are equal
/// </summary>
/// <param name="other">Instance of Agence to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Agence other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Bus == other.Bus ||
Bus != null &&
Bus.SequenceEqual(other.Bus)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Bus != null)
hashCode = hashCode * 59 + Bus.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Agence left, Agence right)
{
return Equals(left, right);
}
public static bool operator !=(Agence left, Agence right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,147 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class BU : IEquatable<BU>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id")]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Agence
/// </summary>
[DataMember(Name="agence")]
public Agence Agence { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class BU {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Agence: ").Append(Agence).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((BU)obj);
}
/// <summary>
/// Returns true if BU instances are equal
/// </summary>
/// <param name="other">Instance of BU to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(BU other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Agence == other.Agence ||
Agence != null &&
Agence.Equals(other.Agence)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Agence != null)
hashCode = hashCode * 59 + Agence.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(BU left, BU right)
{
return Equals(left, right);
}
public static bool operator !=(BU left, BU right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,388 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Collaborateur : IEquatable<Collaborateur>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[Required]
[DataMember(Name="id")]
public Guid? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[Required]
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Prenom
/// </summary>
[Required]
[DataMember(Name="prenom")]
public string Prenom { get; set; }
/// <summary>
/// Gets or Sets Genre
/// </summary>
[DataMember(Name="genre")]
public Genre Genre { get; set; }
/// <summary>
/// Gets or Sets DateNaissance
/// </summary>
[DataMember(Name="dateNaissance")]
public DateTime? DateNaissance { get; set; }
/// <summary>
/// Gets or Sets NbEnfants
/// </summary>
[DataMember(Name="nbEnfants")]
public int? NbEnfants { get; set; }
/// <summary>
/// Gets or Sets Adresse
/// </summary>
[DataMember(Name="adresse")]
public Adresse Adresse { get; set; }
/// <summary>
/// Gets or Sets Telephone
/// </summary>
[DataMember(Name="telephone")]
public string Telephone { get; set; }
/// <summary>
/// Gets or Sets MailPerso
/// </summary>
[DataMember(Name="mailPerso")]
public string MailPerso { get; set; }
/// <summary>
/// Gets or Sets MailApside
/// </summary>
[DataMember(Name="mailApside")]
public string MailApside { get; set; }
/// <summary>
/// Gets or Sets Statut
/// </summary>
[DataMember(Name="statut")]
public Statut Statut { get; set; }
/// <summary>
/// Gets or Sets Fonctions
/// </summary>
[DataMember(Name="fonctions")]
public List<Fonction> Fonctions { get; set; }
/// <summary>
/// Gets or Sets BusinessUnit
/// </summary>
[DataMember(Name="businessUnit")]
public BU BusinessUnit { get; set; }
/// <summary>
/// Gets or Sets Referent
/// </summary>
[DataMember(Name="referent")]
public Collaborateur Referent { get; set; }
/// <summary>
/// Gets or Sets Parrain
/// </summary>
[DataMember(Name="parrain")]
public Collaborateur Parrain { get; set; }
/// <summary>
/// Gets or Sets Projets
/// </summary>
[DataMember(Name="projets")]
public List<Projet> Projets { get; set; }
/// <summary>
/// Gets or Sets TechnologiesPref
/// </summary>
[DataMember(Name="technologiesPref")]
public List<Technologie> TechnologiesPref { get; set; }
/// <summary>
/// Gets or Sets PeriodeEssai
/// </summary>
[DataMember(Name="periodeEssai")]
public List<PeriodeEssai> PeriodeEssai { get; set; }
/// <summary>
/// Gets or Sets DateArrivee
/// </summary>
[DataMember(Name="dateArrivee")]
public DateTime? DateArrivee { get; set; }
/// <summary>
/// Gets or Sets DateDepart
/// </summary>
[DataMember(Name="dateDepart")]
public DateTime? DateDepart { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Collaborateur {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" Genre: ").Append(Genre).Append("\n");
sb.Append(" DateNaissance: ").Append(DateNaissance).Append("\n");
sb.Append(" NbEnfants: ").Append(NbEnfants).Append("\n");
sb.Append(" Adresse: ").Append(Adresse).Append("\n");
sb.Append(" Telephone: ").Append(Telephone).Append("\n");
sb.Append(" MailPerso: ").Append(MailPerso).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).Append("\n");
sb.Append(" Statut: ").Append(Statut).Append("\n");
sb.Append(" Fonctions: ").Append(Fonctions).Append("\n");
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
sb.Append(" Referent: ").Append(Referent).Append("\n");
sb.Append(" Parrain: ").Append(Parrain).Append("\n");
sb.Append(" Projets: ").Append(Projets).Append("\n");
sb.Append(" TechnologiesPref: ").Append(TechnologiesPref).Append("\n");
sb.Append(" PeriodeEssai: ").Append(PeriodeEssai).Append("\n");
sb.Append(" DateArrivee: ").Append(DateArrivee).Append("\n");
sb.Append(" DateDepart: ").Append(DateDepart).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Collaborateur)obj);
}
/// <summary>
/// Returns true if Collaborateur instances are equal
/// </summary>
/// <param name="other">Instance of Collaborateur to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Collaborateur other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Prenom == other.Prenom ||
Prenom != null &&
Prenom.Equals(other.Prenom)
) &&
(
Genre == other.Genre ||
Genre != null &&
Genre.Equals(other.Genre)
) &&
(
DateNaissance == other.DateNaissance ||
DateNaissance != null &&
DateNaissance.Equals(other.DateNaissance)
) &&
(
NbEnfants == other.NbEnfants ||
NbEnfants != null &&
NbEnfants.Equals(other.NbEnfants)
) &&
(
Adresse == other.Adresse ||
Adresse != null &&
Adresse.Equals(other.Adresse)
) &&
(
Telephone == other.Telephone ||
Telephone != null &&
Telephone.Equals(other.Telephone)
) &&
(
MailPerso == other.MailPerso ||
MailPerso != null &&
MailPerso.Equals(other.MailPerso)
) &&
(
MailApside == other.MailApside ||
MailApside != null &&
MailApside.Equals(other.MailApside)
) &&
(
Statut == other.Statut ||
Statut != null &&
Statut.Equals(other.Statut)
) &&
(
Fonctions == other.Fonctions ||
Fonctions != null &&
Fonctions.SequenceEqual(other.Fonctions)
) &&
(
BusinessUnit == other.BusinessUnit ||
BusinessUnit != null &&
BusinessUnit.Equals(other.BusinessUnit)
) &&
(
Referent == other.Referent ||
Referent != null &&
Referent.Equals(other.Referent)
) &&
(
Parrain == other.Parrain ||
Parrain != null &&
Parrain.Equals(other.Parrain)
) &&
(
Projets == other.Projets ||
Projets != null &&
Projets.SequenceEqual(other.Projets)
) &&
(
TechnologiesPref == other.TechnologiesPref ||
TechnologiesPref != null &&
TechnologiesPref.SequenceEqual(other.TechnologiesPref)
) &&
(
PeriodeEssai == other.PeriodeEssai ||
PeriodeEssai != null &&
PeriodeEssai.SequenceEqual(other.PeriodeEssai)
) &&
(
DateArrivee == other.DateArrivee ||
DateArrivee != null &&
DateArrivee.Equals(other.DateArrivee)
) &&
(
DateDepart == other.DateDepart ||
DateDepart != null &&
DateDepart.Equals(other.DateDepart)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Prenom != null)
hashCode = hashCode * 59 + Prenom.GetHashCode();
if (Genre != null)
hashCode = hashCode * 59 + Genre.GetHashCode();
if (DateNaissance != null)
hashCode = hashCode * 59 + DateNaissance.GetHashCode();
if (NbEnfants != null)
hashCode = hashCode * 59 + NbEnfants.GetHashCode();
if (Adresse != null)
hashCode = hashCode * 59 + Adresse.GetHashCode();
if (Telephone != null)
hashCode = hashCode * 59 + Telephone.GetHashCode();
if (MailPerso != null)
hashCode = hashCode * 59 + MailPerso.GetHashCode();
if (MailApside != null)
hashCode = hashCode * 59 + MailApside.GetHashCode();
if (Statut != null)
hashCode = hashCode * 59 + Statut.GetHashCode();
if (Fonctions != null)
hashCode = hashCode * 59 + Fonctions.GetHashCode();
if (BusinessUnit != null)
hashCode = hashCode * 59 + BusinessUnit.GetHashCode();
if (Referent != null)
hashCode = hashCode * 59 + Referent.GetHashCode();
if (Parrain != null)
hashCode = hashCode * 59 + Parrain.GetHashCode();
if (Projets != null)
hashCode = hashCode * 59 + Projets.GetHashCode();
if (TechnologiesPref != null)
hashCode = hashCode * 59 + TechnologiesPref.GetHashCode();
if (PeriodeEssai != null)
hashCode = hashCode * 59 + PeriodeEssai.GetHashCode();
if (DateArrivee != null)
hashCode = hashCode * 59 + DateArrivee.GetHashCode();
if (DateDepart != null)
hashCode = hashCode * 59 + DateDepart.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Collaborateur left, Collaborateur right)
{
return Equals(left, right);
}
public static bool operator !=(Collaborateur left, Collaborateur right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,133 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Fonction : IEquatable<Fonction>
{
/// <summary>
/// Gets or Sets Code
/// </summary>
[DataMember(Name="code")]
public string Code { get; set; }
/// <summary>
/// Gets or Sets Intitule
/// </summary>
[DataMember(Name="intitule")]
public string Intitule { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Fonction {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Intitule: ").Append(Intitule).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Fonction)obj);
}
/// <summary>
/// Returns true if Fonction instances are equal
/// </summary>
/// <param name="other">Instance of Fonction to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Fonction other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Code == other.Code ||
Code != null &&
Code.Equals(other.Code)
) &&
(
Intitule == other.Intitule ||
Intitule != null &&
Intitule.Equals(other.Intitule)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Code != null)
hashCode = hashCode * 59 + Code.GetHashCode();
if (Intitule != null)
hashCode = hashCode * 59 + Intitule.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Fonction left, Fonction right)
{
return Equals(left, right);
}
public static bool operator !=(Fonction left, Fonction right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,44 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
/// Gets or Sets Genre
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum Genre
{
/// <summary>
/// Enum FEMININEnum for FEMININ
/// </summary>
[EnumMember(Value = "FEMININ")]
FEMININEnum = 0,
/// <summary>
/// Enum MASCULINEnum for MASCULIN
/// </summary>
[EnumMember(Value = "MASCULIN")]
MASCULINEnum = 1,
/// <summary>
/// Enum NEUTREEnum for NEUTRE
/// </summary>
[EnumMember(Value = "NEUTRE")]
NEUTREEnum = 2 }
}

@ -0,0 +1,54 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
/// Gets or Sets IssuePE
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum IssuePE
{
/// <summary>
/// Enum VALIDEEEnum for VALIDEE
/// </summary>
[EnumMember(Value = "VALIDEE")]
VALIDEEEnum = 0,
/// <summary>
/// Enum PROLONGEECOLLABEnum for PROLONGEE_COLLAB
/// </summary>
[EnumMember(Value = "PROLONGEE_COLLAB")]
PROLONGEECOLLABEnum = 1,
/// <summary>
/// Enum PROLONGEEAPSIDEEnum for PROLONGEE_APSIDE
/// </summary>
[EnumMember(Value = "PROLONGEE_APSIDE")]
PROLONGEEAPSIDEEnum = 2,
/// <summary>
/// Enum ARRETEECOLLABEnum for ARRETEE_COLLAB
/// </summary>
[EnumMember(Value = "ARRETEE_COLLAB")]
ARRETEECOLLABEnum = 3,
/// <summary>
/// Enum ARRETEEAPSIDEEnum for ARRETEE_APSIDE
/// </summary>
[EnumMember(Value = "ARRETEE_APSIDE")]
ARRETEEAPSIDEEnum = 4 }
}

@ -0,0 +1,392 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouveauCollaborateur : IEquatable<NouveauCollaborateur>
{
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Prenom
/// </summary>
[DataMember(Name="prenom")]
public string Prenom { get; set; }
/// <summary>
/// Gets or Sets Genre
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum GenreEnum
{
/// <summary>
/// Enum FEMININEnum for FEMININ
/// </summary>
[EnumMember(Value = "FEMININ")]
FEMININEnum = 0,
/// <summary>
/// Enum MASCULINEnum for MASCULIN
/// </summary>
[EnumMember(Value = "MASCULIN")]
MASCULINEnum = 1,
/// <summary>
/// Enum NEUTREEnum for NEUTRE
/// </summary>
[EnumMember(Value = "NEUTRE")]
NEUTREEnum = 2 }
/// <summary>
/// Gets or Sets Genre
/// </summary>
[DataMember(Name="genre")]
public GenreEnum? Genre { get; set; }
/// <summary>
/// Gets or Sets DateNaissance
/// </summary>
[DataMember(Name="dateNaissance")]
public DateTime? DateNaissance { get; set; }
/// <summary>
/// Gets or Sets NbEnfants
/// </summary>
[DataMember(Name="nbEnfants")]
public int? NbEnfants { get; set; }
/// <summary>
/// Gets or Sets Adresse
/// </summary>
[DataMember(Name="adresse")]
public string Adresse { get; set; }
/// <summary>
/// Gets or Sets AdresseId
/// </summary>
[DataMember(Name="adresseId")]
public long? AdresseId { get; set; }
/// <summary>
/// Gets or Sets Telephone
/// </summary>
[DataMember(Name="telephone")]
public string Telephone { get; set; }
/// <summary>
/// Gets or Sets MailPerso
/// </summary>
[DataMember(Name="mailPerso")]
public string MailPerso { get; set; }
/// <summary>
/// Gets or Sets MailApside
/// </summary>
[DataMember(Name="mailApside")]
public string MailApside { get; set; }
/// <summary>
/// Gets or Sets Statut
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum StatutEnum
{
/// <summary>
/// Enum CADREEnum for CADRE
/// </summary>
[EnumMember(Value = "CADRE")]
CADREEnum = 0,
/// <summary>
/// Enum NONCADREEnum for NON-CADRE
/// </summary>
[EnumMember(Value = "NON-CADRE")]
NONCADREEnum = 1,
/// <summary>
/// Enum ALTERNANTEnum for ALTERNANT
/// </summary>
[EnumMember(Value = "ALTERNANT")]
ALTERNANTEnum = 2,
/// <summary>
/// Enum STAGIAIREEnum for STAGIAIRE
/// </summary>
[EnumMember(Value = "STAGIAIRE")]
STAGIAIREEnum = 3 }
/// <summary>
/// Gets or Sets Statut
/// </summary>
[DataMember(Name="statut")]
public StatutEnum? Statut { get; set; }
/// <summary>
/// Gets or Sets Fonctions
/// </summary>
[DataMember(Name="fonctions")]
public string Fonctions { get; set; }
/// <summary>
/// Gets or Sets BusinessUnit
/// </summary>
[DataMember(Name="businessUnit")]
public long? BusinessUnit { get; set; }
/// <summary>
/// Gets or Sets Parrain
/// </summary>
[DataMember(Name="parrain")]
public long? Parrain { get; set; }
/// <summary>
/// Gets or Sets TechnologiesPref
/// </summary>
[DataMember(Name="technologiesPref")]
public List<string> TechnologiesPref { get; set; }
/// <summary>
/// Gets or Sets DateDebutPE
/// </summary>
[DataMember(Name="dateDebutPE")]
public DateTime? DateDebutPE { get; set; }
/// <summary>
/// Gets or Sets DateFinPE
/// </summary>
[DataMember(Name="dateFinPE")]
public DateTime? DateFinPE { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouveauCollaborateur {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" Genre: ").Append(Genre).Append("\n");
sb.Append(" DateNaissance: ").Append(DateNaissance).Append("\n");
sb.Append(" NbEnfants: ").Append(NbEnfants).Append("\n");
sb.Append(" Adresse: ").Append(Adresse).Append("\n");
sb.Append(" AdresseId: ").Append(AdresseId).Append("\n");
sb.Append(" Telephone: ").Append(Telephone).Append("\n");
sb.Append(" MailPerso: ").Append(MailPerso).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).Append("\n");
sb.Append(" Statut: ").Append(Statut).Append("\n");
sb.Append(" Fonctions: ").Append(Fonctions).Append("\n");
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
sb.Append(" Parrain: ").Append(Parrain).Append("\n");
sb.Append(" TechnologiesPref: ").Append(TechnologiesPref).Append("\n");
sb.Append(" DateDebutPE: ").Append(DateDebutPE).Append("\n");
sb.Append(" DateFinPE: ").Append(DateFinPE).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouveauCollaborateur)obj);
}
/// <summary>
/// Returns true if NouveauCollaborateur instances are equal
/// </summary>
/// <param name="other">Instance of NouveauCollaborateur to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouveauCollaborateur other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Prenom == other.Prenom ||
Prenom != null &&
Prenom.Equals(other.Prenom)
) &&
(
Genre == other.Genre ||
Genre != null &&
Genre.Equals(other.Genre)
) &&
(
DateNaissance == other.DateNaissance ||
DateNaissance != null &&
DateNaissance.Equals(other.DateNaissance)
) &&
(
NbEnfants == other.NbEnfants ||
NbEnfants != null &&
NbEnfants.Equals(other.NbEnfants)
) &&
(
Adresse == other.Adresse ||
Adresse != null &&
Adresse.Equals(other.Adresse)
) &&
(
AdresseId == other.AdresseId ||
AdresseId != null &&
AdresseId.Equals(other.AdresseId)
) &&
(
Telephone == other.Telephone ||
Telephone != null &&
Telephone.Equals(other.Telephone)
) &&
(
MailPerso == other.MailPerso ||
MailPerso != null &&
MailPerso.Equals(other.MailPerso)
) &&
(
MailApside == other.MailApside ||
MailApside != null &&
MailApside.Equals(other.MailApside)
) &&
(
Statut == other.Statut ||
Statut != null &&
Statut.Equals(other.Statut)
) &&
(
Fonctions == other.Fonctions ||
Fonctions != null &&
Fonctions.Equals(other.Fonctions)
) &&
(
BusinessUnit == other.BusinessUnit ||
BusinessUnit != null &&
BusinessUnit.Equals(other.BusinessUnit)
) &&
(
Parrain == other.Parrain ||
Parrain != null &&
Parrain.Equals(other.Parrain)
) &&
(
TechnologiesPref == other.TechnologiesPref ||
TechnologiesPref != null &&
TechnologiesPref.SequenceEqual(other.TechnologiesPref)
) &&
(
DateDebutPE == other.DateDebutPE ||
DateDebutPE != null &&
DateDebutPE.Equals(other.DateDebutPE)
) &&
(
DateFinPE == other.DateFinPE ||
DateFinPE != null &&
DateFinPE.Equals(other.DateFinPE)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Prenom != null)
hashCode = hashCode * 59 + Prenom.GetHashCode();
if (Genre != null)
hashCode = hashCode * 59 + Genre.GetHashCode();
if (DateNaissance != null)
hashCode = hashCode * 59 + DateNaissance.GetHashCode();
if (NbEnfants != null)
hashCode = hashCode * 59 + NbEnfants.GetHashCode();
if (Adresse != null)
hashCode = hashCode * 59 + Adresse.GetHashCode();
if (AdresseId != null)
hashCode = hashCode * 59 + AdresseId.GetHashCode();
if (Telephone != null)
hashCode = hashCode * 59 + Telephone.GetHashCode();
if (MailPerso != null)
hashCode = hashCode * 59 + MailPerso.GetHashCode();
if (MailApside != null)
hashCode = hashCode * 59 + MailApside.GetHashCode();
if (Statut != null)
hashCode = hashCode * 59 + Statut.GetHashCode();
if (Fonctions != null)
hashCode = hashCode * 59 + Fonctions.GetHashCode();
if (BusinessUnit != null)
hashCode = hashCode * 59 + BusinessUnit.GetHashCode();
if (Parrain != null)
hashCode = hashCode * 59 + Parrain.GetHashCode();
if (TechnologiesPref != null)
hashCode = hashCode * 59 + TechnologiesPref.GetHashCode();
if (DateDebutPE != null)
hashCode = hashCode * 59 + DateDebutPE.GetHashCode();
if (DateFinPE != null)
hashCode = hashCode * 59 + DateFinPE.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouveauCollaborateur left, NouveauCollaborateur right)
{
return Equals(left, right);
}
public static bool operator !=(NouveauCollaborateur left, NouveauCollaborateur right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,175 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouveauProjet : IEquatable<NouveauProjet>
{
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Client
/// </summary>
[DataMember(Name="client")]
public string Client { get; set; }
/// <summary>
/// Gets or Sets Debut
/// </summary>
[DataMember(Name="debut")]
public DateTime? Debut { get; set; }
/// <summary>
/// Gets or Sets Fin
/// </summary>
[DataMember(Name="fin")]
public DateTime? Fin { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name="description")]
public string Description { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouveauProjet {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Client: ").Append(Client).Append("\n");
sb.Append(" Debut: ").Append(Debut).Append("\n");
sb.Append(" Fin: ").Append(Fin).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouveauProjet)obj);
}
/// <summary>
/// Returns true if NouveauProjet instances are equal
/// </summary>
/// <param name="other">Instance of NouveauProjet to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouveauProjet other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Client == other.Client ||
Client != null &&
Client.Equals(other.Client)
) &&
(
Debut == other.Debut ||
Debut != null &&
Debut.Equals(other.Debut)
) &&
(
Fin == other.Fin ||
Fin != null &&
Fin.Equals(other.Fin)
) &&
(
Description == other.Description ||
Description != null &&
Description.Equals(other.Description)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Client != null)
hashCode = hashCode * 59 + Client.GetHashCode();
if (Debut != null)
hashCode = hashCode * 59 + Debut.GetHashCode();
if (Fin != null)
hashCode = hashCode * 59 + Fin.GetHashCode();
if (Description != null)
hashCode = hashCode * 59 + Description.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouveauProjet left, NouveauProjet right)
{
return Equals(left, right);
}
public static bool operator !=(NouveauProjet left, NouveauProjet right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,189 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouvelleAdresse : IEquatable<NouvelleAdresse>
{
/// <summary>
/// Gets or Sets Rue
/// </summary>
[DataMember(Name="rue")]
public string Rue { get; set; }
/// <summary>
/// Gets or Sets Ville
/// </summary>
[DataMember(Name="ville")]
public string Ville { get; set; }
/// <summary>
/// Gets or Sets CodePostal
/// </summary>
[DataMember(Name="codePostal")]
public string CodePostal { get; set; }
/// <summary>
/// Gets or Sets Pays
/// </summary>
[DataMember(Name="pays")]
public string Pays { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut")]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFin
/// </summary>
[DataMember(Name="dateFin")]
public DateTime? DateFin { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouvelleAdresse {\n");
sb.Append(" Rue: ").Append(Rue).Append("\n");
sb.Append(" Ville: ").Append(Ville).Append("\n");
sb.Append(" CodePostal: ").Append(CodePostal).Append("\n");
sb.Append(" Pays: ").Append(Pays).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFin: ").Append(DateFin).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouvelleAdresse)obj);
}
/// <summary>
/// Returns true if NouvelleAdresse instances are equal
/// </summary>
/// <param name="other">Instance of NouvelleAdresse to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleAdresse other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Rue == other.Rue ||
Rue != null &&
Rue.Equals(other.Rue)
) &&
(
Ville == other.Ville ||
Ville != null &&
Ville.Equals(other.Ville)
) &&
(
CodePostal == other.CodePostal ||
CodePostal != null &&
CodePostal.Equals(other.CodePostal)
) &&
(
Pays == other.Pays ||
Pays != null &&
Pays.Equals(other.Pays)
) &&
(
DateDebut == other.DateDebut ||
DateDebut != null &&
DateDebut.Equals(other.DateDebut)
) &&
(
DateFin == other.DateFin ||
DateFin != null &&
DateFin.Equals(other.DateFin)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Rue != null)
hashCode = hashCode * 59 + Rue.GetHashCode();
if (Ville != null)
hashCode = hashCode * 59 + Ville.GetHashCode();
if (CodePostal != null)
hashCode = hashCode * 59 + CodePostal.GetHashCode();
if (Pays != null)
hashCode = hashCode * 59 + Pays.GetHashCode();
if (DateDebut != null)
hashCode = hashCode * 59 + DateDebut.GetHashCode();
if (DateFin != null)
hashCode = hashCode * 59 + DateFin.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouvelleAdresse left, NouvelleAdresse right)
{
return Equals(left, right);
}
public static bool operator !=(NouvelleAdresse left, NouvelleAdresse right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,133 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouvelleAgence : IEquatable<NouvelleAgence>
{
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Bus
/// </summary>
[DataMember(Name="bus")]
public List<BU> Bus { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouvelleAgence {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Bus: ").Append(Bus).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouvelleAgence)obj);
}
/// <summary>
/// Returns true if NouvelleAgence instances are equal
/// </summary>
/// <param name="other">Instance of NouvelleAgence to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleAgence other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Bus == other.Bus ||
Bus != null &&
Bus.SequenceEqual(other.Bus)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Bus != null)
hashCode = hashCode * 59 + Bus.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouvelleAgence left, NouvelleAgence right)
{
return Equals(left, right);
}
public static bool operator !=(NouvelleAgence left, NouvelleAgence right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,133 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouvelleBU : IEquatable<NouvelleBU>
{
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Agence
/// </summary>
[DataMember(Name="agence")]
public Agence Agence { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouvelleBU {\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Agence: ").Append(Agence).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouvelleBU)obj);
}
/// <summary>
/// Returns true if NouvelleBU instances are equal
/// </summary>
/// <param name="other">Instance of NouvelleBU to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvelleBU other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Agence == other.Agence ||
Agence != null &&
Agence.Equals(other.Agence)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Agence != null)
hashCode = hashCode * 59 + Agence.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouvelleBU left, NouvelleBU right)
{
return Equals(left, right);
}
public static bool operator !=(NouvelleBU left, NouvelleBU right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,175 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class NouvellePeriodeEssai : IEquatable<NouvellePeriodeEssai>
{
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut")]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFinPrev
/// </summary>
[DataMember(Name="dateFinPrev")]
public DateTime? DateFinPrev { get; set; }
/// <summary>
/// Gets or Sets DateFinEffect
/// </summary>
[DataMember(Name="dateFinEffect")]
public DateTime? DateFinEffect { get; set; }
/// <summary>
/// Gets or Sets Commentaire
/// </summary>
[DataMember(Name="commentaire")]
public string Commentaire { get; set; }
/// <summary>
/// Gets or Sets IssuePE
/// </summary>
[DataMember(Name="issuePE")]
public IssuePE IssuePE { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class NouvellePeriodeEssai {\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFinPrev: ").Append(DateFinPrev).Append("\n");
sb.Append(" DateFinEffect: ").Append(DateFinEffect).Append("\n");
sb.Append(" Commentaire: ").Append(Commentaire).Append("\n");
sb.Append(" IssuePE: ").Append(IssuePE).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((NouvellePeriodeEssai)obj);
}
/// <summary>
/// Returns true if NouvellePeriodeEssai instances are equal
/// </summary>
/// <param name="other">Instance of NouvellePeriodeEssai to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(NouvellePeriodeEssai other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
DateDebut == other.DateDebut ||
DateDebut != null &&
DateDebut.Equals(other.DateDebut)
) &&
(
DateFinPrev == other.DateFinPrev ||
DateFinPrev != null &&
DateFinPrev.Equals(other.DateFinPrev)
) &&
(
DateFinEffect == other.DateFinEffect ||
DateFinEffect != null &&
DateFinEffect.Equals(other.DateFinEffect)
) &&
(
Commentaire == other.Commentaire ||
Commentaire != null &&
Commentaire.Equals(other.Commentaire)
) &&
(
IssuePE == other.IssuePE ||
IssuePE != null &&
IssuePE.Equals(other.IssuePE)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (DateDebut != null)
hashCode = hashCode * 59 + DateDebut.GetHashCode();
if (DateFinPrev != null)
hashCode = hashCode * 59 + DateFinPrev.GetHashCode();
if (DateFinEffect != null)
hashCode = hashCode * 59 + DateFinEffect.GetHashCode();
if (Commentaire != null)
hashCode = hashCode * 59 + Commentaire.GetHashCode();
if (IssuePE != null)
hashCode = hashCode * 59 + IssuePE.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(NouvellePeriodeEssai left, NouvellePeriodeEssai right)
{
return Equals(left, right);
}
public static bool operator !=(NouvellePeriodeEssai left, NouvellePeriodeEssai right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,189 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class PeriodeEssai : IEquatable<PeriodeEssai>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id")]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut")]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFinPrev
/// </summary>
[DataMember(Name="dateFinPrev")]
public DateTime? DateFinPrev { get; set; }
/// <summary>
/// Gets or Sets DateFinEffect
/// </summary>
[DataMember(Name="dateFinEffect")]
public DateTime? DateFinEffect { get; set; }
/// <summary>
/// Gets or Sets Commentaire
/// </summary>
[DataMember(Name="commentaire")]
public string Commentaire { get; set; }
/// <summary>
/// Gets or Sets IssuePE
/// </summary>
[DataMember(Name="issuePE")]
public IssuePE IssuePE { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class PeriodeEssai {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
sb.Append(" DateFinPrev: ").Append(DateFinPrev).Append("\n");
sb.Append(" DateFinEffect: ").Append(DateFinEffect).Append("\n");
sb.Append(" Commentaire: ").Append(Commentaire).Append("\n");
sb.Append(" IssuePE: ").Append(IssuePE).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((PeriodeEssai)obj);
}
/// <summary>
/// Returns true if PeriodeEssai instances are equal
/// </summary>
/// <param name="other">Instance of PeriodeEssai to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(PeriodeEssai other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
DateDebut == other.DateDebut ||
DateDebut != null &&
DateDebut.Equals(other.DateDebut)
) &&
(
DateFinPrev == other.DateFinPrev ||
DateFinPrev != null &&
DateFinPrev.Equals(other.DateFinPrev)
) &&
(
DateFinEffect == other.DateFinEffect ||
DateFinEffect != null &&
DateFinEffect.Equals(other.DateFinEffect)
) &&
(
Commentaire == other.Commentaire ||
Commentaire != null &&
Commentaire.Equals(other.Commentaire)
) &&
(
IssuePE == other.IssuePE ||
IssuePE != null &&
IssuePE.Equals(other.IssuePE)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (DateDebut != null)
hashCode = hashCode * 59 + DateDebut.GetHashCode();
if (DateFinPrev != null)
hashCode = hashCode * 59 + DateFinPrev.GetHashCode();
if (DateFinEffect != null)
hashCode = hashCode * 59 + DateFinEffect.GetHashCode();
if (Commentaire != null)
hashCode = hashCode * 59 + Commentaire.GetHashCode();
if (IssuePE != null)
hashCode = hashCode * 59 + IssuePE.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(PeriodeEssai left, PeriodeEssai right)
{
return Equals(left, right);
}
public static bool operator !=(PeriodeEssai left, PeriodeEssai right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,189 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Projet : IEquatable<Projet>
{
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id")]
public long? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom")]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Client
/// </summary>
[DataMember(Name="client")]
public string Client { get; set; }
/// <summary>
/// Gets or Sets Debut
/// </summary>
[DataMember(Name="debut")]
public DateTime? Debut { get; set; }
/// <summary>
/// Gets or Sets Fin
/// </summary>
[DataMember(Name="fin")]
public DateTime? Fin { get; set; }
/// <summary>
/// Gets or Sets Description
/// </summary>
[DataMember(Name="description")]
public string Description { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Projet {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Client: ").Append(Client).Append("\n");
sb.Append(" Debut: ").Append(Debut).Append("\n");
sb.Append(" Fin: ").Append(Fin).Append("\n");
sb.Append(" Description: ").Append(Description).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Projet)obj);
}
/// <summary>
/// Returns true if Projet instances are equal
/// </summary>
/// <param name="other">Instance of Projet to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Projet other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Id == other.Id ||
Id != null &&
Id.Equals(other.Id)
) &&
(
Nom == other.Nom ||
Nom != null &&
Nom.Equals(other.Nom)
) &&
(
Client == other.Client ||
Client != null &&
Client.Equals(other.Client)
) &&
(
Debut == other.Debut ||
Debut != null &&
Debut.Equals(other.Debut)
) &&
(
Fin == other.Fin ||
Fin != null &&
Fin.Equals(other.Fin)
) &&
(
Description == other.Description ||
Description != null &&
Description.Equals(other.Description)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Id != null)
hashCode = hashCode * 59 + Id.GetHashCode();
if (Nom != null)
hashCode = hashCode * 59 + Nom.GetHashCode();
if (Client != null)
hashCode = hashCode * 59 + Client.GetHashCode();
if (Debut != null)
hashCode = hashCode * 59 + Debut.GetHashCode();
if (Fin != null)
hashCode = hashCode * 59 + Fin.GetHashCode();
if (Description != null)
hashCode = hashCode * 59 + Description.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Projet left, Projet right)
{
return Equals(left, right);
}
public static bool operator !=(Projet left, Projet right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,49 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
/// Gets or Sets Statut
/// </summary>
[JsonConverter(typeof(Newtonsoft.Json.Converters.StringEnumConverter))]
public enum Statut
{
/// <summary>
/// Enum CADREEnum for CADRE
/// </summary>
[EnumMember(Value = "CADRE")]
CADREEnum = 0,
/// <summary>
/// Enum NONCADREEnum for NON-CADRE
/// </summary>
[EnumMember(Value = "NON-CADRE")]
NONCADREEnum = 1,
/// <summary>
/// Enum ALTERNANTEnum for ALTERNANT
/// </summary>
[EnumMember(Value = "ALTERNANT")]
ALTERNANTEnum = 2,
/// <summary>
/// Enum STAGIAIREEnum for STAGIAIRE
/// </summary>
[EnumMember(Value = "STAGIAIRE")]
STAGIAIREEnum = 3 }
}

@ -0,0 +1,133 @@
/*
* Service Collaborateur API
*
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
*
* OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Linq;
using System.IO;
using System.Text;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;
using Newtonsoft.Json;
namespace IO.Swagger.Models
{
/// <summary>
///
/// </summary>
[DataContract]
public partial class Technologie : IEquatable<Technologie>
{
/// <summary>
/// Gets or Sets Code
/// </summary>
[DataMember(Name="code")]
public string Code { get; set; }
/// <summary>
/// Gets or Sets Intitule
/// </summary>
[DataMember(Name="intitule")]
public string Intitule { get; set; }
/// <summary>
/// Returns the string presentation of the object
/// </summary>
/// <returns>String presentation of the object</returns>
public override string ToString()
{
var sb = new StringBuilder();
sb.Append("class Technologie {\n");
sb.Append(" Code: ").Append(Code).Append("\n");
sb.Append(" Intitule: ").Append(Intitule).Append("\n");
sb.Append("}\n");
return sb.ToString();
}
/// <summary>
/// Returns the JSON string presentation of the object
/// </summary>
/// <returns>JSON string presentation of the object</returns>
public string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="obj">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object obj)
{
if (ReferenceEquals(null, obj)) return false;
if (ReferenceEquals(this, obj)) return true;
return obj.GetType() == GetType() && Equals((Technologie)obj);
}
/// <summary>
/// Returns true if Technologie instances are equal
/// </summary>
/// <param name="other">Instance of Technologie to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Technologie other)
{
if (ReferenceEquals(null, other)) return false;
if (ReferenceEquals(this, other)) return true;
return
(
Code == other.Code ||
Code != null &&
Code.Equals(other.Code)
) &&
(
Intitule == other.Intitule ||
Intitule != null &&
Intitule.Equals(other.Intitule)
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
var hashCode = 41;
// Suitable nullity checks etc, of course :)
if (Code != null)
hashCode = hashCode * 59 + Code.GetHashCode();
if (Intitule != null)
hashCode = hashCode * 59 + Intitule.GetHashCode();
return hashCode;
}
}
#region Operators
#pragma warning disable 1591
public static bool operator ==(Technologie left, Technologie right)
{
return Equals(left, right);
}
public static bool operator !=(Technologie left, Technologie right)
{
return !Equals(left, right);
}
#pragma warning restore 1591
#endregion Operators
}
}

@ -0,0 +1,26 @@
using Microsoft.AspNetCore.Hosting;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ServeurCollaborateur
{
public class Program
{
public static void Main(string[] args)
{
CreateHostBuilder(args).Build().Run();
}
public static IHostBuilder CreateHostBuilder(string[] args) =>
Host.CreateDefaultBuilder(args)
.ConfigureWebHostDefaults(webBuilder =>
{
webBuilder.UseStartup<Startup>();
});
}
}

@ -0,0 +1,30 @@
{
"$schema": "http://json.schemastore.org/launchsettings.json",
"iisSettings": {
"windowsAuthentication": false,
"anonymousAuthentication": true,
"iisExpress": {
"applicationUrl": "http://localhost:4300",
"sslPort": 44318
}
},
"profiles": {
"IIS Express": {
"commandName": "IISExpress",
"launchBrowser": true,
"launchUrl": "collaborateurs/",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
},
"ServeurCollaborateur": {
"commandName": "Project",
"launchBrowser": false,
"launchUrl": "weatherforecast",
"applicationUrl": "https://localhost:5001;http://localhost:5000",
"environmentVariables": {
"ASPNETCORE_ENVIRONMENT": "Development"
}
}
}
}

@ -0,0 +1,15 @@
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp3.1</TargetFramework>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Swashbuckle" Version="5.6.0" />
<PackageReference Include="Swashbuckle.AspNetCore.Annotations" Version="5.6.3" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerGen" Version="5.6.3" />
</ItemGroup>
</Project>

@ -0,0 +1,89 @@
using IO.Swagger.Models;
using ServeurCollaborateur.IService;
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Text.Json;
using Newtonsoft.Json;
using System.Threading.Tasks;
namespace ServeurCollaborateur.Service
{
public class CollaborateurService : ICollaborateurService
{
private readonly string fileName = "./collaborateurs.json";
private readonly Dictionary<Guid?, Collaborateur> collaborateurs;
public CollaborateurService()
{
string jsonString = File.ReadAllText(fileName);
IEnumerable<Collaborateur> _collaborateurs = JsonConvert.DeserializeObject<IEnumerable<Collaborateur>>(jsonString);
collaborateurs = new Dictionary<Guid?, Collaborateur>();
foreach(Collaborateur c in _collaborateurs)
{
collaborateurs.Add(c.Id, c);
Console.WriteLine(c.Nom + " " + c.Prenom);
}
}
public Collaborateur GetCollaborateurById(Guid? id)
{
bool trouve = collaborateurs.TryGetValue(id, out Collaborateur collaborateur);
if (!trouve)
{
throw new Exception("Collaborateur not found");
}
return collaborateur;
}
public Collaborateur GetCollaborateurByMail(string mail)
{
Collaborateur collaborateur = collaborateurs.Values.Where(c => c.MailApside.Equals(mail)).FirstOrDefault();
if (collaborateur == null)
{
throw new Exception("Collaborateur not found");
}
return collaborateur;
}
public IEnumerable<Collaborateur> GetCollaborateurs(List<Guid?> collabsId, bool? ancienCollaborateur, List<string> roles, List<long?> buIds)
{
IEnumerable<Collaborateur> res_collaborateurs;
if (collabsId != null && collabsId.Count > 0)
{
return collaborateurs.Values.Where(c => collabsId.Contains(c.Id.Value));
}
else
{
res_collaborateurs = collaborateurs.Values;
}
if(!ancienCollaborateur.HasValue || !ancienCollaborateur.Value)
{
res_collaborateurs = res_collaborateurs.Where(c => c.DateDepart == null);
}
if (roles != null && roles.Count > 0)
{
res_collaborateurs = res_collaborateurs.Where(c => HasRole(c, roles));
}
if (buIds != null && buIds.Count > 0)
{
res_collaborateurs = res_collaborateurs.Where(c => buIds.Contains(c.BusinessUnit.Id));
}
return res_collaborateurs;
}
private bool HasRole(Collaborateur c, List<string> roles)
{
foreach (Fonction fonction in c.Fonctions)
{
if (roles.Contains(fonction.Intitule))
return true;
}
return false;
}
}
}

@ -0,0 +1,54 @@
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
using Microsoft.AspNetCore.Mvc;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using Microsoft.Extensions.Logging;
using ServeurCollaborateur.IService;
using ServeurCollaborateur.Service;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace ServeurCollaborateur
{
public class Startup
{
public Startup(IConfiguration configuration)
{
Configuration = configuration;
}
public IConfiguration Configuration { get; }
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
services.AddControllers();
services.AddScoped<ICollaborateurService, CollaborateurService>();
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.
public void Configure(IApplicationBuilder app, IWebHostEnvironment env)
{
if (env.IsDevelopment())
{
app.UseDeveloperExceptionPage();
}
app.UseHttpsRedirection();
app.UseRouting();
app.UseAuthorization();
app.UseEndpoints(endpoints =>
{
endpoints.MapControllers();
});
}
}
}

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

@ -0,0 +1,8 @@
{
"runtimeOptions": {
"additionalProbingPaths": [
"C:\\Users\\ygrette\\.dotnet\\store\\|arch|\\|tfm|",
"C:\\Users\\ygrette\\.nuget\\packages"
]
}
}

@ -0,0 +1,13 @@
{
"runtimeOptions": {
"tfm": "netcoreapp3.1",
"framework": {
"name": "Microsoft.AspNetCore.App",
"version": "3.1.0"
},
"configProperties": {
"System.GC.Server": true,
"System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false
}
}
}

@ -0,0 +1,9 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
}
}

@ -0,0 +1,10 @@
{
"Logging": {
"LogLevel": {
"Default": "Information",
"Microsoft": "Warning",
"Microsoft.Hosting.Lifetime": "Information"
}
},
"AllowedHosts": "*"
}

File diff suppressed because it is too large Load Diff

@ -0,0 +1,4 @@
// <autogenerated />
using System;
using System.Reflection;
[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")]

@ -0,0 +1,23 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: System.Reflection.AssemblyCompanyAttribute("ServeurCollaborateur")]
[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")]
[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")]
[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")]
[assembly: System.Reflection.AssemblyProductAttribute("ServeurCollaborateur")]
[assembly: System.Reflection.AssemblyTitleAttribute("ServeurCollaborateur")]
[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")]
// Généré par la classe MSBuild WriteCodeFragment.

@ -0,0 +1,18 @@
//------------------------------------------------------------------------------
// <auto-generated>
// Ce code a été généré par un outil.
// Version du runtime :4.0.30319.42000
//
// Les modifications apportées à ce fichier peuvent provoquer un comportement incorrect et seront perdues si
// le code est régénéré.
// </auto-generated>
//------------------------------------------------------------------------------
using System;
using System.Reflection;
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.Annotations")]
[assembly: Microsoft.AspNetCore.Mvc.ApplicationParts.ApplicationPartAttribute("Swashbuckle.AspNetCore.SwaggerGen")]
// Généré par la classe MSBuild WriteCodeFragment.

@ -0,0 +1,35 @@
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\appsettings.Development.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\appsettings.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.exe
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.deps.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.runtimeconfig.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.runtimeconfig.dev.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\ServeurCollaborateur.pdb
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\System.Net.Http.Formatting.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\System.Web.Http.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\System.Web.Http.WebHost.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Microsoft.OpenApi.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Microsoft.Web.Infrastructure.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Newtonsoft.Json.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Swashbuckle.AspNetCore.Annotations.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Swashbuckle.AspNetCore.Swagger.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Swashbuckle.AspNetCore.SwaggerGen.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\Swashbuckle.Core.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\WebActivatorEx.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.csprojAssemblyReference.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.AssemblyInfoInputs.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.AssemblyInfo.cs
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.csproj.CoreCompileInputs.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.MvcApplicationPartsAssemblyInfo.cs
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.MvcApplicationPartsAssemblyInfo.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\staticwebassets\ServeurCollaborateur.StaticWebAssets.Manifest.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\staticwebassets\ServeurCollaborateur.StaticWebAssets.xml
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\scopedcss\bundle\ServeurCollaborateur.styles.css
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.RazorTargetAssemblyInfo.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.csproj.CopyComplete
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.dll
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.pdb
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\obj\Debug\netcoreapp3.1\ServeurCollaborateur.genruntimeconfig.cache
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\collaborateurs.json
C:\Users\ygrette\Documents\DigitalisationEPA\ServeurCollaborateurSolution\ServeurCollaborateur\bin\Debug\netcoreapp3.1\collaborateurs - Copier.json

@ -0,0 +1,83 @@
{
"format": 1,
"restore": {
"C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj": {}
},
"projects": {
"C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj",
"projectName": "ServeurCollaborateur",
"projectPath": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj",
"packagesPath": "C:\\Users\\ygrette\\.nuget\\packages\\",
"outputPath": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\ygrette\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "[12.0.3, )"
},
"Swashbuckle": {
"target": "Package",
"version": "[5.6.0, )"
},
"Swashbuckle.AspNetCore.Annotations": {
"target": "Package",
"version": "[5.6.3, )"
},
"Swashbuckle.AspNetCore.SwaggerGen": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"
}
}
}
}
}

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<RestoreSuccess Condition=" '$(RestoreSuccess)' == '' ">True</RestoreSuccess>
<RestoreTool Condition=" '$(RestoreTool)' == '' ">NuGet</RestoreTool>
<ProjectAssetsFile Condition=" '$(ProjectAssetsFile)' == '' ">$(MSBuildThisFileDirectory)project.assets.json</ProjectAssetsFile>
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\ygrette\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.8.0</NuGetToolVersion>
</PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

@ -0,0 +1,6 @@
<?xml version="1.0" encoding="utf-8" standalone="no"?>
<Project ToolsVersion="14.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup>
</Project>

@ -0,0 +1,519 @@
{
"version": 3,
"targets": {
".NETCoreApp,Version=v3.1": {
"Microsoft.AspNet.WebApi.Client/4.0.20710": {
"type": "package",
"dependencies": {
"Microsoft.Net.Http": "[2.0.20710, 2.1.0)",
"Newtonsoft.Json": "4.5.6"
},
"compile": {
"lib/net40/System.Net.Http.Formatting.dll": {}
},
"runtime": {
"lib/net40/System.Net.Http.Formatting.dll": {}
}
},
"Microsoft.AspNet.WebApi.Core/4.0.20710": {
"type": "package",
"dependencies": {
"Microsoft.AspNet.WebApi.Client": "[4.0.20710, 4.1.0)"
},
"compile": {
"lib/net40/System.Web.Http.dll": {}
},
"runtime": {
"lib/net40/System.Web.Http.dll": {}
}
},
"Microsoft.AspNet.WebApi.WebHost/4.0.20710": {
"type": "package",
"dependencies": {
"Microsoft.AspNet.WebApi.Core": "[4.0.20710, 4.1.0)",
"Microsoft.Web.Infrastructure": "1.0.0"
},
"compile": {
"lib/net40/System.Web.Http.WebHost.dll": {}
},
"runtime": {
"lib/net40/System.Web.Http.WebHost.dll": {}
}
},
"Microsoft.Net.Http/2.0.20710": {
"type": "package",
"compile": {
"lib/net45/_._": {}
},
"runtime": {
"lib/net45/_._": {}
}
},
"Microsoft.OpenApi/1.2.3": {
"type": "package",
"compile": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
},
"runtime": {
"lib/netstandard2.0/Microsoft.OpenApi.dll": {}
}
},
"Microsoft.Web.Infrastructure/1.0.0": {
"type": "package",
"compile": {
"lib/net40/Microsoft.Web.Infrastructure.dll": {}
},
"runtime": {
"lib/net40/Microsoft.Web.Infrastructure.dll": {}
}
},
"Newtonsoft.Json/12.0.3": {
"type": "package",
"compile": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
},
"runtime": {
"lib/netstandard2.0/Newtonsoft.Json.dll": {}
}
},
"Swashbuckle/5.6.0": {
"type": "package",
"dependencies": {
"Microsoft.AspNet.WebApi.WebHost": "4.0.20710",
"Swashbuckle.Core": "5.6.0",
"WebActivatorEx": "2.0.0"
}
},
"Swashbuckle.AspNetCore.Annotations/5.6.3": {
"type": "package",
"dependencies": {
"Swashbuckle.AspNetCore.SwaggerGen": "5.6.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Annotations.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Annotations.dll": {}
}
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"type": "package",
"dependencies": {
"Microsoft.OpenApi": "1.2.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"type": "package",
"dependencies": {
"Swashbuckle.AspNetCore.Swagger": "5.6.3"
},
"compile": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
},
"runtime": {
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll": {}
},
"frameworkReferences": [
"Microsoft.AspNetCore.App"
]
},
"Swashbuckle.Core/5.6.0": {
"type": "package",
"dependencies": {
"Microsoft.AspNet.WebApi.Core": "4.0.20710",
"Newtonsoft.Json": "7.0.1"
},
"compile": {
"lib/net40/Swashbuckle.Core.dll": {}
},
"runtime": {
"lib/net40/Swashbuckle.Core.dll": {}
}
},
"WebActivatorEx/2.0.0": {
"type": "package",
"dependencies": {
"Microsoft.Web.Infrastructure": "1.0.0"
},
"compile": {
"lib/net40/WebActivatorEx.dll": {}
},
"runtime": {
"lib/net40/WebActivatorEx.dll": {}
}
}
}
},
"libraries": {
"Microsoft.AspNet.WebApi.Client/4.0.20710": {
"sha512": "BwFtW0cGr8tg02XalvF8MmznOpYrhquD2eXWI0oF3LLSqLMFoFkb8Pmke/7SnqkiNc+YfsaUqdXEKbjhv1Ctrw==",
"type": "package",
"path": "microsoft.aspnet.webapi.client/4.0.20710",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/System.Net.Http.Formatting.dll",
"lib/net40/System.Net.Http.Formatting.xml",
"microsoft.aspnet.webapi.client.4.0.20710.nupkg.sha512",
"microsoft.aspnet.webapi.client.nuspec"
]
},
"Microsoft.AspNet.WebApi.Core/4.0.20710": {
"sha512": "ufD+tH4W7+eNsb4pzX5oFTDcgI6J3lffughFTkyLHPBZ+A4Eo+VncAxt3lbt9zxxbLHXIbgJHYRLvtgR5YEZAQ==",
"type": "package",
"path": "microsoft.aspnet.webapi.core/4.0.20710",
"files": [
".nupkg.metadata",
".signature.p7s",
"content/web.config.transform",
"lib/net40/System.Web.Http.dll",
"lib/net40/System.Web.Http.xml",
"microsoft.aspnet.webapi.core.4.0.20710.nupkg.sha512",
"microsoft.aspnet.webapi.core.nuspec"
]
},
"Microsoft.AspNet.WebApi.WebHost/4.0.20710": {
"sha512": "Pqje5F4BJvnN6z2eSIuyCCZNJbIPap/4bYfvvHYy/kiYPj7+cFK+tgcSKWgITwk+6K8v+Bf3Et16DXQQuK+wEg==",
"type": "package",
"path": "microsoft.aspnet.webapi.webhost/4.0.20710",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/System.Web.Http.WebHost.dll",
"lib/net40/System.Web.Http.WebHost.xml",
"microsoft.aspnet.webapi.webhost.4.0.20710.nupkg.sha512",
"microsoft.aspnet.webapi.webhost.nuspec"
]
},
"Microsoft.Net.Http/2.0.20710": {
"sha512": "OsB/5QO9tYJRLYIgBOhRl4Tssh3pw7+UAO9tMGMBg63f98GfjsniVIwLWRC0vcRr/F6HLP/NvRlHyGBhtD7Bmw==",
"type": "package",
"path": "microsoft.net.http/2.0.20710",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/System.Net.Http.WebRequest.dll",
"lib/net40/System.Net.Http.WebRequest.xml",
"lib/net40/System.Net.Http.dll",
"lib/net40/System.Net.Http.xml",
"lib/net45/_._",
"microsoft.net.http.2.0.20710.nupkg.sha512",
"microsoft.net.http.nuspec"
]
},
"Microsoft.OpenApi/1.2.3": {
"sha512": "Nug3rO+7Kl5/SBAadzSMAVgqDlfGjJZ0GenQrLywJ84XGKO0uRqkunz5Wyl0SDwcR71bAATXvSdbdzPrYRYKGw==",
"type": "package",
"path": "microsoft.openapi/1.2.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net46/Microsoft.OpenApi.dll",
"lib/net46/Microsoft.OpenApi.pdb",
"lib/net46/Microsoft.OpenApi.xml",
"lib/netstandard2.0/Microsoft.OpenApi.dll",
"lib/netstandard2.0/Microsoft.OpenApi.pdb",
"lib/netstandard2.0/Microsoft.OpenApi.xml",
"microsoft.openapi.1.2.3.nupkg.sha512",
"microsoft.openapi.nuspec"
]
},
"Microsoft.Web.Infrastructure/1.0.0": {
"sha512": "FNmvLn5m2LTU/Rs2KWVo0SIIh9Ek+U0ojex7xeDaSHw/zgEP77A8vY5cVWgUtBGS8MJfDGNn8rpXJWEIQaPwTg==",
"type": "package",
"path": "microsoft.web.infrastructure/1.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/Microsoft.Web.Infrastructure.dll",
"microsoft.web.infrastructure.1.0.0.nupkg.sha512",
"microsoft.web.infrastructure.nuspec"
]
},
"Newtonsoft.Json/12.0.3": {
"sha512": "6mgjfnRB4jKMlzHSl+VD+oUc1IebOZabkbyWj2RiTgWwYPPuaK1H97G1sHqGwPlS5npiF5Q0OrxN1wni2n5QWg==",
"type": "package",
"path": "newtonsoft.json/12.0.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"LICENSE.md",
"lib/net20/Newtonsoft.Json.dll",
"lib/net20/Newtonsoft.Json.xml",
"lib/net35/Newtonsoft.Json.dll",
"lib/net35/Newtonsoft.Json.xml",
"lib/net40/Newtonsoft.Json.dll",
"lib/net40/Newtonsoft.Json.xml",
"lib/net45/Newtonsoft.Json.dll",
"lib/net45/Newtonsoft.Json.xml",
"lib/netstandard1.0/Newtonsoft.Json.dll",
"lib/netstandard1.0/Newtonsoft.Json.xml",
"lib/netstandard1.3/Newtonsoft.Json.dll",
"lib/netstandard1.3/Newtonsoft.Json.xml",
"lib/netstandard2.0/Newtonsoft.Json.dll",
"lib/netstandard2.0/Newtonsoft.Json.xml",
"lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.dll",
"lib/portable-net40+sl5+win8+wp8+wpa81/Newtonsoft.Json.xml",
"lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.dll",
"lib/portable-net45+win8+wp8+wpa81/Newtonsoft.Json.xml",
"newtonsoft.json.12.0.3.nupkg.sha512",
"newtonsoft.json.nuspec",
"packageIcon.png"
]
},
"Swashbuckle/5.6.0": {
"sha512": "UAE91ynpgvwoUs8igq3k/D0HV+cHrGRGJR9cwIPGE08hHJenn24MR2vq1n6NYbDWEwAVm+RYUW+qIsO9p5Sn/Q==",
"type": "package",
"path": "swashbuckle/5.6.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"Content/App_Start/SwaggerConfig.cs.pp",
"swashbuckle.5.6.0.nupkg.sha512",
"swashbuckle.nuspec"
]
},
"Swashbuckle.AspNetCore.Annotations/5.6.3": {
"sha512": "ucCJueBMJZ86z2w43wwdziBGdvjpkBXndSlr34Zz2dDXXfTA0kIsUbSzS/PWMCOINozJkFSWadWQ0BP+zOxQcA==",
"type": "package",
"path": "swashbuckle.aspnetcore.annotations/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Annotations.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Annotations.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Annotations.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Annotations.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Annotations.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Annotations.xml",
"swashbuckle.aspnetcore.annotations.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.annotations.nuspec"
]
},
"Swashbuckle.AspNetCore.Swagger/5.6.3": {
"sha512": "rn/MmLscjg6WSnTZabojx5DQYle2GjPanSPbCU3Kw8Hy72KyQR3uy8R1Aew5vpNALjfUFm2M/vwUtqdOlzw+GA==",
"type": "package",
"path": "swashbuckle.aspnetcore.swagger/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.Swagger.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.Swagger.xml",
"swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swagger.nuspec"
]
},
"Swashbuckle.AspNetCore.SwaggerGen/5.6.3": {
"sha512": "CkhVeod/iLd3ikVTDOwG5sym8BE5xbqGJ15iF3cC7ZPg2kEwDQL4a88xjkzsvC9oOB2ax6B0rK0EgRK+eOBX+w==",
"type": "package",
"path": "swashbuckle.aspnetcore.swaggergen/5.6.3",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netcoreapp3.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.dll",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.pdb",
"lib/netstandard2.0/Swashbuckle.AspNetCore.SwaggerGen.xml",
"swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"swashbuckle.aspnetcore.swaggergen.nuspec"
]
},
"Swashbuckle.Core/5.6.0": {
"sha512": "GhVWgtB8hCOxQhx7zLiiRyoi6flm7fNDDGILYHWktxLMkykRUz90fhmLRZECmnbvCcepFyROiw3phS1XorhdDg==",
"type": "package",
"path": "swashbuckle.core/5.6.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/Swashbuckle.Core.dll",
"swashbuckle.core.5.6.0.nupkg.sha512",
"swashbuckle.core.nuspec"
]
},
"WebActivatorEx/2.0.0": {
"sha512": "B3ZbOEaGCqa7BLjZZw6wqprOJJMvP39h7Lr5ADkJOCPKHppAaCre34kR63/gfgpM4htzTfgm/pEw7r7qqqMgIA==",
"type": "package",
"path": "webactivatorex/2.0.0",
"files": [
".nupkg.metadata",
".signature.p7s",
"lib/net40/WebActivatorEx.dll",
"webactivatorex.2.0.0.nupkg.sha512",
"webactivatorex.nuspec"
]
}
},
"projectFileDependencyGroups": {
".NETCoreApp,Version=v3.1": [
"Newtonsoft.Json >= 12.0.3",
"Swashbuckle >= 5.6.0",
"Swashbuckle.AspNetCore.Annotations >= 5.6.3",
"Swashbuckle.AspNetCore.SwaggerGen >= 5.6.3"
]
},
"packageFolders": {
"C:\\Users\\ygrette\\.nuget\\packages\\": {}
},
"project": {
"version": "1.0.0",
"restore": {
"projectUniqueName": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj",
"projectName": "ServeurCollaborateur",
"projectPath": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj",
"packagesPath": "C:\\Users\\ygrette\\.nuget\\packages\\",
"outputPath": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\obj\\",
"projectStyle": "PackageReference",
"configFilePaths": [
"C:\\Users\\ygrette\\AppData\\Roaming\\NuGet\\NuGet.Config",
"C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config"
],
"originalTargetFrameworks": [
"netcoreapp3.1"
],
"sources": {
"C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {},
"https://api.nuget.org/v3/index.json": {}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"projectReferences": {}
}
},
"warningProperties": {
"warnAsError": [
"NU1605"
]
}
},
"frameworks": {
"netcoreapp3.1": {
"targetAlias": "netcoreapp3.1",
"dependencies": {
"Newtonsoft.Json": {
"target": "Package",
"version": "[12.0.3, )"
},
"Swashbuckle": {
"target": "Package",
"version": "[5.6.0, )"
},
"Swashbuckle.AspNetCore.Annotations": {
"target": "Package",
"version": "[5.6.3, )"
},
"Swashbuckle.AspNetCore.SwaggerGen": {
"target": "Package",
"version": "[5.6.3, )"
}
},
"imports": [
"net461",
"net462",
"net47",
"net471",
"net472",
"net48"
],
"assetTargetFallback": true,
"warn": true,
"frameworkReferences": {
"Microsoft.AspNetCore.App": {
"privateAssets": "none"
},
"Microsoft.NETCore.App": {
"privateAssets": "all"
}
},
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"
}
}
},
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.Client 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.Client",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.Core 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.Core",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.WebHost 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.WebHost",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.Net.Http 2.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.Net.Http",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.Web.Infrastructure 1.0.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.Web.Infrastructure",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Swashbuckle.Core 5.6.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Swashbuckle.Core",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'WebActivatorEx 2.0.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "WebActivatorEx",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
}
]
}

@ -0,0 +1,93 @@
{
"version": 2,
"dgSpecHash": "Y9fzp4S13ex5IYrSg+9ANnzKvxzaFdKW7njmmOGUXx/7m1qJus8HIyYXb5YKszkHfF/2+n3vXbL3O16wtwVWGA==",
"success": true,
"projectFilePath": "C:\\Users\\ygrette\\Documents\\DigitalisationEPA\\ServeurCollaborateurSolution\\ServeurCollaborateur\\ServeurCollaborateur.csproj",
"expectedPackageFiles": [
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.aspnet.webapi.client\\4.0.20710\\microsoft.aspnet.webapi.client.4.0.20710.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.aspnet.webapi.core\\4.0.20710\\microsoft.aspnet.webapi.core.4.0.20710.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.aspnet.webapi.webhost\\4.0.20710\\microsoft.aspnet.webapi.webhost.4.0.20710.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.net.http\\2.0.20710\\microsoft.net.http.2.0.20710.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\microsoft.web.infrastructure\\1.0.0\\microsoft.web.infrastructure.1.0.0.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\newtonsoft.json\\12.0.3\\newtonsoft.json.12.0.3.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\swashbuckle\\5.6.0\\swashbuckle.5.6.0.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\swashbuckle.aspnetcore.annotations\\5.6.3\\swashbuckle.aspnetcore.annotations.5.6.3.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\5.6.3\\swashbuckle.aspnetcore.swagger.5.6.3.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\5.6.3\\swashbuckle.aspnetcore.swaggergen.5.6.3.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\swashbuckle.core\\5.6.0\\swashbuckle.core.5.6.0.nupkg.sha512",
"C:\\Users\\ygrette\\.nuget\\packages\\webactivatorex\\2.0.0\\webactivatorex.2.0.0.nupkg.sha512"
],
"logs": [
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.Client 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.Client",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.Core 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.Core",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.AspNet.WebApi.WebHost 4.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.AspNet.WebApi.WebHost",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.Net.Http 2.0.20710' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.Net.Http",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Microsoft.Web.Infrastructure 1.0.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Microsoft.Web.Infrastructure",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'Swashbuckle.Core 5.6.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "Swashbuckle.Core",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
},
{
"code": "NU1701",
"level": "Warning",
"warningLevel": 1,
"message": "Le package 'WebActivatorEx 2.0.0' a été restauré en utilisant '.NETFramework,Version=v4.6.1, .NETFramework,Version=v4.6.2, .NETFramework,Version=v4.7, .NETFramework,Version=v4.7.1, .NETFramework,Version=v4.7.2, .NETFramework,Version=v4.8' au lieu du framework cible du projet '.NETCoreApp,Version=v3.1'. Ce package n'est peut-être pas totalement compatible avec votre projet.",
"libraryId": "WebActivatorEx",
"targetGraphs": [
".NETCoreApp,Version=v3.1"
]
}
]
}

@ -0,0 +1,25 @@

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio Version 16
VisualStudioVersion = 16.0.30804.86
MinimumVisualStudioVersion = 10.0.40219.1
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ServeurCollaborateur", "ServeurCollaborateur\ServeurCollaborateur.csproj", "{3741CD87-4A28-457A-B881-70C23C540303}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{3741CD87-4A28-457A-B881-70C23C540303}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{3741CD87-4A28-457A-B881-70C23C540303}.Debug|Any CPU.Build.0 = Debug|Any CPU
{3741CD87-4A28-457A-B881-70C23C540303}.Release|Any CPU.ActiveCfg = Release|Any CPU
{3741CD87-4A28-457A-B881-70C23C540303}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {504B30F3-5804-41D9-AF98-4D3A2AC4A498}
EndGlobalSection
EndGlobal
Loading…
Cancel
Save