Merge branch 'develop' into formation

develop
jboinembalome 4 years ago
commit 79e8a86071
  1. 2
      ApiCollaborateur/AdresseApi.cs
  2. 2
      ApiCollaborateur/AgenceApi.cs
  3. 2
      ApiCollaborateur/BusinessUnitApi.cs
  4. 6
      ApiCollaborateur/CollaborateurApi.cs
  5. 98
      ApiCollaborateur/PeriodeDessaiApi.cs
  6. 2
      ApiCollaborateur/ProjetApi.cs
  7. 1383
      ApiCollaborateur/ReferentApi.cs
  8. 864
      ApiCollaborateur/RfrentApi.cs
  9. 7
      ClientCollaborateur/ApiClient.cs
  10. 2
      ClientCollaborateur/ApiException.cs
  11. 2
      ClientCollaborateur/ApiResponse.cs
  12. 8
      ClientCollaborateur/Configuration.cs
  13. 2
      ClientCollaborateur/ExceptionFactory.cs
  14. 2
      ClientCollaborateur/GlobalConfiguration.cs
  15. 2
      ClientCollaborateur/IApiAccessor.cs
  16. 2
      ClientCollaborateur/IReadableConfiguration.cs
  17. 2
      ClientCollaborateur/SwaggerDateConverter.cs
  18. 127
      Context/EpContext.cs
  19. 103
      Controllers/CollaborateursApi.cs
  20. 14
      Controllers/DemandesDelegationApi.cs
  21. 40
      Controllers/DemandesEPIApi.cs
  22. 16
      Controllers/DemandesFormationApi.cs
  23. 16
      Controllers/EngagementsApi.cs
  24. 32
      Controllers/EpApi.cs
  25. 8
      Controllers/FormationsApi.cs
  26. 161
      Controllers/NotesApi.cs
  27. 10
      Controllers/ParticipationsFormationsApi.cs
  28. 10
      Controllers/ReferentsApi.cs
  29. 4
      DTO/AffichageNoteDTO.cs
  30. 4
      DTO/AgenceDTO.cs
  31. 8
      DTO/AugmentationSalaireDTO.cs
  32. 4
      DTO/BusinessUnitDTO.cs
  33. 6
      DTO/ChampDTO.cs
  34. 2
      DTO/CollaborateurDTO.cs
  35. 4
      DTO/CreationDemandeDelegationDTO.cs
  36. 4
      DTO/CreationDemandeFormationDTO.cs
  37. 4
      DTO/DemandeDelegationDTO.cs
  38. 4
      DTO/DemandeEPIDTO.cs
  39. 4
      DTO/DemandeFormationDTO.cs
  40. 4
      DTO/DetailsNoteDTO.cs
  41. 4
      DTO/DocumentDTO.cs
  42. 4
      DTO/EngagementDTO.cs
  43. 6
      DTO/EpDTO.cs
  44. 6
      DTO/EpInformationDTO.cs
  45. 4
      DTO/EpSaisieDTO.cs
  46. 2
      DTO/ErreurDTO.cs
  47. 4
      DTO/EvaluationDTO.cs
  48. 42
      DTO/FormationDTO.cs
  49. 4
      DTO/FormationDTOParticipantsFormation.cs
  50. 4
      DTO/FormationDetailsDTO.cs
  51. 2
      DTO/ModeFormationDTO.cs
  52. 4
      DTO/ObjectifDTO.cs
  53. 4
      DTO/ObjectifPrecedentDTO.cs
  54. 2
      DTO/OrigineDemandeFormationDTO.cs
  55. 2
      DTO/OrigineFormationDTO.cs
  56. 4
      DTO/ParticipationEPDTO.cs
  57. 4
      DTO/ParticipationFormationDTO.cs
  58. 4
      DTO/ProchainEPDTO.cs
  59. 2
      DTO/ProfilDTO.cs
  60. 4
      DTO/RDVEntretienDTO.cs
  61. 6
      DTO/ReferentDTO.cs
  62. 2
      DTO/SaisieDTO.cs
  63. 2
      DTO/StatutFormationDTO.cs
  64. 2
      DTO/ThemeDTO.cs
  65. 2
      DTO/TypeEntretienDTO.cs
  66. 2
      DTO/TypeFormationDTO.cs
  67. 6
      IServices/ICollaborateurService.cs
  68. 4
      IServices/IFormationService.cs
  69. 22
      IServices/INoteService.cs
  70. 2
      ModelCollaborateur/Adresse.cs
  71. 2
      ModelCollaborateur/Agence.cs
  72. 2
      ModelCollaborateur/BU.cs
  73. 6
      ModelCollaborateur/Collaborateur.cs
  74. 2
      ModelCollaborateur/Fonction.cs
  75. 2
      ModelCollaborateur/Genre.cs
  76. 2
      ModelCollaborateur/IssuePE.cs
  77. 2
      ModelCollaborateur/NouveauCollaborateur.cs
  78. 2
      ModelCollaborateur/NouveauProjet.cs
  79. 2
      ModelCollaborateur/NouvelleAdresse.cs
  80. 2
      ModelCollaborateur/NouvelleAgence.cs
  81. 2
      ModelCollaborateur/NouvelleBU.cs
  82. 2
      ModelCollaborateur/NouvellePeriodeEssai.cs
  83. 2
      ModelCollaborateur/PeriodeEssai.cs
  84. 2
      ModelCollaborateur/Projet.cs
  85. 234
      ModelCollaborateur/Referent.cs
  86. 2
      ModelCollaborateur/Statut.cs
  87. 2
      ModelCollaborateur/Technologie.cs
  88. 8
      Models/EP/AugmentationSalaire.cs
  89. 4
      Models/EP/Autorisation.cs
  90. 4
      Models/EP/ChoixTypeEntretien.cs
  91. 4
      Models/EP/Delegation.cs
  92. 2
      Models/EP/Document.cs
  93. 2
      Models/EP/Engagement.cs
  94. 8
      Models/EP/Ep.cs
  95. 2
      Models/EP/Objectif.cs
  96. 2
      Models/EP/ObjectifPrecedent.cs
  97. 2
      Models/EP/ParticipantEP.cs
  98. 4
      Models/EP/RdvEntretien.cs
  99. 2
      Models/EP/TypeEntretien.cs
  100. 2
      Models/Formation/DemandeFormation.cs
  101. Some files were not shown because too many files have changed in this diff Show More

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -1187,9 +1187,7 @@ namespace IO.Swagger.ApiCollaborateur
public Collaborateur ChercherCollabId (Guid? collabId) public Collaborateur ChercherCollabId (Guid? collabId)
{ {
ApiResponse<Collaborateur> localVarResponse = ChercherCollabIdWithHttpInfo(collabId); ApiResponse<Collaborateur> localVarResponse = ChercherCollabIdWithHttpInfo(collabId);
if(localVarResponse != null)
return localVarResponse.Data; return localVarResponse.Data;
return null;
} }
/// <summary> /// <summary>
@ -1237,7 +1235,7 @@ namespace IO.Swagger.ApiCollaborateur
if (ExceptionFactory != null) if (ExceptionFactory != null)
{ {
Exception exception = ExceptionFactory("ChercherCollabId", localVarResponse); Exception exception = ExceptionFactory("ChercherCollabId", localVarResponse);
if (exception != null) return null; if (exception != null) throw exception;
} }
return new ApiResponse<Collaborateur>(localVarStatusCode, return new ApiResponse<Collaborateur>(localVarStatusCode,

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -20,11 +20,11 @@ namespace IO.Swagger.ApiCollaborateur
/// <summary> /// <summary>
/// Represents a collection of functions to interact with the API endpoints /// Represents a collection of functions to interact with the API endpoints
/// </summary> /// </summary>
public interface IPridodeDessaiApi : IApiAccessor public interface IPeriodeDessaiApi : IApiAccessor
{ {
#region Synchronous Operations #region Synchronous Operations
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -36,7 +36,7 @@ namespace IO.Swagger.ApiCollaborateur
void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null); void Maj1PE (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -47,7 +47,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); ApiResponse<Object> Maj1PEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -59,7 +59,7 @@ namespace IO.Swagger.ApiCollaborateur
void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null); void Maj1PEPatch (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -70,7 +70,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); ApiResponse<Object> Maj1PEPatchWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai /// mettre à jour une periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -82,7 +82,7 @@ namespace IO.Swagger.ApiCollaborateur
void MajPE (Guid? collabId, NouvellePeriodeEssai body = null); void MajPE (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai /// mettre à jour une periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -93,7 +93,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>ApiResponse of Object(void)</returns> /// <returns>ApiResponse of Object(void)</returns>
ApiResponse<Object> MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); ApiResponse<Object> MajPEWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours /// mettre à jour une periode d&#x27;essai en cours
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -105,7 +105,7 @@ namespace IO.Swagger.ApiCollaborateur
void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null); void MajPEPatch (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours /// mettre à jour une periode d&#x27;essai en cours
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -118,7 +118,7 @@ namespace IO.Swagger.ApiCollaborateur
#endregion Synchronous Operations #endregion Synchronous Operations
#region Asynchronous Operations #region Asynchronous Operations
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -130,7 +130,7 @@ namespace IO.Swagger.ApiCollaborateur
System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task Maj1PEAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -141,7 +141,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -153,7 +153,7 @@ namespace IO.Swagger.ApiCollaborateur
System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task Maj1PEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai /// mettre à jour la première partie de la periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -164,7 +164,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task<ApiResponse<Object>> Maj1PEPatchAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai /// mettre à jour une periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -176,7 +176,7 @@ namespace IO.Swagger.ApiCollaborateur
System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task MajPEAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai /// mettre à jour une periode d&#x27;essai
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -187,7 +187,7 @@ namespace IO.Swagger.ApiCollaborateur
/// <returns>Task of ApiResponse</returns> /// <returns>Task of ApiResponse</returns>
System.Threading.Tasks.Task<ApiResponse<Object>> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task<ApiResponse<Object>> MajPEAsyncWithHttpInfo (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours /// mettre à jour une periode d&#x27;essai en cours
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -199,7 +199,7 @@ namespace IO.Swagger.ApiCollaborateur
System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null); System.Threading.Tasks.Task MajPEPatchAsync (Guid? collabId, NouvellePeriodeEssai body = null);
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours /// mettre à jour une periode d&#x27;essai en cours
/// </summary> /// </summary>
/// <remarks> /// <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 /// 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
@ -215,15 +215,15 @@ namespace IO.Swagger.ApiCollaborateur
/// <summary> /// <summary>
/// Represents a collection of functions to interact with the API endpoints /// Represents a collection of functions to interact with the API endpoints
/// </summary> /// </summary>
public partial class PridodeDessaiApi : IPridodeDessaiApi public partial class PeriodeDessaiApi : IPeriodeDessaiApi
{ {
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null; private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class. /// Initializes a new instance of the <see cref="PeriodeDessaiApi"/> class.
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public PridodeDessaiApi(String basePath) public PeriodeDessaiApi(String basePath)
{ {
this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath }; this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath };
@ -231,10 +231,10 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class /// Initializes a new instance of the <see cref="PeriodeDessaiApi"/> class
/// </summary> /// </summary>
/// <returns></returns> /// <returns></returns>
public PridodeDessaiApi() public PeriodeDessaiApi()
{ {
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
@ -242,12 +242,12 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// Initializes a new instance of the <see cref="PridodeDessaiApi"/> class /// Initializes a new instance of the <see cref="PeriodeDessaiApi"/> class
/// using Configuration object /// using Configuration object
/// </summary> /// </summary>
/// <param name="configuration">An instance of Configuration</param> /// <param name="configuration">An instance of Configuration</param>
/// <returns></returns> /// <returns></returns>
public PridodeDessaiApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null) public PeriodeDessaiApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null)
{ {
if (configuration == null) // use the default one in Configuration if (configuration == null) // use the default one in Configuration
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default; this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
@ -321,7 +321,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -333,7 +333,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -343,7 +343,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PE");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -395,7 +395,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -408,7 +408,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -418,7 +418,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PE"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PE");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -470,7 +470,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -482,7 +482,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -492,7 +492,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PEPatch");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -544,7 +544,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -557,7 +557,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour la première partie de la péridode d&#x27;essai 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 /// mettre à jour la première partie de la periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -567,7 +567,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->Maj1PEPatch"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->Maj1PEPatch");
var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PremierePeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -619,7 +619,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai 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 /// mettre à jour une periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -631,7 +631,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai 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 /// mettre à jour une periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -641,7 +641,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPE");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -693,7 +693,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai 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 /// mettre à jour une periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -706,7 +706,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai 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 /// mettre à jour une periode d&#x27;essai 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -716,7 +716,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPE"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPE");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -768,7 +768,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours 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 /// mettre à jour une periode d&#x27;essai en cours 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -780,7 +780,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours 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 /// mettre à jour une periode d&#x27;essai en cours 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -790,7 +790,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPEPatch");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();
@ -842,7 +842,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours 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 /// mettre à jour une periode d&#x27;essai en cours 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -855,7 +855,7 @@ namespace IO.Swagger.ApiCollaborateur
} }
/// <summary> /// <summary>
/// mettre à jour une péridode d&#x27;essai en cours 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 /// mettre à jour une periode d&#x27;essai en cours 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
/// </summary> /// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception> /// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param> /// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
@ -865,7 +865,7 @@ namespace IO.Swagger.ApiCollaborateur
{ {
// verify the required parameter 'collabId' is set // verify the required parameter 'collabId' is set
if (collabId == null) if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling PridodeDessaiApi->MajPEPatch"); throw new ApiException(400, "Missing required parameter 'collabId' when calling PeriodeDessaiApi->MajPEPatch");
var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai"; var localVarPath = "/collaborateurs/{collabId}/PeriodeEssai";
var localVarPathParams = new Dictionary<String, String>(); var localVarPathParams = new Dictionary<String, String>();

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

File diff suppressed because it is too large Load Diff

@ -1,864 +0,0 @@
/*
* 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.2
* Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Linq;
using RestSharp;
using IO.Swagger.ClientCollaborateur;
using IO.Swagger.ModelCollaborateur;
namespace IO.Swagger.ApiCollaborateur
{
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public interface IRfrentApi : IApiAccessor
{
#region Synchronous Operations
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherRefCollabId (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherRefCollabIdWithHttpInfo (Guid? collabId);
/// <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>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>List&lt;Collaborateur&gt;</returns>
List<Collaborateur> ChercherRefCollabMail (string mailApside);
/// <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>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
ApiResponse<List<Collaborateur>> ChercherRefCollabMailWithHttpInfo (string mailApside);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
ApiResponse<Collaborateur> ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date);
#endregion Synchronous Operations
#region Asynchronous Operations
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId);
/// <summary>
/// rechercher les référents
/// </summary>
/// <remarks>
/// rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId);
/// <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>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside);
/// <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>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date);
/// <summary>
/// rechercher le référent qui a le plus suivit
/// </summary>
/// <remarks>
/// rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </remarks>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date);
#endregion Asynchronous Operations
}
/// <summary>
/// Represents a collection of functions to interact with the API endpoints
/// </summary>
public partial class RfrentApi : IRfrentApi
{
private IO.Swagger.ClientCollaborateur.ExceptionFactory _exceptionFactory = (name, response) => null;
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class.
/// </summary>
/// <returns></returns>
public RfrentApi(String basePath)
{
this.Configuration = new IO.Swagger.ClientCollaborateur.Configuration { BasePath = basePath };
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class
/// </summary>
/// <returns></returns>
public RfrentApi()
{
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Initializes a new instance of the <see cref="RfrentApi"/> class
/// using Configuration object
/// </summary>
/// <param name="configuration">An instance of Configuration</param>
/// <returns></returns>
public RfrentApi(IO.Swagger.ClientCollaborateur.Configuration configuration = null)
{
if (configuration == null) // use the default one in Configuration
this.Configuration = IO.Swagger.ClientCollaborateur.Configuration.Default;
else
this.Configuration = configuration;
ExceptionFactory = IO.Swagger.ClientCollaborateur.Configuration.DefaultExceptionFactory;
}
/// <summary>
/// Gets the base path of the API client.
/// </summary>
/// <value>The base path</value>
public String GetBasePath()
{
return this.Configuration.ApiClient.RestClient.BaseUrl.ToString();
}
/// <summary>
/// Sets the base path of the API client.
/// </summary>
/// <value>The base path</value>
[Obsolete("SetBasePath is deprecated, please do 'Configuration.ApiClient = new ApiClient(\"http://new-path\")' instead.")]
public void SetBasePath(String basePath)
{
// do nothing
}
/// <summary>
/// Gets or sets the configuration object
/// </summary>
/// <value>An instance of the Configuration</value>
public IO.Swagger.ClientCollaborateur.Configuration Configuration {get; set;}
/// <summary>
/// Provides a factory method hook for the creation of exceptions.
/// </summary>
public IO.Swagger.ClientCollaborateur.ExceptionFactory ExceptionFactory
{
get
{
if (_exceptionFactory != null && _exceptionFactory.GetInvocationList().Length > 1)
{
throw new InvalidOperationException("Multicast delegate for ExceptionFactory is unsupported.");
}
return _exceptionFactory;
}
set { _exceptionFactory = value; }
}
/// <summary>
/// Gets the default header.
/// </summary>
/// <returns>Dictionary of HTTP header</returns>
[Obsolete("DefaultHeader is deprecated, please use Configuration.DefaultHeader instead.")]
public IDictionary<String, String> DefaultHeader()
{
return new ReadOnlyDictionary<string, string>(this.Configuration.DefaultHeader);
}
/// <summary>
/// Add default header.
/// </summary>
/// <param name="key">Header field name.</param>
/// <param name="value">Header field value.</param>
/// <returns></returns>
[Obsolete("AddDefaultHeader is deprecated, please use Configuration.AddDefaultHeader instead.")]
public void AddDefaultHeader(string key, string value)
{
this.Configuration.AddDefaultHeader(key, value);
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherRefCollabId (Guid? collabId)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabIdWithHttpInfo(collabId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherRefCollabIdWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId");
var localVarPath = "/collaborateurs/{collabId}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabIdAsync (Guid? collabId)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabIdAsyncWithHttpInfo(collabId);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabIdAsyncWithHttpInfo (Guid? collabId)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefCollabId");
var localVarPath = "/collaborateurs/{collabId}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>List&lt;Collaborateur&gt;</returns>
public List<Collaborateur> ChercherRefCollabMail (string mailApside)
{
ApiResponse<List<Collaborateur>> localVarResponse = ChercherRefCollabMailWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>ApiResponse of List&lt;Collaborateur&gt;</returns>
public ApiResponse< List<Collaborateur> > ChercherRefCollabMailWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>Task of List&lt;Collaborateur&gt;</returns>
public async System.Threading.Tasks.Task<List<Collaborateur>> ChercherRefCollabMailAsync (string mailApside)
{
ApiResponse<List<Collaborateur>> localVarResponse = await ChercherRefCollabMailAsyncWithHttpInfo(mailApside);
return localVarResponse.Data;
}
/// <summary>
/// rechercher les référents rechercher les référents d&#x27;un collaborateur à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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>
/// <returns>Task of ApiResponse (List&lt;Collaborateur&gt;)</returns>
public async System.Threading.Tasks.Task<ApiResponse<List<Collaborateur>>> ChercherRefCollabMailAsyncWithHttpInfo (string mailApside)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referents";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<List<Collaborateur>>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(List<Collaborateur>) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(List<Collaborateur>)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
public Collaborateur ChercherRefSuiviParDateCollabId (Guid? collabId, string date)
{
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabIdWithHttpInfo(collabId, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherRefSuiviParDateCollabIdWithHttpInfo (Guid? collabId, string date)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
var localVarPath = "/collaborateurs/{collabId}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabIdAsync (Guid? collabId, string date)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo(collabId, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son identifiant
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <param name="collabId">Ce paramêtre permet de renseigner l&#x27;identifiant du collaborateur recherché</param>
/// <param name="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabIdAsyncWithHttpInfo (Guid? collabId, string date)
{
// verify the required parameter 'collabId' is set
if (collabId == null)
throw new ApiException(400, "Missing required parameter 'collabId' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabId");
var localVarPath = "/collaborateurs/{collabId}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (collabId != null) localVarPathParams.Add("collabId", this.Configuration.ApiClient.ParameterToString(collabId)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabId", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Collaborateur</returns>
public Collaborateur ChercherRefSuiviParDateCollabMail (string mailApside, string date)
{
ApiResponse<Collaborateur> localVarResponse = ChercherRefSuiviParDateCollabMailWithHttpInfo(mailApside, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>ApiResponse of Collaborateur</returns>
public ApiResponse< Collaborateur > ChercherRefSuiviParDateCollabMailWithHttpInfo (string mailApside, string date)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) this.Configuration.ApiClient.CallApi(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of Collaborateur</returns>
public async System.Threading.Tasks.Task<Collaborateur> ChercherRefSuiviParDateCollabMailAsync (string mailApside, string date)
{
ApiResponse<Collaborateur> localVarResponse = await ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo(mailApside, date);
return localVarResponse.Data;
}
/// <summary>
/// rechercher le référent qui a le plus suivit rechercher le référent du collaborateur l’ayant le plus suivi depuis une date donnée à l&#x27;aide de son mail apside
/// </summary>
/// <exception cref="IO.Swagger.ClientCollaborateur.ApiException">Thrown when fails to make API call</exception>
/// <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="date">Ce paramêtre permet de renseigner la date recherchée</param>
/// <returns>Task of ApiResponse (Collaborateur)</returns>
public async System.Threading.Tasks.Task<ApiResponse<Collaborateur>> ChercherRefSuiviParDateCollabMailAsyncWithHttpInfo (string mailApside, string date)
{
// verify the required parameter 'mailApside' is set
if (mailApside == null)
throw new ApiException(400, "Missing required parameter 'mailApside' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
// verify the required parameter 'date' is set
if (date == null)
throw new ApiException(400, "Missing required parameter 'date' when calling RfrentApi->ChercherRefSuiviParDateCollabMail");
var localVarPath = "/collaborateurs/{mailApside}/referent";
var localVarPathParams = new Dictionary<String, String>();
var localVarQueryParams = new List<KeyValuePair<String, String>>();
var localVarHeaderParams = new Dictionary<String, String>(this.Configuration.DefaultHeader);
var localVarFormParams = new Dictionary<String, String>();
var localVarFileParams = new Dictionary<String, FileParameter>();
Object localVarPostBody = null;
// to determine the Content-Type header
String[] localVarHttpContentTypes = new String[] {
};
String localVarHttpContentType = this.Configuration.ApiClient.SelectHeaderContentType(localVarHttpContentTypes);
// to determine the Accept header
String[] localVarHttpHeaderAccepts = new String[] {
"application/json"
};
String localVarHttpHeaderAccept = this.Configuration.ApiClient.SelectHeaderAccept(localVarHttpHeaderAccepts);
if (localVarHttpHeaderAccept != null)
localVarHeaderParams.Add("Accept", localVarHttpHeaderAccept);
if (mailApside != null) localVarPathParams.Add("mailApside", this.Configuration.ApiClient.ParameterToString(mailApside)); // path parameter
if (date != null) localVarQueryParams.AddRange(this.Configuration.ApiClient.ParameterToKeyValuePairs("", "date", date)); // query parameter
// make the HTTP request
IRestResponse localVarResponse = (IRestResponse) await this.Configuration.ApiClient.CallApiAsync(localVarPath,
Method.GET, localVarQueryParams, localVarPostBody, localVarHeaderParams, localVarFormParams, localVarFileParams,
localVarPathParams, localVarHttpContentType);
int localVarStatusCode = (int) localVarResponse.StatusCode;
if (ExceptionFactory != null)
{
Exception exception = ExceptionFactory("ChercherRefSuiviParDateCollabMail", localVarResponse);
if (exception != null) throw exception;
}
return new ApiResponse<Collaborateur>(localVarStatusCode,
localVarResponse.Headers.ToDictionary(x => x.Name, x => string.Join(",", x.Value)),
(Collaborateur) this.Configuration.ApiClient.Deserialize(localVarResponse, typeof(Collaborateur)));
}
}
}

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -73,7 +73,7 @@ namespace IO.Swagger.ClientCollaborateur
/// with default configuration. /// with default configuration.
/// </summary> /// </summary>
/// <param name="basePath">The base path.</param> /// <param name="basePath">The base path.</param>
public ApiClient(String basePath = "http://localhost:3000/api") public ApiClient(String basePath = "http://localhost:3000")
{ {
if (String.IsNullOrEmpty(basePath)) if (String.IsNullOrEmpty(basePath))
throw new ArgumentException("basePath cannot be empty"); throw new ArgumentException("basePath cannot be empty");
@ -203,7 +203,7 @@ namespace IO.Swagger.ClientCollaborateur
path, method, queryParams, postBody, headerParams, formParams, fileParams, path, method, queryParams, postBody, headerParams, formParams, fileParams,
pathParams, contentType); pathParams, contentType);
InterceptRequest(request); InterceptRequest(request);
var response = await RestClient.ExecuteAsync(request); var response = await RestClient.ExecuteTaskAsync(request);
InterceptResponse(request, response); InterceptResponse(request, response);
return (Object)response; return (Object)response;
} }
@ -315,6 +315,7 @@ namespace IO.Swagger.ClientCollaborateur
{ {
return ConvertType(response.Content, type); return ConvertType(response.Content, type);
} }
// at this point, it must be a model (json) // at this point, it must be a model (json)
try try
{ {

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -114,7 +114,7 @@ namespace IO.Swagger.ClientCollaborateur
public Configuration() public Configuration()
{ {
UserAgent = "Swagger-Codegen/1.0.0/csharp"; UserAgent = "Swagger-Codegen/1.0.0/csharp";
BasePath = "http://localhost:3000/api"; BasePath = "http://localhost:3000";
DefaultHeader = new ConcurrentDictionary<string, string>(); DefaultHeader = new ConcurrentDictionary<string, string>();
ApiKey = new ConcurrentDictionary<string, string>(); ApiKey = new ConcurrentDictionary<string, string>();
ApiKeyPrefix = new ConcurrentDictionary<string, string>(); ApiKeyPrefix = new ConcurrentDictionary<string, string>();
@ -129,7 +129,7 @@ namespace IO.Swagger.ClientCollaborateur
IDictionary<string, string> defaultHeader, IDictionary<string, string> defaultHeader,
IDictionary<string, string> apiKey, IDictionary<string, string> apiKey,
IDictionary<string, string> apiKeyPrefix, IDictionary<string, string> apiKeyPrefix,
string basePath = "http://localhost:3000/api") : this() string basePath = "http://localhost:3000") : this()
{ {
if (string.IsNullOrWhiteSpace(basePath)) if (string.IsNullOrWhiteSpace(basePath))
throw new ArgumentException("The provided basePath is invalid.", "basePath"); throw new ArgumentException("The provided basePath is invalid.", "basePath");
@ -437,7 +437,7 @@ namespace IO.Swagger.ClientCollaborateur
String report = "C# SDK (IO.Swagger) Debug Report:\n"; String report = "C# SDK (IO.Swagger) Debug Report:\n";
report += " OS: " + System.Environment.OSVersion + "\n"; report += " OS: " + System.Environment.OSVersion + "\n";
report += " .NET Framework Version: " + System.Environment.Version + "\n"; report += " .NET Framework Version: " + System.Environment.Version + "\n";
report += " Version of the API: 1.1.2\n"; report += " Version of the API: 1.1.3\n";
report += " SDK Package Version: 1.0.0\n"; report += " SDK Package Version: 1.0.0\n";
return report; return report;

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -820,5 +820,132 @@ namespace EPAServeur.Context
this.SaveChanges(); this.SaveChanges();
} }
public void AjouterNotes()
{
Note note;
note = new Note()
{
Id = 1,
Titre = "Titre1",
Texte = "Texte1",
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"),
IdCollaborateur = new Guid("779bf1cf-4d38-48fb-8550-3d583384523b"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 2,
Titre = "Titre2",
Texte = "Texte2",
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"),
IdCollaborateur = new Guid("779bf1cf-4d38-48fb-8550-3d583384523b"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 3,
Titre = "Titre3",
Texte = "Texte3",
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"),
IdCollaborateur = new Guid("779bf1cf-4d38-48fb-8550-3d583384523b"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 4,
Titre = "Titre4",
Texte = "Texte4",
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 5,
Titre = "Titre5",
Texte = "Texte5",
IdAuteur = new Guid("ecf528c3-e509-402f-87bb-c8821467e350"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 6,
Titre = "Titre6",
Texte = "Texte6",
IdAuteur = new Guid("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 7,
Titre = "Titre7",
Texte = "Texte7",
IdAuteur = new Guid("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 8,
Titre = "Titre8",
Texte = "Texte8",
IdAuteur = new Guid("571463f3-b286-4a21-9eab-0707dc506dec"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 9,
Titre = "Titre9",
Texte = "Texte9",
IdAuteur = new Guid("571463f3-b286-4a21-9eab-0707dc506dec"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
note = new Note()
{
Id = 10,
Titre = "Titre10",
Texte = "Texte10",
IdAuteur = new Guid("6aa62dcb-f7c9-4c0c-af40-e934a4d6a7eb"),
IdCollaborateur = new Guid("006226f6-51b2-4a02-a302-7447f7fccc04"),
DateCreation = DateTime.Now,
DateUpdate = DateTime.Now
};
this.Note.Add(note);
this.SaveChanges();
}
} }
} }

@ -51,8 +51,8 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetCollaborateurById([FromRoute][Required]Guid? idCollaborateur) public virtual IActionResult GetCollaborateurById([FromRoute][Required]Guid? idCollaborateur)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200, default(CollaborateurDTO)); // return StatusCode(403, default(ErreurDTO));
CollaborateurDTO collaborateurDTO = collaborateurService.GetCollaborateurById(idCollaborateur); CollaborateurDTO collaborateurDTO = collaborateurService.GetCollaborateurById(idCollaborateur);
if( collaborateurDTO == null) if( collaborateurDTO == null)
@ -65,18 +65,6 @@ namespace IO.Swagger.Controllers
return NotFound(erreurDTO); return NotFound(erreurDTO);
} }
return Ok(collaborateurDTO); return Ok(collaborateurDTO);
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO));
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO));
/*string exampleJson = null;
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}";
var example = exampleJson != null
? JsonConvert.DeserializeObject<CollaborateurDTO>(exampleJson)
: default(CollaborateurDTO); //TODO: Change the data returned
return new ObjectResult(example);*/
} }
/// <summary> /// <summary>
@ -89,7 +77,7 @@ namespace IO.Swagger.Controllers
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/collaborateurs/mail/{mail}")] [Route("/api/collaborateurs/mail/{mail}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetCollaborateurByMail")] [SwaggerOperation("GetCollaborateurByMail")]
[SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")]
@ -97,21 +85,21 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetCollaborateurByMail([FromRoute][Required]string mail) public virtual IActionResult GetCollaborateurByMail([FromRoute][Required]string mail)
{ {
//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(CollaborateurDTO));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... CollaborateurDTO collaborateurDTO = collaborateurService.GetCollaborateurByMail(mail);
// return StatusCode(404, default(ErreurDTO)); if (collaborateurDTO == null)
string exampleJson = null; {
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; ErreurDTO erreurDTO = new ErreurDTO()
{
Code = "404",
Message = "Aucun collaborateur n'est lié au mail "+mail,
};
return NotFound(erreurDTO);
}
return Ok(collaborateurDTO);
var example = exampleJson != null
? JsonConvert.DeserializeObject<CollaborateurDTO>(exampleJson)
: default(CollaborateurDTO); //TODO: Change the data returned
return new ObjectResult(example);
} }
/// <summary> /// <summary>
@ -135,19 +123,13 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetCollaborateurs")] [SwaggerOperation("GetCollaborateurs")]
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetCollaborateurs([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]int? idAgence, [FromQuery]int? idBU, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetCollaborateurs([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]long? idAgence, [FromQuery]long? idBU, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
return StatusCode(200, collaborateurService.GetCollaborateurs());
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
/*string exampleJson = null;
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]";
var example = exampleJson != null return Ok(collaborateurService.GetCollaborateurs(asc, numPage, parPAge, fonctions, idAgence, idBU, texte, tri));
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson)
: default(List<CollaborateurDTO>); //TODO: Change the data returned
return new ObjectResult(example);*/
} }
/// <summary> /// <summary>
@ -165,7 +147,7 @@ namespace IO.Swagger.Controllers
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/collaborateurs/referent/{idReferent}")] [Route("/api/collaborateurs/referent/{idReferent}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetCollaborateursByReferent")] [SwaggerOperation("GetCollaborateursByReferent")]
[SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<CollaborateurDTO>), description: "OK")]
@ -173,21 +155,19 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetCollaborateursByReferent([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetCollaborateursByReferent([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri)
{ {
//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<CollaborateurDTO>));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
IEnumerable<CollaborateurDTO> collaborateurs = collaborateurService.GetCollaborateursByReferent(idReferent, asc, numPage, parPAge, texte, tri);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... if(collaborateurs == null)
// return StatusCode(404, default(ErreurDTO)); {
string exampleJson = null; ErreurDTO erreurDTO = new ErreurDTO()
exampleJson = "[ {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; {
Code = "404",
var example = exampleJson != null Message = "Le référent n'existe pas",
? JsonConvert.DeserializeObject<List<CollaborateurDTO>>(exampleJson) };
: default(List<CollaborateurDTO>); //TODO: Change the data returned return NotFound(erreurDTO);
return new ObjectResult(example); }
return Ok(collaborateurs);
} }
/// <summary> /// <summary>
@ -200,7 +180,7 @@ namespace IO.Swagger.Controllers
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/collaborateurs/profil/{mail}/")] [Route("/api/collaborateurs/profil/{mail}/")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetProfilCollaborateurByMail")] [SwaggerOperation("GetProfilCollaborateurByMail")]
[SwaggerResponse(statusCode: 200, type: typeof(ProfilDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(ProfilDTO), description: "OK")]
@ -208,21 +188,20 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetProfilCollaborateurByMail([FromRoute][Required]string mail) public virtual IActionResult GetProfilCollaborateurByMail([FromRoute][Required]string mail)
{ {
//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(ProfilDTO));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... ProfilDTO collaborateurDTO = collaborateurService.GetProfilByMail(mail);
// return StatusCode(404, default(ErreurDTO)); if (collaborateurDTO == null)
string exampleJson = null; {
exampleJson = "{\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; ErreurDTO erreurDTO = new ErreurDTO()
{
var example = exampleJson != null Code = "404",
? JsonConvert.DeserializeObject<ProfilDTO>(exampleJson) Message = "Aucun collaborateur n'est lié au mail " + mail,
: default(ProfilDTO); //TODO: Change the data returned };
return new ObjectResult(example); return NotFound(erreurDTO);
}
return Ok(collaborateurDTO);
} }
} }
} }

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -43,7 +43,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("FaireDemandeDelegation")] [SwaggerOperation("FaireDemandeDelegation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult FaireDemandeDelegation([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]int? idEP) public virtual IActionResult FaireDemandeDelegation([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]long? idEP)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);
@ -61,7 +61,13 @@ namespace IO.Swagger.Controllers
/// ///
/// </summary> /// </summary>
/// <remarks>Récupération de la liste des demandes de délégation</remarks> /// <remarks>Récupération de la liste des demandes de délégation</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="idCollaborateur">id collaborateur</param> /// <param name="idCollaborateur">id collaborateur</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="fonctions">Liste des fonctions des collaborateurs que l&#x27;on veut récupérer</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
@ -73,7 +79,7 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeDelegationDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeDelegationDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetDemandesDelegation([FromRoute][Required]Guid? idCollaborateur) public virtual IActionResult GetDemandesDelegation([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeDelegationDTO>)); // return StatusCode(200, default(List<DemandeDelegationDTO>));
@ -108,7 +114,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("RepondreDemandeDelegation")] [SwaggerOperation("RepondreDemandeDelegation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult RepondreDemandeDelegation([FromBody]CreationDemandeDelegationDTO body, [FromRoute][Required]int? idDemandeDelegation) public virtual IActionResult RepondreDemandeDelegation([FromBody]CreationDemandeDelegationDTO body, [FromRoute][Required]long? idDemandeDelegation)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -42,7 +42,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("AnnulerDemandeEPI")] [SwaggerOperation("AnnulerDemandeEPI")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult AnnulerDemandeEPI([FromRoute][Required]int? idDemandeEPI) public virtual IActionResult AnnulerDemandeEPI([FromRoute][Required]long? idDemandeEPI)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);
@ -147,8 +147,14 @@ namespace IO.Swagger.Controllers
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <remarks>Récupération de la liste des précédents EPI d&#x27;un collaborateur</remarks> /// <remarks>Récupération de la liste des demandes EPI d&#x27;un collaborateur</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="idCollaborateur">id collaborateur</param> /// <param name="idCollaborateur">id collaborateur</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="fonctions">Liste des fonctions des collaborateurs que l&#x27;on veut récupérer</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
@ -156,11 +162,11 @@ namespace IO.Swagger.Controllers
[Route("/api/demandesepi/collaborateur/{idCollaborateur}")] [Route("/api/demandesepi/collaborateur/{idCollaborateur}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetEPICollaborateur")] [SwaggerOperation("GetDemandeEPICollaborateur")]
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetEPICollaborateur([FromRoute][Required]Guid? idCollaborateur) public virtual IActionResult GetDemandeEPICollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeEPIDTO>)); // return StatusCode(200, default(List<DemandeEPIDTO>));
@ -171,7 +177,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]"; exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson)
@ -191,11 +197,11 @@ namespace IO.Swagger.Controllers
[Route("/api/demandesepi/collaborateur/{idCollaborateur}/enCours")] [Route("/api/demandesepi/collaborateur/{idCollaborateur}/enCours")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetEPIEnCours")] [SwaggerOperation("GetDemandeEPIEnCours")]
[SwaggerResponse(statusCode: 200, type: typeof(DemandeEPIDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(DemandeEPIDTO), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetEPIEnCours([FromRoute][Required]Guid? idCollaborateur) public virtual IActionResult GetDemandeEPIEnCours([FromRoute][Required]Guid? idCollaborateur)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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(DemandeEPIDTO)); // return StatusCode(200, default(DemandeEPIDTO));
@ -206,7 +212,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "{\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}"; exampleJson = "{\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<DemandeEPIDTO>(exampleJson) ? JsonConvert.DeserializeObject<DemandeEPIDTO>(exampleJson)
@ -217,8 +223,14 @@ namespace IO.Swagger.Controllers
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <remarks>Récupération de la liste des précédents EPI d&#x27;un referent</remarks> /// <remarks>Récupération de la liste des demandes EPI d&#x27;un referent</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="idReferent">id referent</param> /// <param name="idReferent">id referent</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="fonctions">Liste des fonctions des collaborateurs que l&#x27;on veut récupérer</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
@ -226,11 +238,11 @@ namespace IO.Swagger.Controllers
[Route("/api/demandesepi/referent/{idReferent}")] [Route("/api/demandesepi/referent/{idReferent}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetEPIReferent")] [SwaggerOperation("GetDemandeEPIReferent")]
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeEPIDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetEPIReferent([FromRoute][Required]Guid? idReferent) public virtual IActionResult GetDemandeEPIReferent([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeEPIDTO>)); // return StatusCode(200, default(List<DemandeEPIDTO>));
@ -241,7 +253,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]"; exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"reponse\" : true,\n \"idReferent\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\",\n \"etat\" : 6\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<DemandeEPIDTO>>(exampleJson)
@ -265,7 +277,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("RepondreDemandeEPI")] [SwaggerOperation("RepondreDemandeEPI")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult RepondreDemandeEPI([FromBody]DemandeEPIDTO body, [FromRoute][Required]int? idDemandeEPI) public virtual IActionResult RepondreDemandeEPI([FromBody]DemandeEPIDTO body, [FromRoute][Required]long? idDemandeEPI)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -71,7 +71,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetDemandesFormation")] [SwaggerOperation("GetDemandesFormation")]
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetDemandesFormation([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) public virtual IActionResult GetDemandesFormation([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeFormationDTO>)); // return StatusCode(200, default(List<DemandeFormationDTO>));
@ -79,7 +79,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson)
@ -107,7 +107,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetDemandesFormationEnAttente")] [SwaggerOperation("GetDemandesFormationEnAttente")]
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetDemandesFormationEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) public virtual IActionResult GetDemandesFormationEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeFormationDTO>)); // return StatusCode(200, default(List<DemandeFormationDTO>));
@ -115,7 +115,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson)
@ -143,7 +143,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetDemandesFormationRepondues")] [SwaggerOperation("GetDemandesFormationRepondues")]
[SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<DemandeFormationDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetDemandesFormationRepondues([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri) public virtual IActionResult GetDemandesFormationRepondues([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]int? theme, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<DemandeFormationDTO>)); // return StatusCode(200, default(List<DemandeFormationDTO>));
@ -151,7 +151,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1.4658129805029452\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]"; exampleJson = "[ {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"commentaireRefus\" : \"commentaireRefus\",\n \"libelle\" : \"libelle\",\n \"description\" : \"description\",\n \"dateDerniereReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"theme\" : {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n },\n \"id\" : 7,\n \"ep\" : {\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : 6,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6,\n \"nom\" : \"nom\"\n },\n \"id\" : 0,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n },\n \"statut\" : 1\n },\n \"demandeRH\" : false,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<DemandeFormationDTO>>(exampleJson)
@ -232,7 +232,7 @@ namespace IO.Swagger.Controllers
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("RepondreDemandeFormation")] [SwaggerOperation("RepondreDemandeFormation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult RepondreDemandeFormation([FromBody]DemandeFormationDTO body, [FromRoute][Required]int? idDemandeFormation) public virtual IActionResult RepondreDemandeFormation([FromBody]DemandeFormationDTO body, [FromRoute][Required]long? idDemandeFormation)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -46,7 +46,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetEngagements")] [SwaggerOperation("GetEngagements")]
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetEngagements([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetEngagements([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<EngagementDTO>)); // return StatusCode(200, default(List<EngagementDTO>));
@ -54,7 +54,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson)
@ -81,7 +81,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetEngagementsEnAttente")] [SwaggerOperation("GetEngagementsEnAttente")]
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetEngagementsEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetEngagementsEnAttente([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<EngagementDTO>)); // return StatusCode(200, default(List<EngagementDTO>));
@ -89,7 +89,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson)
@ -116,7 +116,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetEngagementsRepondus")] [SwaggerOperation("GetEngagementsRepondus")]
[SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<EngagementDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetEngagementsRepondus([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetEngagementsRepondus([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]long? idAgence, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<EngagementDTO>)); // return StatusCode(200, default(List<EngagementDTO>));
@ -124,7 +124,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2.027123023002322,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]"; exampleJson = "[ {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n}, {\n \"realisable\" : true,\n \"realise\" : true,\n \"action\" : \"action\",\n \"id\" : 2,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dispositif\" : \"dispositif\",\n \"modalite\" : \"modalite\",\n \"raisonNonRealisable\" : \"raisonNonRealisable\"\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<EngagementDTO>>(exampleJson)
@ -146,7 +146,7 @@ namespace IO.Swagger.Controllers
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("RepondreEngagement")] [SwaggerOperation("RepondreEngagement")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult RepondreEngagement([FromBody]EngagementDTO body, [FromRoute][Required]int? idEngagement) public virtual IActionResult RepondreEngagement([FromBody]EngagementDTO body, [FromRoute][Required]long? idEngagement)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);

File diff suppressed because one or more lines are too long

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -66,7 +66,7 @@ namespace IO.Swagger.Controllers
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("DeleteFormation")] [SwaggerOperation("DeleteFormation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult DeleteFormation([FromRoute][Required] decimal? idFormation) public virtual IActionResult DeleteFormation([FromRoute][Required] long? idFormation)
{ {
if (!formationService.DeleteFormationById(idFormation)) if (!formationService.DeleteFormationById(idFormation))
{ {
@ -135,7 +135,7 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 200, type: typeof(FormationDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(FormationDTO), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetFormationById([FromRoute][Required] decimal? idFormation) public virtual IActionResult GetFormationById([FromRoute][Required] long? idFormation)
{ {
FormationDTO formationDTO = formationService.GetFormationById(Convert.ToInt32(idFormation)); FormationDTO formationDTO = formationService.GetFormationById(Convert.ToInt32(idFormation));
if (formationDTO == null) if (formationDTO == null)
@ -399,7 +399,7 @@ namespace IO.Swagger.Controllers
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("UpdateFormation")] [SwaggerOperation("UpdateFormation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult UpdateFormation([FromBody] FormationDTO body, [FromRoute][Required] decimal? idFormation) public virtual IActionResult UpdateFormation([FromBody] FormationDTO body, [FromRoute][Required] long? idFormation)
{ {
FormationDTO formation = formationService.UpdateFormation(body); FormationDTO formation = formationService.UpdateFormation(body);
if (formation == null) if (formation == null)

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -18,6 +18,9 @@ using IO.Swagger.Attributes;
using IO.Swagger.Security; using IO.Swagger.Security;
using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Authorization;
using IO.Swagger.DTO; using IO.Swagger.DTO;
using EPAServeur.Services;
using EPAServeur.IServices;
using EPAServeur.Models.Notes;
namespace IO.Swagger.Controllers namespace IO.Swagger.Controllers
{ {
@ -27,6 +30,13 @@ namespace IO.Swagger.Controllers
[ApiController] [ApiController]
public class NotesApiController : ControllerBase public class NotesApiController : ControllerBase
{ {
private readonly INoteService noteService;
public NotesApiController(INoteService _noteService)
{
noteService = _noteService;
}
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
@ -37,23 +47,25 @@ namespace IO.Swagger.Controllers
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpDelete] [HttpDelete]
[Route("/api/notes/{idNote}/supprimer")] [Route("/api/notes/{idNote}/supprimer")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("DeleteNote")] [SwaggerOperation("DeleteNote")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult DeleteNote([FromRoute][Required]int? idNote) public virtual IActionResult DeleteNote([FromRoute][Required]long? idNote)
{ {
//TODO: Uncomment the next line to return response 204 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(204);
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
if(!noteService.SupprimerNote(idNote))
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... {
// return StatusCode(404, default(ErreurDTO)); ErreurDTO erreur = new ErreurDTO()
{
throw new NotImplementedException(); Code = "404",
Message = "Aucune note trouvé"
};
return NotFound(erreur);
};
return NoContent();
} }
/// <summary> /// <summary>
@ -66,35 +78,38 @@ namespace IO.Swagger.Controllers
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/notes/{idNote}")] [Route("/api/notes/{idNote}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetNoteById")] [SwaggerOperation("GetNoteById")]
[SwaggerResponse(statusCode: 200, type: typeof(DetailsNoteDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(DetailsNoteDTO), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetNoteById([FromRoute][Required]int? idNote) public virtual IActionResult GetNoteById([FromRoute][Required]long? idNote)
{ {
//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(DetailsNoteDTO));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
DetailsNoteDTO note = noteService.GetNoteById(idNote);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... if(note == null)
// return StatusCode(404, default(ErreurDTO)); {
string exampleJson = null; ErreurDTO erreur = new ErreurDTO()
exampleJson = "{\n \"idAuteur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"texte\" : \"texte\",\n \"id\" : 0,\n \"collaborateur\" : {\n \"businessUnit\" : {\n \"agence\" : {\n \"bu\" : [ null, null ],\n \"id\" : 6.027456183070403,\n \"nom\" : \"nom\"\n },\n \"id\" : 0.8008281904610115,\n \"nom\" : \"nom\"\n },\n \"referent\" : {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n },\n \"mailApside\" : \"\",\n \"dateArrivee\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateDepart\" : \"2000-01-23T04:56:07.000+00:00\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n }\n}"; {
Code = "404",
var example = exampleJson != null Message = "Aucune note n'a été trouvée"
? JsonConvert.DeserializeObject<DetailsNoteDTO>(exampleJson) };
: default(DetailsNoteDTO); //TODO: Change the data returned return NotFound(erreur);
return new ObjectResult(example); }
return Ok(note);
} }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <remarks>Récupérer toutes les notes</remarks> /// <remarks>Récupérer toutes les notes</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
[HttpGet] [HttpGet]
@ -104,7 +119,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetNotes")] [SwaggerOperation("GetNotes")]
[SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetNotes() public virtual IActionResult GetNotes([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<AffichageNoteDTO>)); // return StatusCode(200, default(List<AffichageNoteDTO>));
@ -124,71 +139,77 @@ namespace IO.Swagger.Controllers
/// ///
/// </summary> /// </summary>
/// <remarks>Récupérer les notes d&#x27;une personne a écrite</remarks> /// <remarks>Récupérer les notes d&#x27;une personne a écrite</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="idReferent">id referent</param> /// <param name="idReferent">id referent</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/notes/auteur/{idReferent}")] [Route("/api/notes/auteur/{idReferent}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetNotesByAuteur")] [SwaggerOperation("GetNotesByAuteur")]
[SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetNotesByAuteur([FromRoute][Required]Guid? idReferent) public virtual IActionResult GetNotesByAuteur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri)
{ {
//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<AffichageNoteDTO>));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
IEnumerable<AffichageNoteDTO> notes = noteService.GetNotesByAuteur(idReferent, asc, numPage, parPAge, texte, tri);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... if(notes == null)
// return StatusCode(404, default(ErreurDTO)); {
string exampleJson = null; ErreurDTO erreur = new ErreurDTO()
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n} ]"; {
Code = "404",
var example = exampleJson != null Message = "Aucun id ne correspond au référent"
? JsonConvert.DeserializeObject<List<AffichageNoteDTO>>(exampleJson) };
: default(List<AffichageNoteDTO>); //TODO: Change the data returned return NotFound(erreur);
return new ObjectResult(example); }
return Ok(notes);
} }
/// <summary> /// <summary>
/// ///
/// </summary> /// </summary>
/// <remarks>Récupérer une note par son id</remarks> /// <remarks>Récupérer une note par son id</remarks>
/// <param name="asc">Préciser si les données sont dans l&#x27;ordre (true) ou dans l&#x27;ordre inverse (false)</param>
/// <param name="idCollaborateur">id collaborateur</param> /// <param name="idCollaborateur">id collaborateur</param>
/// <param name="idReferent">id referent</param> /// <param name="idReferent">id referent</param>
/// <param name="numPage">Numéro de la page du tableau qui affiche les données</param>
/// <param name="parPAge">Nombre d&#x27;éléments affiché sur chaque page du tableau</param>
/// <param name="texte">Texte permettant d&#x27;identifier l&#x27;objet rechercher</param>
/// <param name="tri">Colonne du tableau sur lequel le tri s&#x27;effectue</param>
/// <response code="200">OK</response> /// <response code="200">OK</response>
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
/// <response code="404">Ressource n&#x27;a pas été trouvée</response> /// <response code="404">Ressource n&#x27;a pas été trouvée</response>
[HttpGet] [HttpGet]
[Route("/api/notes/auteur/{idReferent}/collaborateur/{idCollaborateur}")] [Route("/api/notes/auteur/{idReferent}/collaborateur/{idCollaborateur}")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("GetNotesByCollaborateur")] [SwaggerOperation("GetNotesByCollaborateur")]
[SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<AffichageNoteDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetNotesByCollaborateur([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent) public virtual IActionResult GetNotesByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri)
{ {
//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<AffichageNoteDTO>));
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
IEnumerable<AffichageNoteDTO> notes = noteService.GetNotesByCollaborateur(idReferent, idCollaborateur, asc, numPage, parPAge, texte, tri);
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... if (notes == null)
// return StatusCode(404, default(ErreurDTO)); {
string exampleJson = null; ErreurDTO erreur = new ErreurDTO()
exampleJson = "[ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n}, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"dateMiseAjour\" : \"2000-01-23T04:56:07.000+00:00\",\n \"titre\" : \"titre\",\n \"id\" : 0,\n \"collaborateur\" : \"collaborateur\"\n} ]"; {
Code = "404",
var example = exampleJson != null Message = "Aucun id ne correspond au référent et/ou au collaborateur"
? JsonConvert.DeserializeObject<List<AffichageNoteDTO>>(exampleJson) };
: default(List<AffichageNoteDTO>); //TODO: Change the data returned return NotFound(erreur);
return new ObjectResult(example); }
return Ok(notes);
} }
/// <summary> /// <summary>
@ -200,19 +221,16 @@ namespace IO.Swagger.Controllers
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
[HttpPost] [HttpPost]
[Route("/api/notes/nouvellenote")] [Route("/api/notes/nouvellenote")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("NouvelleNote")] [SwaggerOperation("NouvelleNote")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult NouvelleNote([FromBody]DetailsNoteDTO body) public virtual IActionResult NouvelleNote([FromBody]DetailsNoteDTO body)
{ {
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(201);
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
Note nouvelleNote = noteService.AjouterNote(body);
throw new NotImplementedException(); return Created("",nouvelleNote);
} }
/// <summary> /// <summary>
@ -226,22 +244,21 @@ namespace IO.Swagger.Controllers
/// <response code="403">Acces interdit</response> /// <response code="403">Acces interdit</response>
[HttpPut] [HttpPut]
[Route("/api/notes/{idNote}/updateNote")] [Route("/api/notes/{idNote}/updateNote")]
[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)] //[Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
[ValidateModelState] [ValidateModelState]
[SwaggerOperation("UpdateNote")] [SwaggerOperation("UpdateNote")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult UpdateNote([FromBody]DetailsNoteDTO body, [FromRoute][Required]int? idNote) public virtual IActionResult UpdateNote([FromBody]DetailsNoteDTO body, [FromRoute][Required]long? idNote)
{ {
//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 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(201);
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
throw new NotImplementedException(); Note note = noteService.UpdateNote(idNote, body);
if (note == null)
note = noteService.AjouterNote(body);
return Ok(note);
//TODO: Uncomment the next line to return response 201 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(201);
} }
} }
} }

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -43,7 +43,7 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 200, type: typeof(EvaluationDTO), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(EvaluationDTO), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult ConsulterEvaluation([FromRoute][Required]decimal? idParticipationFormation) public virtual IActionResult ConsulterEvaluation([FromRoute][Required]long? idParticipationFormation)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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(EvaluationDTO)); // return StatusCode(200, default(EvaluationDTO));
@ -54,7 +54,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "{\n \"idParticipation\" : 0,\n \"saisies\" : [ {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5.025004791520295,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n }, {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5.025004791520295,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n } ]\n}"; exampleJson = "{\n \"idParticipation\" : 0,\n \"saisies\" : [ {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n }, {\n \"note\" : 7,\n \"texte2\" : \"texte2\",\n \"texte\" : \"texte\",\n \"id\" : \"id\",\n \"champ\" : {\n \"typeChamp\" : \"typeChamp\",\n \"ordre\" : 5,\n \"texte\" : \"texte\",\n \"section\" : \"section\",\n \"soussection\" : \"soussection\",\n \"id\" : 4,\n \"typeSaisie\" : \"typeSaisie\"\n },\n \"typeSaisie\" : 6,\n \"niveau\" : 1\n } ]\n}";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<EvaluationDTO>(exampleJson) ? JsonConvert.DeserializeObject<EvaluationDTO>(exampleJson)
@ -78,7 +78,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("EvaluerFormation")] [SwaggerOperation("EvaluerFormation")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult EvaluerFormation([FromBody]EvaluationDTO body, [FromRoute][Required]decimal? idParticipationFormation) public virtual IActionResult EvaluerFormation([FromBody]EvaluationDTO body, [FromRoute][Required]long? idParticipationFormation)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(200); // return StatusCode(200);
@ -153,7 +153,7 @@ namespace IO.Swagger.Controllers
[SwaggerResponse(statusCode: 200, type: typeof(List<ParticipationFormationDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<ParticipationFormationDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
[SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")] [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n&#x27;a pas été trouvée")]
public virtual IActionResult GetParticipationByFormation([FromQuery][Required()]bool? asc, [FromRoute][Required]decimal? idFormation, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetParticipationByFormation([FromQuery][Required()]bool? asc, [FromRoute][Required]long? idFormation, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<ParticipationFormationDTO>)); // return StatusCode(200, default(List<ParticipationFormationDTO>));

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -59,7 +59,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"collaborateur\" : [ null, null ],\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"collaborateur\" : [ null, null ],\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; exampleJson = "[ {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n}, {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<ReferentDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<ReferentDTO>>(exampleJson)
@ -94,7 +94,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 404 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(404, default(ErreurDTO)); // return StatusCode(404, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "{\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"collaborateur\" : [ null, null ],\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}"; exampleJson = "{\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n}";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<ReferentDTO>(exampleJson) ? JsonConvert.DeserializeObject<ReferentDTO>(exampleJson)
@ -123,7 +123,7 @@ namespace IO.Swagger.Controllers
[SwaggerOperation("GetReferents")] [SwaggerOperation("GetReferents")]
[SwaggerResponse(statusCode: 200, type: typeof(List<ReferentDTO>), description: "OK")] [SwaggerResponse(statusCode: 200, type: typeof(List<ReferentDTO>), description: "OK")]
[SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")] [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
public virtual IActionResult GetReferents([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]int? idAgence, [FromQuery]int? idBU, [FromQuery]string texte, [FromQuery]string tri) public virtual IActionResult GetReferents([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]List<string> fonctions, [FromQuery]long? idAgence, [FromQuery]long? idBU, [FromQuery]string texte, [FromQuery]string tri)
{ {
//TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //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<ReferentDTO>)); // return StatusCode(200, default(List<ReferentDTO>));
@ -131,7 +131,7 @@ namespace IO.Swagger.Controllers
//TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ... //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
// return StatusCode(403, default(ErreurDTO)); // return StatusCode(403, default(ErreurDTO));
string exampleJson = null; string exampleJson = null;
exampleJson = "[ {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"collaborateur\" : [ null, null ],\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}, {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"collaborateur\" : [ null, null ],\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n} ]"; exampleJson = "[ {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n}, {\n \"mailApside\" : \"\",\n \"id\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"nom\" : \"nom\",\n \"prenom\" : \"prenom\",\n \"collaborateurs\" : [ null, null ]\n} ]";
var example = exampleJson != null var example = exampleJson != null
? JsonConvert.DeserializeObject<List<ReferentDTO>>(exampleJson) ? JsonConvert.DeserializeObject<List<ReferentDTO>>(exampleJson)

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Titre /// Gets or Sets Titre

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Nom /// Gets or Sets Nom

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,20 +31,20 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Augmentation /// Gets or Sets Augmentation
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="augmentation")] [DataMember(Name="augmentation")]
public decimal? Augmentation { get; set; } public float? Augmentation { get; set; }
/// <summary> /// <summary>
/// Gets or Sets PrimeMission /// Gets or Sets PrimeMission
/// </summary> /// </summary>
[DataMember(Name="primeMission")] [DataMember(Name="primeMission")]
public decimal? PrimeMission { get; set; } public float? PrimeMission { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Message /// Gets or Sets Message

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Nom /// Gets or Sets Nom

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Texte /// Gets or Sets Texte
@ -58,7 +58,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="ordre")] [DataMember(Name="ordre")]
public decimal? Ordre { get; set; } public int? Ordre { get; set; }
/// <summary> /// <summary>
/// Gets or Sets TypeChamp /// Gets or Sets TypeChamp

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -30,7 +30,7 @@ namespace IO.Swagger.DTO
/// Gets or Sets IdEp /// Gets or Sets IdEp
/// </summary> /// </summary>
[DataMember(Name="idEp")] [DataMember(Name="idEp")]
public int? IdEp { get; set; } public long? IdEp { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IdReferent /// Gets or Sets IdReferent

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Libelle /// Gets or Sets Libelle

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Ep /// Gets or Sets Ep

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IdCollaborateur /// Gets or Sets IdCollaborateur

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Libelle /// Gets or Sets Libelle

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Titre /// Gets or Sets Titre

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Action /// Gets or Sets Action

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type
@ -65,7 +65,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="statut")] [DataMember(Name="statut")]
public decimal? Statut { get; set; } public int? Statut { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Cv /// Gets or Sets Cv

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type
@ -45,7 +45,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="statut")] [DataMember(Name="statut")]
public decimal? Statut { get; set; } public int? Statut { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateDisponibilite /// Gets or Sets DateDisponibilite

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="idParticipation")] [DataMember(Name="idParticipation")]
public int? IdParticipation { get; set; } public long? IdParticipation { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Saisies /// Gets or Sets Saisies

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -30,95 +30,95 @@ namespace IO.Swagger.DTO
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Intitule /// Gets or Sets Intitule
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "intitule")] [DataMember(Name="intitule")]
public string Intitule { get; set; } public string Intitule { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Origine /// Gets or Sets Origine
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "origine")] [DataMember(Name="origine")]
public OrigineFormationDTO Origine { get; set; } public OrigineFormationDTO Origine { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Statut /// Gets or Sets Statut
/// </summary> /// </summary>
[DataMember(Name = "statut")] [DataMember(Name="statut")]
public StatutFormationDTO Statut { get; set; } public StatutFormationDTO Statut { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IdAgence /// Gets or Sets IdAgence
/// </summary> /// </summary>
[DataMember(Name = "idAgence")] [DataMember(Name="idAgence")]
public int? IdAgence { get; set; } public long? IdAgence { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateDebut /// Gets or Sets DateDebut
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "dateDebut")] [DataMember(Name="dateDebut")]
public DateTime? DateDebut { get; set; } public DateTime? DateDebut { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateFin /// Gets or Sets DateFin
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "dateFin")] [DataMember(Name="dateFin")]
public DateTime? DateFin { get; set; } public DateTime? DateFin { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Heure /// Gets or Sets Heure
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "heure")] [DataMember(Name="heure")]
public decimal? Heure { get; set; } public int? Heure { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Jour /// Gets or Sets Jour
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "jour")] [DataMember(Name="jour")]
public decimal? Jour { get; set; } public int? Jour { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Organisme /// Gets or Sets Organisme
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "organisme")] [DataMember(Name="organisme")]
public string Organisme { get; set; } public string Organisme { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Mode /// Gets or Sets Mode
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "mode")] [DataMember(Name="mode")]
public ModeFormationDTO Mode { get; set; } public ModeFormationDTO Mode { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "type")] [DataMember(Name="type")]
public TypeFormationDTO Type { get; set; } public TypeFormationDTO Type { get; set; }
/// <summary> /// <summary>
/// Gets or Sets EstCertifie /// Gets or Sets EstCertifie
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name = "estCertifie")] [DataMember(Name="estCertifie")]
public bool? EstCertifie { get; set; } public bool? EstCertifie { get; set; }
/// <summary> /// <summary>
/// Gets or Sets ParticipantsFormation /// Gets or Sets ParticipantsFormation
/// </summary> /// </summary>
[DataMember(Name = "participantsFormation")] [DataMember(Name="participantsFormation")]
public List<FormationDTOParticipantsFormation> ParticipantsFormation { get; set; } public List<FormationDTOParticipantsFormation> ParticipantsFormation { get; set; }
/// <summary> /// <summary>
@ -294,7 +294,7 @@ namespace IO.Swagger.DTO
} }
#region Operators #region Operators
#pragma warning disable 1591 #pragma warning disable 1591
public static bool operator ==(FormationDTO left, FormationDTO right) public static bool operator ==(FormationDTO left, FormationDTO right)
{ {
@ -306,7 +306,7 @@ namespace IO.Swagger.DTO
return !Equals(left, right); return !Equals(left, right);
} }
#pragma warning restore 1591 #pragma warning restore 1591
#endregion Operators #endregion Operators
} }
} }

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateCreation /// Gets or Sets DateCreation

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -30,7 +30,7 @@ namespace IO.Swagger.DTO
/// Gets or Sets Id /// Gets or Sets Id
/// </summary> /// </summary>
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Intitule /// Gets or Sets Intitule

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Libelle /// Gets or Sets Libelle

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Libelle /// Gets or Sets Libelle

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets IdCollaborateur /// Gets or Sets IdCollaborateur

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateCreation /// Gets or Sets DateCreation

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public int? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Type /// Gets or Sets Type

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.2 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -31,7 +31,7 @@ namespace IO.Swagger.DTO
/// </summary> /// </summary>
[Required] [Required]
[DataMember(Name="id")] [DataMember(Name="id")]
public decimal? Id { get; set; } public long? Id { get; set; }
/// <summary> /// <summary>
/// Gets or Sets DateEntretien /// Gets or Sets DateEntretien

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -61,7 +61,7 @@ namespace IO.Swagger.DTO
public BusinessUnitDTO BusinessUnit { get; set; } public BusinessUnitDTO BusinessUnit { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Collaborateur /// Gets or Sets Collaborateurs
/// </summary> /// </summary>
[DataMember(Name="collaborateurs")] [DataMember(Name="collaborateurs")]
public List<CollaborateurDTO> Collaborateurs { get; set; } public List<CollaborateurDTO> Collaborateurs { get; set; }
@ -79,7 +79,7 @@ namespace IO.Swagger.DTO
sb.Append(" Prenom: ").Append(Prenom).Append("\n"); sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).Append("\n"); sb.Append(" MailApside: ").Append(MailApside).Append("\n");
sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n"); sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
sb.Append(" Collaborateur: ").Append(Collaborateurs).Append("\n"); sb.Append(" Collaborateurs: ").Append(Collaborateurs).Append("\n");
sb.Append("}\n"); sb.Append("}\n");
return sb.ToString(); return sb.ToString();
} }

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire. * API qui sra utilisée afin de faire communiquer le client et le serveur ainsi que le serveur et la boîte noire.
* *
* OpenAPI spec version: 1.3.1 * OpenAPI spec version: 1.3.4
* *
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -4,6 +4,7 @@ using IO.Swagger.ModelCollaborateur;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Linq; using System.Linq;
using System.Reflection.Metadata;
using System.Threading.Tasks; using System.Threading.Tasks;
namespace EPAServeur.IServices namespace EPAServeur.IServices
@ -12,8 +13,9 @@ namespace EPAServeur.IServices
{ {
CollaborateurDTO GetCollaborateurById(Guid? id); CollaborateurDTO GetCollaborateurById(Guid? id);
CollaborateurDTO GetCollaborateurByMail(string mail); CollaborateurDTO GetCollaborateurByMail(string mail);
ProfilDTO GetProfilById(Guid? idCollaborateur);
ProfilDTO GetProfilByMail(string mail); ProfilDTO GetProfilByMail(string mail);
List<CollaborateurDTO> GetCollaborateurs(); IEnumerable<CollaborateurDTO> GetCollaborateurs(bool? asc, int? numPage, int? parPage, List<string> fonctions, long? idAgence, long? idBU, string texte, string tri);
List<CollaborateurDTO> GetCollaborateursByReferent(Guid? idRefent); IEnumerable<CollaborateurDTO> GetCollaborateursByReferent(Guid? idReferent, bool? asc, int? numPage, int? parPage, string texte, string tri);
} }
} }

@ -10,7 +10,7 @@ namespace EPAServeur.IServices
{ {
public interface IFormationService public interface IFormationService
{ {
FormationDTO GetFormationById(decimal? id); FormationDTO GetFormationById(long? id);
IEnumerable<FormationDTO> GetFormations(bool? asc, int? numPage, int? parPAge, int? idAgence, string texte, string tri); IEnumerable<FormationDTO> GetFormations(bool? asc, int? numPage, int? parPAge, int? idAgence, string texte, string tri);
IEnumerable<FormationDTO> GetFormationAnnulees(bool? asc, int? numPage, int? parPAge, int? idAgence, string texte, string tri); IEnumerable<FormationDTO> GetFormationAnnulees(bool? asc, int? numPage, int? parPAge, int? idAgence, string texte, string tri);
@ -23,6 +23,6 @@ namespace EPAServeur.IServices
FormationDTO AddFormation(FormationDTO formationDTO); FormationDTO AddFormation(FormationDTO formationDTO);
FormationDTO UpdateFormation(FormationDTO formationDTO); FormationDTO UpdateFormation(FormationDTO formationDTO);
bool DeleteFormationById(decimal? id); bool DeleteFormationById(long? id);
} }
} }

@ -0,0 +1,22 @@
using EPAServeur.Models.Notes;
using IO.Swagger.DTO;
using Org.BouncyCastle.Bcpg.OpenPgp;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace EPAServeur.IServices
{
public interface INoteService
{
//bool? asc, int? numPage, int? parPAge, string texte, string tri)
public IEnumerable<AffichageNoteDTO> GetNotes(bool? asc, int? numPage, int? parPAge, string texte, string tri);
public IEnumerable<AffichageNoteDTO> GetNotesByAuteur(Guid? idAuteur, bool? asc, int? numPage, int? parPAge, string texte, string tri);
public DetailsNoteDTO GetNoteById(long? idNote);
public IEnumerable<AffichageNoteDTO> GetNotesByCollaborateur(Guid? idAuteur, Guid? idCollaborateur, bool? asc, int? numPage, int? parPAge, string texte, string tri);
public Note AjouterNote(DetailsNoteDTO nouvelleNote);
public bool SupprimerNote(long? idNote);
public Note UpdateNote(long? idNote, DetailsNoteDTO note);
}
}

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */
@ -62,7 +62,7 @@ namespace IO.Swagger.ModelCollaborateur
/// <param name="periodeEssai">periodeEssai.</param> /// <param name="periodeEssai">periodeEssai.</param>
/// <param name="dateArrivee">dateArrivee.</param> /// <param name="dateArrivee">dateArrivee.</param>
/// <param name="dateDepart">dateDepart.</param> /// <param name="dateDepart">dateDepart.</param>
public Collaborateur(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), Genre? genre = default(Genre?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), Adresse adresse = default(Adresse), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), Statut? statut = default(Statut?), List<Fonction> fonctions = default(List<Fonction>), BU businessUnit = default(BU), Collaborateur referent = default(Collaborateur), Collaborateur parrain = default(Collaborateur), List<Projet> projets = default(List<Projet>), List<Technologie> technologiesPref = default(List<Technologie>), List<PeriodeEssai> periodeEssai = default(List<PeriodeEssai>), DateTime? dateArrivee = default(DateTime?), DateTime? dateDepart = default(DateTime?)) public Collaborateur(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), Genre? genre = default(Genre?), DateTime? dateNaissance = default(DateTime?), int? nbEnfants = default(int?), Adresse adresse = default(Adresse), string telephone = default(string), string mailPerso = default(string), string mailApside = default(string), Statut? statut = default(Statut?), List<Fonction> fonctions = default(List<Fonction>), BU businessUnit = default(BU), Referent referent = default(Referent), Collaborateur parrain = default(Collaborateur), List<Projet> projets = default(List<Projet>), List<Technologie> technologiesPref = default(List<Technologie>), List<PeriodeEssai> periodeEssai = default(List<PeriodeEssai>), DateTime? dateArrivee = default(DateTime?), DateTime? dateDepart = default(DateTime?))
{ {
// to ensure "id" is required (not null) // to ensure "id" is required (not null)
if (id == null) if (id == null)
@ -183,7 +183,7 @@ namespace IO.Swagger.ModelCollaborateur
/// Gets or Sets Referent /// Gets or Sets Referent
/// </summary> /// </summary>
[DataMember(Name="referent", EmitDefaultValue=false)] [DataMember(Name="referent", EmitDefaultValue=false)]
public Collaborateur Referent { get; set; } public Referent Referent { get; set; }
/// <summary> /// <summary>
/// Gets or Sets Parrain /// Gets or Sets Parrain

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -0,0 +1,234 @@
/*
* 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.Text.RegularExpressions;
using System.Collections;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Runtime.Serialization;
using Newtonsoft.Json;
using Newtonsoft.Json.Converters;
using System.ComponentModel.DataAnnotations;
using SwaggerDateConverter = IO.Swagger.ClientCollaborateur.SwaggerDateConverter;
namespace IO.Swagger.ModelCollaborateur
{
/// <summary>
/// Referent
/// </summary>
[DataContract]
public partial class Referent : IEquatable<Referent>, IValidatableObject
{
/// <summary>
/// Initializes a new instance of the <see cref="Referent" /> class.
/// </summary>
/// <param name="id">id (required).</param>
/// <param name="nom">nom (required).</param>
/// <param name="prenom">prenom (required).</param>
/// <param name="mailApside">mailApside (required).</param>
/// <param name="dateDebut">dateDebut.</param>
/// <param name="dateFin">dateFin.</param>
public Referent(Guid? id = default(Guid?), string nom = default(string), string prenom = default(string), string mailApside = default(string), DateTime? dateDebut = default(DateTime?), DateTime? dateFin = default(DateTime?))
{
// to ensure "id" is required (not null)
if (id == null)
{
throw new InvalidDataException("id is a required property for Referent and cannot be null");
}
else
{
this.Id = id;
}
// to ensure "nom" is required (not null)
if (nom == null)
{
throw new InvalidDataException("nom is a required property for Referent and cannot be null");
}
else
{
this.Nom = nom;
}
// to ensure "prenom" is required (not null)
if (prenom == null)
{
throw new InvalidDataException("prenom is a required property for Referent and cannot be null");
}
else
{
this.Prenom = prenom;
}
// to ensure "mailApside" is required (not null)
if (mailApside == null)
{
throw new InvalidDataException("mailApside is a required property for Referent and cannot be null");
}
else
{
this.MailApside = mailApside;
}
this.DateDebut = dateDebut;
this.DateFin = dateFin;
}
/// <summary>
/// Gets or Sets Id
/// </summary>
[DataMember(Name="id", EmitDefaultValue=false)]
public Guid? Id { get; set; }
/// <summary>
/// Gets or Sets Nom
/// </summary>
[DataMember(Name="nom", EmitDefaultValue=false)]
public string Nom { get; set; }
/// <summary>
/// Gets or Sets Prenom
/// </summary>
[DataMember(Name="prenom", EmitDefaultValue=false)]
public string Prenom { get; set; }
/// <summary>
/// Gets or Sets MailApside
/// </summary>
[DataMember(Name="mailApside", EmitDefaultValue=false)]
public string MailApside { get; set; }
/// <summary>
/// Gets or Sets DateDebut
/// </summary>
[DataMember(Name="dateDebut", EmitDefaultValue=false)]
public DateTime? DateDebut { get; set; }
/// <summary>
/// Gets or Sets DateFin
/// </summary>
[DataMember(Name="dateFin", EmitDefaultValue=false)]
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 Referent {\n");
sb.Append(" Id: ").Append(Id).Append("\n");
sb.Append(" Nom: ").Append(Nom).Append("\n");
sb.Append(" Prenom: ").Append(Prenom).Append("\n");
sb.Append(" MailApside: ").Append(MailApside).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 virtual string ToJson()
{
return JsonConvert.SerializeObject(this, Formatting.Indented);
}
/// <summary>
/// Returns true if objects are equal
/// </summary>
/// <param name="input">Object to be compared</param>
/// <returns>Boolean</returns>
public override bool Equals(object input)
{
return this.Equals(input as Referent);
}
/// <summary>
/// Returns true if Referent instances are equal
/// </summary>
/// <param name="input">Instance of Referent to be compared</param>
/// <returns>Boolean</returns>
public bool Equals(Referent input)
{
if (input == null)
return false;
return
(
this.Id == input.Id ||
(this.Id != null &&
this.Id.Equals(input.Id))
) &&
(
this.Nom == input.Nom ||
(this.Nom != null &&
this.Nom.Equals(input.Nom))
) &&
(
this.Prenom == input.Prenom ||
(this.Prenom != null &&
this.Prenom.Equals(input.Prenom))
) &&
(
this.MailApside == input.MailApside ||
(this.MailApside != null &&
this.MailApside.Equals(input.MailApside))
) &&
(
this.DateDebut == input.DateDebut ||
(this.DateDebut != null &&
this.DateDebut.Equals(input.DateDebut))
) &&
(
this.DateFin == input.DateFin ||
(this.DateFin != null &&
this.DateFin.Equals(input.DateFin))
);
}
/// <summary>
/// Gets the hash code
/// </summary>
/// <returns>Hash code</returns>
public override int GetHashCode()
{
unchecked // Overflow is fine, just wrap
{
int hashCode = 41;
if (this.Id != null)
hashCode = hashCode * 59 + this.Id.GetHashCode();
if (this.Nom != null)
hashCode = hashCode * 59 + this.Nom.GetHashCode();
if (this.Prenom != null)
hashCode = hashCode * 59 + this.Prenom.GetHashCode();
if (this.MailApside != null)
hashCode = hashCode * 59 + this.MailApside.GetHashCode();
if (this.DateDebut != null)
hashCode = hashCode * 59 + this.DateDebut.GetHashCode();
if (this.DateFin != null)
hashCode = hashCode * 59 + this.DateFin.GetHashCode();
return hashCode;
}
}
/// <summary>
/// To validate all properties of the instance
/// </summary>
/// <param name="validationContext">Validation context</param>
/// <returns>Validation Result</returns>
IEnumerable<System.ComponentModel.DataAnnotations.ValidationResult> IValidatableObject.Validate(ValidationContext validationContext)
{
yield break;
}
}
}

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -3,7 +3,7 @@
* *
* Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside * Api du service Collaborateur, utilisée pour récupérer les données des collaborateurs d'Apside
* *
* OpenAPI spec version: 1.1.2 * OpenAPI spec version: 1.1.3
* Contact: lilian.gayet@apside-groupe.com * Contact: lilian.gayet@apside-groupe.com
* Generated by: https://github.com/swagger-api/swagger-codegen.git * Generated by: https://github.com/swagger-api/swagger-codegen.git
*/ */

@ -7,11 +7,11 @@ namespace EPAServeur.Models.EP
{ {
public class AugmentationSalaire public class AugmentationSalaire
{ {
public int Id { get; set; } public long Id { get; set; }
public double Augmentation { get; set; } public float Augmentation { get; set; }
public double? PrimeMission { get; set; } public float? PrimeMission { get; set; }
public string Message { get; set; } public string Message { get; set; }
public int EpId { get; set; } public long EpId { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
} }
} }

@ -7,9 +7,9 @@ namespace EPAServeur.Models.EP
{ {
public class Autorisation public class Autorisation
{ {
public int Id { get; set; } public long Id { get; set; }
public string IdReferent { get; set; } public string IdReferent { get; set; }
public int EpId { get; set; } public long EpId { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
} }
} }

@ -7,8 +7,8 @@ namespace EPAServeur.Models.EP
{ {
public class ChoixTypeEntretien public class ChoixTypeEntretien
{ {
public int Id { get; set; } public long Id { get; set; }
public int Ordre { get; set; } public long Ordre { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
public TypeEntretien TypeEntretien { get; set; } public TypeEntretien TypeEntretien { get; set; }
} }

@ -7,14 +7,14 @@ namespace EPAServeur.Models.EP
{ {
public class Delegation public class Delegation
{ {
public int Id { get; set; } public long Id { get; set; }
public string IdReferent { get; set; } public string IdReferent { get; set; }
public DateTime DateDemande { get; set; } public DateTime DateDemande { get; set; }
public string RaisonDemande { get; set; } public string RaisonDemande { get; set; }
public bool? Reponse { get; set; } public bool? Reponse { get; set; }
public DateTime DateReponse { get; set; } public DateTime DateReponse { get; set; }
public string RaisonRefus { get; set; } public string RaisonRefus { get; set; }
public int EpId { get; set; } public long EpId { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
} }
} }

@ -8,7 +8,7 @@ namespace EPAServeur.Models.EP
{ {
public class Document public class Document
{ {
public int Id { get; set; } public long Id { get; set; }
public TypeChamp TypeDocument { get; set; } public TypeChamp TypeDocument { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
public List<Saisie> Saisies { get; set; } public List<Saisie> Saisies { get; set; }

@ -7,7 +7,7 @@ namespace EPAServeur.Models.EP
{ {
public class Engagement public class Engagement
{ {
public int Id { get; set; } public long Id { get; set; }
public string Action { get; set; } public string Action { get; set; }
public string Disposition { get; set; } public string Disposition { get; set; }
public string Modalite { get; set; } public string Modalite { get; set; }

@ -23,14 +23,14 @@ namespace EPAServeur.Models.EP
public class Ep public class Ep
{ {
public int Id { get; set; } public long Id { get; set; }
public string IdCollaborateur { get; set; } public string IdCollaborateur { get; set; }
public string IdReferent { get; set; } public string IdReferent { get; set; }
public int IdAgence { get; set; } public long IdAgence { get; set; }
public int IdBu { get; set; } public long IdBu { get; set; }
public string Fonction { get; set; } public string Fonction { get; set; }
public TypeChamp TypeEP { get; set; } public TypeChamp TypeEP { get; set; }
public int? NumeroEp { get; set; } public long? NumeroEp { get; set; }
public bool Obligatoire { get; set; } public bool Obligatoire { get; set; }
public DateTime DateCreation { get; set; } public DateTime DateCreation { get; set; }
public DateTime DateSaisie { get; set; } public DateTime DateSaisie { get; set; }

@ -7,7 +7,7 @@ namespace EPAServeur.Models.EP
{ {
public class Objectif public class Objectif
{ {
public int Id { get; set; } public long Id { get; set; }
public string Libelle { get; set; } public string Libelle { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
} }

@ -7,7 +7,7 @@ namespace EPAServeur.Models.EP
{ {
public class ObjectifPrecedent public class ObjectifPrecedent
{ {
public int Id { get; set; } public long Id { get; set; }
public string Libelle { get; set; } public string Libelle { get; set; }
public bool? Atteint { get; set; } public bool? Atteint { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }

@ -7,7 +7,7 @@ namespace EPAServeur.Models.EP
{ {
public class ParticipantEP public class ParticipantEP
{ {
public int Id { get; set; } public long Id { get; set; }
public string IdCollaborateur { get; set; } public string IdCollaborateur { get; set; }
public Ep Ep { get; set; } public Ep Ep { get; set; }
} }

@ -7,9 +7,9 @@ namespace EPAServeur.Models.EP
{ {
public class RdvEntretien public class RdvEntretien
{ {
public int Id { get; set; } public long Id { get; set; }
public TypeEntretien TypeEntretien { get; set; } public TypeEntretien TypeEntretien { get; set; }
public int EpId { get; set; } public long EpId { get; set; }
public Ep EpChoixFinal { get; set; } public Ep EpChoixFinal { get; set; }
public Ep EpProposition { get; set; } public Ep EpProposition { get; set; }
} }

@ -7,7 +7,7 @@ namespace EPAServeur.Models.EP
{ {
public class TypeEntretien public class TypeEntretien
{ {
public int Id { get; set; } public long Id { get; set; }
public string Libelle { get; set; } public string Libelle { get; set; }
public List<RdvEntretien> RdvEntretiens { get; set; } public List<RdvEntretien> RdvEntretiens { get; set; }
public List<ChoixTypeEntretien> ChoixTypeEntretien { get; set; } public List<ChoixTypeEntretien> ChoixTypeEntretien { get; set; }

@ -8,7 +8,7 @@ namespace EPAServeur.Models.Formation
{ {
public class DemandeFormation public class DemandeFormation
{ {
public int Id { get; set; } public long Id { get; set; }
public string Description { get; set; } public string Description { get; set; }
public DateTime DateDemande { get; set; } public DateTime DateDemande { get; set; }
public bool DemandeRH { get; set; } public bool DemandeRH { get; set; }

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save