diff --git a/Attributes/ValidateModelStateAttribute.cs b/Attributes/ValidateModelStateAttribute.cs
new file mode 100644
index 0000000..07cfabe
--- /dev/null
+++ b/Attributes/ValidateModelStateAttribute.cs
@@ -0,0 +1,61 @@
+using System.ComponentModel.DataAnnotations;
+using System.Reflection;
+using Microsoft.AspNetCore.Mvc;
+using Microsoft.AspNetCore.Mvc.Controllers;
+using Microsoft.AspNetCore.Mvc.Filters;
+using Microsoft.AspNetCore.Mvc.ModelBinding;
+
+namespace IO.Swagger.Attributes
+{
+ ///
+ /// Model state validation attribute
+ ///
+ public class ValidateModelStateAttribute : ActionFilterAttribute
+ {
+ ///
+ /// Called before the action method is invoked
+ ///
+ ///
+ public override void OnActionExecuting(ActionExecutingContext context)
+ {
+ // Per https://blog.markvincze.com/how-to-validate-action-parameters-with-dataannotation-attributes/
+ var descriptor = context.ActionDescriptor as ControllerActionDescriptor;
+ if (descriptor != null)
+ {
+ foreach (var parameter in descriptor.MethodInfo.GetParameters())
+ {
+ object args = null;
+ if (context.ActionArguments.ContainsKey(parameter.Name))
+ {
+ args = context.ActionArguments[parameter.Name];
+ }
+
+ ValidateAttributes(parameter, args, context.ModelState);
+ }
+ }
+
+ if (!context.ModelState.IsValid)
+ {
+ context.Result = new BadRequestObjectResult(context.ModelState);
+ }
+ }
+
+ private void ValidateAttributes(ParameterInfo parameter, object args, ModelStateDictionary modelState)
+ {
+ foreach (var attributeData in parameter.CustomAttributes)
+ {
+ var attributeInstance = parameter.GetCustomAttribute(attributeData.AttributeType);
+
+ var validationAttribute = attributeInstance as ValidationAttribute;
+ if (validationAttribute != null)
+ {
+ var isValid = validationAttribute.IsValid(args);
+ if (!isValid)
+ {
+ modelState.AddModelError(parameter.Name, validationAttribute.FormatErrorMessage(parameter.Name));
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/Controllers/CollaborateursApi.cs b/Controllers/CollaborateursApi.cs
new file mode 100644
index 0000000..12a594a
--- /dev/null
+++ b/Controllers/CollaborateursApi.cs
@@ -0,0 +1,212 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class CollaborateursApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Récupérer un collaboratuer par son id
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/collaborateurs/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetCollaborateurById")]
+ [SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ 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(..), ...
+ // 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(..), ...
+ // 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(exampleJson)
+ : default(CollaborateurDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer un collaborateur par son mail
+ /// mail de l'utilisateur connecté (mail obtenu via le token Keycloak)
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/collaborateurs/{mail}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetCollaborateurByMail")]
+ [SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ 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(..), ...
+ // 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(exampleJson)
+ : default(CollaborateurDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des collaborateurs
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Liste des fonctions des collaborateurs que l'on veut récupérer
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// id de la business unit à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/collaborateurs")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetCollaborateurs")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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 fonctions, [FromQuery]int? idAgence, [FromQuery]int? 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, default(List));
+
+ //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));
+ 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
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des collaborateurs dont le référent à la charge
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id referent
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/collaborateurs/referent/{idReferent}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetCollaborateursByReferent")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'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)
+ {
+ //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));
+
+ //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}, {\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>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer un profil collaborateur par mail
+ /// mail de l'utilisateur connecté (mail obtenu via le token Keycloak)
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/collaborateurs/{mail}/profil")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetProfilCollaborateurByMail")]
+ [SwaggerResponse(statusCode: 200, type: typeof(ProfilDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ 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(..), ...
+ // 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 \"nom\" : \"nom\",\n \"prenom\" : \"prenom\"\n}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(ProfilDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+ }
+}
diff --git a/Controllers/DemandesDelegationApi.cs b/Controllers/DemandesDelegationApi.cs
new file mode 100644
index 0000000..c5da52a
--- /dev/null
+++ b/Controllers/DemandesDelegationApi.cs
@@ -0,0 +1,125 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class DemandesDelegationApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Faire une demande de délégation à une autre personne
+ /// id collaborateur
+ /// id EP
+ /// Demande de délégation envoyée avec succès
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesdelegation/ep/{idEP}/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("FaireDemandeDelegation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult FaireDemandeDelegation([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]int? idEP)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupération de la liste des demandes de délégation
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesdelegation/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetDemandesDelegation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetDemandesDelegation([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(..), ...
+ // return StatusCode(200, default(List));
+
+ //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 \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n}, {\n \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Faire une demande de délégation à une autre personne
+ ///
+ /// id demande delegation
+ /// Réponse demande de délagation envoyée avec succès
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpPut]
+ [Route("/api/demandesdelegation/{idDemandeDelegation}/repondre")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("RepondreDemandeDelegation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult RepondreDemandeDelegation([FromBody]CreationDemandeDelegationDTO body, [FromRoute][Required]int? idDemandeDelegation)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/DemandesEPIApi.cs b/Controllers/DemandesEPIApi.cs
new file mode 100644
index 0000000..3f612ad
--- /dev/null
+++ b/Controllers/DemandesEPIApi.cs
@@ -0,0 +1,282 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class DemandesEPIApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Annuler la demande d'EPI
+ /// id demande EPI
+ /// demande d'EPI annulée
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/{idDemandeEPI}/annuler")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("AnnulerDemandeEPI")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult AnnulerDemandeEPI([FromRoute][Required]int? idDemandeEPI)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Lancer la procedure pour un entretien professionnel intermediaire, une demande d'EPI validée est créé par la même occasion
+ /// id collaborateur
+ /// id referent
+ /// Demande d'EPI créée avec l'EPI correspondant
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/referent/{idReferent}/demande/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("CreateEPI")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult CreateEPI([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Demande d'EPI par un collaborateur
+ /// id collaborateur
+ /// demande d'EPI effectuée
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/collaborateur/{idCollaborateur}/demande")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("DemandeEPI")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult DemandeEPI([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(..), ...
+ // return StatusCode(200);
+
+ //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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Demande d'EPI et par l'assistant et création automatique de l'EPI
+ /// id collaborateur
+ /// Demande d'EPI créée avec l'EPI correspondant
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/demandeassistante/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("DemandeEPIAssistante")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult DemandeEPIAssistante([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(..), ...
+ // return StatusCode(200);
+
+ //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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupération de la liste des précédents EPI d'un collaborateur
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/collaborateur/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPICollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPICollaborateur([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(..), ...
+ // return StatusCode(200, default(List));
+
+ //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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupération de l'EPI en cours d'un collaborateur
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/collaborateur/{idCollaborateur}/enCours")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPIEnCours")]
+ [SwaggerResponse(statusCode: 200, type: typeof(DemandeEPIDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPIEnCours([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(..), ...
+ // return StatusCode(200, default(DemandeEPIDTO));
+
+ //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 \"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}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(DemandeEPIDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupération de la liste des précédents EPI d'un referent
+ /// id referent
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/demandesepi/referent/{idReferent}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPIReferent")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPIReferent([FromRoute][Required]Guid? idReferent)
+ {
+ //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));
+
+ //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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Répondre à une demande EPI en attente
+ ///
+ /// id demande EPI
+ /// Réponse à la demande d'EPI envoyée
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpPut]
+ [Route("/api/demandesepi/{idDemandeEPI}/repondre")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("RepondreDemandeEPI")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult RepondreDemandeEPI([FromBody]DemandeEPIDTO body, [FromRoute][Required]int? idDemandeEPI)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/DemandesFormationApi.cs b/Controllers/DemandesFormationApi.cs
new file mode 100644
index 0000000..4d0ca11
--- /dev/null
+++ b/Controllers/DemandesFormationApi.cs
@@ -0,0 +1,248 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class DemandesFormationApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Créer une demande de formation pour un collaborateur
+ ///
+ /// Demande formation créée
+ /// Acces interdit
+ [HttpPost]
+ [Route("/api/demandeformation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("CreerDemandeFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult CreerDemandeFormation([FromBody]CreationDemandeFormationDTO 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des demandes de formations
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Thème des demandes de formation à récupérer
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/demandeformation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetDemandesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des demandes de formations en attente d'une réponse
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Thème des demandes de formation à récupérer
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/demandeformation/enattente")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetDemandesFormationEnAttente")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des demandes de formations ayant reçu une réponse
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Thème des demandes de formation à récupérer
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/demandeformation/repondus")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetDemandesFormationRepondues")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des origines des demandes de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/originesdemandesformation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetOriginesDemandesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetOriginesDemandesFormation()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 0\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 0\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des thèmes des demandes de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/themes")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetThemes")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetThemes()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n}, {\n \"id\" : 9,\n \"demandesFormation\" : [ null, null ],\n \"nom\" : \"nom\"\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Répondre a une demande de formation et la mettre à jour
+ ///
+ /// demande formation mise à jour
+ /// Demande formation créée
+ /// Acces interdit
+ [HttpPut]
+ [Route("/api/demandeformation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("UpdateDemandeFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult UpdateDemandeFormation([FromBody]DemandeFormationDTO body)
+ {
+ //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(200);
+
+ //TODO: Uncomment the next line to return response 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/EngagementsApi.cs b/Controllers/EngagementsApi.cs
new file mode 100644
index 0000000..dc838be
--- /dev/null
+++ b/Controllers/EngagementsApi.cs
@@ -0,0 +1,159 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class EngagementsApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Récupérer la liste des engagements
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/engagements")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEngagements")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des engagements en attente
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/engagements/enattente")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEngagementsEnAttente")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des engagements ayant reçu une réponse
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/engagements/repondus")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEngagementsRepondus")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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)
+ {
+ //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));
+
+ //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));
+ 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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Donnez une réponse à un engagement
+ ///
+ /// Engagement mise à jour
+ /// Acces interdit
+ [HttpPut]
+ [Route("/api/engagements")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("RepondreEngagement")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult RepondreEngagement([FromBody]EngagementDTO body)
+ {
+ //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(200);
+
+ //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/EpApi.cs b/Controllers/EpApi.cs
new file mode 100644
index 0000000..c4009d0
--- /dev/null
+++ b/Controllers/EpApi.cs
@@ -0,0 +1,418 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class EpApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les EP collaborateurs
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// id de la business unit à laquelle sont rattachées les données à récupérer
+ /// Statut de l'EP
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/ep")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEP")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetEP([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]int? idBU, [FromQuery]int? statutEP, [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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des EP d'un collaborateur
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id collaborateur
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Statut de l'EP
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/collaborateur/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPByCollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? statutEP, [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));
+
+ //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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer un EP par son id
+ /// id EP
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/{idEP}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPById")]
+ [SwaggerResponse(statusCode: 200, type: typeof(EpDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPById([FromRoute][Required]int? idEP)
+ {
+ //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(EpDTO));
+
+ //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 \"augmentationSalaire\" : {\n \"id\" : 4,\n \"augmentation\" : 7.386281948385884,\n \"message\" : \"message\",\n \"primeMission\" : 1.2315135367772556\n },\n \"dateSaisie\" : \"2000-01-23T04:56:07.000+00:00\",\n \"documents\" : [ {\n \"id\" : 1,\n \"type\" : \"type\",\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 }, {\n \"id\" : 1,\n \"type\" : \"type\",\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 } ],\n \"propositionsEntretien\" : [ {\n \"typeEntretien\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateEntretien\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1.4658129805029452\n }, {\n \"typeEntretien\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateEntretien\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1.4658129805029452\n } ],\n \"obligatoire\" : true,\n \"dateDisponibilite\" : \"2000-01-23T04:56:07.000+00:00\",\n \"demandesFormation\" : [ {\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 \"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 \"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 \"type\" : \"type\",\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 \"objectifPrecedent\" : [ {\n \"libelle\" : \"libelle\",\n \"id\" : 2,\n \"atteint\" : true,\n \"commentaire\" : \"commentaire\"\n }, {\n \"libelle\" : \"libelle\",\n \"id\" : 2,\n \"atteint\" : true,\n \"commentaire\" : \"commentaire\"\n } ],\n \"demandesDelegation\" : [ {\n \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n }, {\n \"reponse\" : true,\n \"raisonRefus\" : \"raisonRefus\",\n \"dateReponse\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 1,\n \"dateDemande\" : \"2000-01-23T04:56:07.000+00:00\"\n } ],\n \"cv\" : \"cv\",\n \"commentaireCommercial\" : \"commentaireCommercial\",\n \"objectif\" : [ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n }, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n } ],\n \"engagements\" : [ {\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 } ],\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"commentaireAssistant\" : \"commentaireAssistant\",\n \"statut\" : 6.027456183070403,\n \"participants\" : [ {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"id\" : 3,\n \"collaborateur\" : \"collaborateur\"\n }, {\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"id\" : 3,\n \"collaborateur\" : \"collaborateur\"\n } ]\n}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(EpDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les EP fait passer par le référent
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id referent
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/referent/{idReferent}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPByReferent")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetEPByReferent([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));
+
+ //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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les prochaines EP collaborateurs
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// id de la business unit à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/ep/enCours")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPEnCours")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetEPEnCours([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]int? 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, default(List));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les EP collaborateur signés
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// id de la business unit à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/ep/signes")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetEPSignes")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetEPSignes([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]int? 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, default(List));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les détails sur quand aura lieu le prochain EP du collaborateur
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/collaborateur/{idCollaborateur}/prochain")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetProchainEPCollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(ProchainEPDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetProchainEPCollaborateur([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(..), ...
+ // return StatusCode(200, default(ProchainEPDTO));
+
+ //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 \"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}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(ProchainEPDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les prochaines EP que fera passer le référent
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id referent
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/referent/{idReferent}/prochains")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetProchainsEPByReferent")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetProchainsEPByReferent([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));
+
+ //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 \"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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Faire un rappel de signature EP
+ /// id EP
+ /// Notification de rappel envoyé
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/{idEP}/rappelSignature")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("RappelSignature")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult RappelSignature([FromRoute][Required]int? idEP)
+ {
+ //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(..), ...
+ // 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer le prochain EP du collaborateur dans le but de le saisir
+ /// id collaborateur
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/ep/collaborateur/{idCollaborateur}/prochain/saisir")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("SaisieProchainEP")]
+ [SwaggerResponse(statusCode: 200, type: typeof(EpSaisieDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult SaisieProchainEP([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(..), ...
+ // return StatusCode(200, default(EpSaisieDTO));
+
+ //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 \"cv\" : \"cv\",\n \"documents\" : [ {\n \"id\" : 1,\n \"type\" : \"type\",\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 }, {\n \"id\" : 1,\n \"type\" : \"type\",\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 } ],\n \"choixEntretien\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"obligatoire\" : true,\n \"objectif\" : [ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n }, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n } ],\n \"id\" : 0.8008281904610115,\n \"datePrevisionnelle\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : \"type\",\n \"objectifPrecedent\" : [ {\n \"libelle\" : \"libelle\",\n \"id\" : 2,\n \"atteint\" : true,\n \"commentaire\" : \"commentaire\"\n }, {\n \"libelle\" : \"libelle\",\n \"id\" : 2,\n \"atteint\" : true,\n \"commentaire\" : \"commentaire\"\n } ]\n}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(EpSaisieDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Mettre à jour l'EP déjà saisie
+ ///
+ /// EP mise à jour avec succès
+ /// Acces interdit
+ [HttpPut]
+ [Route("/api/ep/update")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("UpdateEP")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult UpdateEP([FromBody]EpDTO body)
+ {
+ //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(200);
+
+ //TODO: Uncomment the next line to return response 403 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/FormationsApi.cs b/Controllers/FormationsApi.cs
new file mode 100644
index 0000000..4d8381d
--- /dev/null
+++ b/Controllers/FormationsApi.cs
@@ -0,0 +1,413 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class FormationsApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Ajouter une nouvelle formation
+ ///
+ /// Formation créée avec succès
+ /// Acces interdit
+ [HttpPost]
+ [Route("/api/formations")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("AjouterFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult AjouterFormation([FromBody]FormationDTO 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Supprimer une formation
+ /// id formation
+ /// Formation supprimée avec succès
+ /// Acces interdit
+ [HttpDelete]
+ [Route("/api/formations/{idFormation}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("DeleteFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult DeleteFormation([FromRoute][Required]decimal? idFormation)
+ {
+ //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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les formations annulées
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/formations/annulees")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetFormationAnnulees")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetFormationAnnulees([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? 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(..), ...
+ // return StatusCode(200, default(List));
+
+ //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 \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer une formation par son id
+ /// id formation
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/formations/{idFormation}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetFormationById")]
+ [SwaggerResponse(statusCode: 200, type: typeof(FormationDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetFormationById([FromRoute][Required]decimal? idFormation)
+ {
+ //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(FormationDTO));
+
+ //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 \"heure\" : 1.4658129805029452,\n \"participantsFormation\" : [ {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 5,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n }, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 5,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n } ],\n \"organisme\" : \"organisme\",\n \"origine\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"jour\" : 5.962133916683182,\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n }\n}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(FormationDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les formations réalisées
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/formations/realisees")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetFormationRealisee")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetFormationRealisee([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? 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(..), ...
+ // return StatusCode(200, default(List));
+
+ //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 \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des formations
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Statut de la formation
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/formations")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetFormations")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetFormations([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? idAgence, [FromQuery]int? statutFormation, [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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les modes de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/modesFormation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetModesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetModesFormation()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les origines de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/originesFormation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetOriginesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetOriginesFormation()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les formations plannifié et replannifié
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/formations/prochaines")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetProchainesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetProchainesFormation([FromQuery][Required()]bool? asc, [FromQuery][Required()]int? numPage, [FromQuery][Required()]int? parPAge, [FromQuery]int? 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(..), ...
+ // return StatusCode(200, default(List));
+
+ //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 \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n}, {\n \"mode\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"dateDebut\" : \"2000-01-23T04:56:07.000+00:00\",\n \"estCertifie\" : true,\n \"id\" : 0,\n \"dateFin\" : \"2000-01-23T04:56:07.000+00:00\",\n \"type\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n },\n \"intitule\" : \"intitule\",\n \"statut\" : {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n },\n \"nbPartitipants\" : 1\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les statuts de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/statutsFormation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetStatutsFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetStatutsFormation()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 6\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les types de formation
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/typesFormation")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetTypesFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult GetTypesFormation()
+ {
+ //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));
+
+ //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));
+ string exampleJson = null;
+ exampleJson = "[ {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n}, {\n \"libelle\" : \"libelle\",\n \"id\" : 5\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Mettre à jour une formation
+ ///
+ /// formation mise à jour
+ /// Formation créée avec succès
+ /// Acces interdit
+ [HttpPut]
+ [Route("/api/formations")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("UpdateFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult UpdateFormation([FromBody]FormationDTO body)
+ {
+ //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(200);
+
+ //TODO: Uncomment the next line to return response 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/NotesApi.cs b/Controllers/NotesApi.cs
new file mode 100644
index 0000000..24636f1
--- /dev/null
+++ b/Controllers/NotesApi.cs
@@ -0,0 +1,217 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class NotesApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Supprimer une note
+ /// id note
+ /// Note supprimée
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpDelete]
+ [Route("/api/notes/{idNote}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("DeleteNote")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult DeleteNote([FromRoute][Required]int? 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(..), ...
+ // 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer une note par son id
+ /// id note
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/notes/{idNote}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetNoteById")]
+ [SwaggerResponse(statusCode: 200, type: typeof(DetailsNoteDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetNoteById([FromRoute][Required]int? 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(..), ...
+ // 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 \"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 \"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}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(DetailsNoteDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer les notes d'une personne a écrite
+ /// id referent
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/notes/auteur/{idReferent}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetNotesByAuteur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetNotesByAuteur([FromRoute][Required]Guid? idReferent)
+ {
+ //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));
+
+ //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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer une note par son id
+ /// id collaborateur
+ /// id referent
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/notes/auteur/{idReferent}/collaborateur/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetNotesByCollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetNotesByCollaborateur([FromRoute][Required]Guid? idCollaborateur, [FromRoute][Required]Guid? idReferent)
+ {
+ //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));
+
+ //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 \"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} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Ajouter une nouvelle note
+ ///
+ /// Note créée avec succès
+ /// Acces interdit
+ [HttpPost]
+ [Route("/api/notes/")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("NouvelleNote")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Mettre à jour une note
+ ///
+ /// Note mise à jour avec succès
+ /// Note créée avec succès
+ /// Acces interdit
+ [HttpPut]
+ [Route("/api/notes/")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("UpdateNote")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ public virtual IActionResult UpdateNote([FromBody]DetailsNoteDTO body)
+ {
+ //TODO: Uncomment the next line to return response 200 or use other options such as return this.NotFound(), return this.BadRequest(..), ...
+ // return StatusCode(200);
+
+ //TODO: Uncomment the next line to return response 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(..), ...
+ // return StatusCode(403, default(ErreurDTO));
+
+ throw new NotImplementedException();
+ }
+ }
+}
diff --git a/Controllers/ParticipationsFormationsApi.cs b/Controllers/ParticipationsFormationsApi.cs
new file mode 100644
index 0000000..62f4ed9
--- /dev/null
+++ b/Controllers/ParticipationsFormationsApi.cs
@@ -0,0 +1,175 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class ParticipationsFormationsApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Consulter une évaluation d'une formation
+ /// id participation formation
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/evaluations/participationformation/{idParticipationFormation}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("ConsulterEvaluation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(EvaluationDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult ConsulterEvaluation([FromRoute][Required]decimal? idParticipationFormation)
+ {
+ //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));
+
+ //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 \"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}";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject(exampleJson)
+ : default(EvaluationDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Evaluer une formation
+ ///
+ /// id participation formation
+ /// Evaluation envoyée avec succès
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpPut]
+ [Route("/api/evaluations/participationformation/{idParticipationFormation}/evaluer")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("EvaluerFormation")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult EvaluerFormation([FromBody]EvaluationDTO body, [FromRoute][Required]decimal? idParticipationFormation)
+ {
+ //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 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));
+
+ throw new NotImplementedException();
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des formations auxquelles est inscrit le collaborateur
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id collaborateur
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/participationsformation/collaborateur/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetParticipationByCollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetParticipationByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [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));
+
+ //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 \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n}, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste des participants d'une formation
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id formation
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/participationsformation/formation/{idFormation}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetParticipationByFormation")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'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)
+ {
+ //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));
+
+ //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 \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n}, {\n \"date\" : \"2000-01-23T04:56:07.000+00:00\",\n \"idCollaborateur\" : \"046b6c7f-0b8a-43b9-b35d-6489e6daee91\",\n \"estEvaluee\" : true,\n \"dateCreation\" : \"2000-01-23T04:56:07.000+00:00\",\n \"id\" : 0,\n \"formation\" : \"formation\",\n \"collaborateur\" : \"collaborateur\",\n \"statut\" : \"statut\"\n} ]";
+
+ var example = exampleJson != null
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+ }
+}
diff --git a/Controllers/ReferentsApi.cs b/Controllers/ReferentsApi.cs
new file mode 100644
index 0000000..6f0f6d9
--- /dev/null
+++ b/Controllers/ReferentsApi.cs
@@ -0,0 +1,142 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Collections.Generic;
+using Microsoft.AspNetCore.Mvc;
+using Swashbuckle.AspNetCore.Annotations;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations;
+using IO.Swagger.Attributes;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authorization;
+using IO.Swagger.DTO;
+
+namespace IO.Swagger.Controllers
+{
+ ///
+ ///
+ ///
+ [ApiController]
+ public class ReferentsApiController : ControllerBase
+ {
+ ///
+ ///
+ ///
+ /// Récupérer la liste des référents d'un collaborateur
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// id collaborateur
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/referents/collaborateur/{idCollaborateur}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetReferentByCollaborateur")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetReferentByCollaborateur([FromQuery][Required()]bool? asc, [FromRoute][Required]Guid? idCollaborateur, [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));
+
+ //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}, {\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>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer un referent par son id
+ /// id referent
+ /// OK
+ /// Acces interdit
+ /// Ressource n'a pas été trouvée
+ [HttpGet]
+ [Route("/api/referents/{idReferent}")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetReferentById")]
+ [SwaggerResponse(statusCode: 200, type: typeof(CollaborateurDTO), description: "OK")]
+ [SwaggerResponse(statusCode: 403, type: typeof(ErreurDTO), description: "Acces interdit")]
+ [SwaggerResponse(statusCode: 404, type: typeof(ErreurDTO), description: "Ressource n'a pas été trouvée")]
+ public virtual IActionResult GetReferentById([FromRoute][Required]Guid? idReferent)
+ {
+ //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(..), ...
+ // 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(exampleJson)
+ : default(CollaborateurDTO); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+
+ ///
+ ///
+ ///
+ /// Récupérer la liste de tous les referents
+ /// Préciser si les données sont dans l'ordre (true) ou dans l'ordre inverse (false)
+ /// Numéro de la page du tableau qui affiche les données
+ /// Nombre d'éléments affiché sur chaque page du tableau
+ /// Liste des fonctions des collaborateurs que l'on veut récupérer
+ /// id de l'agence à laquelle sont rattachées les données à récupérer
+ /// id de la business unit à laquelle sont rattachées les données à récupérer
+ /// Texte permettant d'identifier l'objet rechercher
+ /// Colonne du tableau sur lequel le tri s'effectue
+ /// OK
+ /// Acces interdit
+ [HttpGet]
+ [Route("/api/referents")]
+ [Authorize(AuthenticationSchemes = BearerAuthenticationHandler.SchemeName)]
+ [ValidateModelState]
+ [SwaggerOperation("GetReferents")]
+ [SwaggerResponse(statusCode: 200, type: typeof(List), description: "OK")]
+ [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 fonctions, [FromQuery]int? idAgence, [FromQuery]int? 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, default(List));
+
+ //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));
+ 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
+ ? JsonConvert.DeserializeObject>(exampleJson)
+ : default(List); //TODO: Change the data returned
+ return new ObjectResult(example);
+ }
+ }
+}
diff --git a/DTO/AffichageNoteDTO.cs b/DTO/AffichageNoteDTO.cs
new file mode 100644
index 0000000..92bb9a3
--- /dev/null
+++ b/DTO/AffichageNoteDTO.cs
@@ -0,0 +1,178 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Note affiché dans un tableau
+ ///
+ [DataContract]
+ public partial class AffichageNoteDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Titre
+ ///
+ [Required]
+ [DataMember(Name="titre")]
+ public string Titre { get; set; }
+
+ ///
+ /// Gets or Sets IdCollaborateur
+ ///
+ [DataMember(Name="idCollaborateur")]
+ public Guid? IdCollaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [Required]
+ [DataMember(Name="collaborateur")]
+ public string Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets DateMiseAjour
+ ///
+ [DataMember(Name="dateMiseAjour")]
+ public DateTime? DateMiseAjour { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class AffichageNoteDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Titre: ").Append(Titre).Append("\n");
+ sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" DateMiseAjour: ").Append(DateMiseAjour).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((AffichageNoteDTO)obj);
+ }
+
+ ///
+ /// Returns true if AffichageNoteDTO instances are equal
+ ///
+ /// Instance of AffichageNoteDTO to be compared
+ /// Boolean
+ public bool Equals(AffichageNoteDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Titre == other.Titre ||
+ Titre != null &&
+ Titre.Equals(other.Titre)
+ ) &&
+ (
+ IdCollaborateur == other.IdCollaborateur ||
+ IdCollaborateur != null &&
+ IdCollaborateur.Equals(other.IdCollaborateur)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ DateMiseAjour == other.DateMiseAjour ||
+ DateMiseAjour != null &&
+ DateMiseAjour.Equals(other.DateMiseAjour)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Titre != null)
+ hashCode = hashCode * 59 + Titre.GetHashCode();
+ if (IdCollaborateur != null)
+ hashCode = hashCode * 59 + IdCollaborateur.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (DateMiseAjour != null)
+ hashCode = hashCode * 59 + DateMiseAjour.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(AffichageNoteDTO left, AffichageNoteDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(AffichageNoteDTO left, AffichageNoteDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/AgenceDTO.cs b/DTO/AgenceDTO.cs
new file mode 100644
index 0000000..c088aa9
--- /dev/null
+++ b/DTO/AgenceDTO.cs
@@ -0,0 +1,150 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Une agence de Apside
+ ///
+ [DataContract]
+ public partial class AgenceDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Nom
+ ///
+ [Required]
+ [DataMember(Name="nom")]
+ public string Nom { get; set; }
+
+ ///
+ /// Gets or Sets Bu
+ ///
+ [Required]
+ [DataMember(Name="bu")]
+ public List Bu { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class AgenceDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Nom: ").Append(Nom).Append("\n");
+ sb.Append(" Bu: ").Append(Bu).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((AgenceDTO)obj);
+ }
+
+ ///
+ /// Returns true if AgenceDTO instances are equal
+ ///
+ /// Instance of AgenceDTO to be compared
+ /// Boolean
+ public bool Equals(AgenceDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Nom == other.Nom ||
+ Nom != null &&
+ Nom.Equals(other.Nom)
+ ) &&
+ (
+ Bu == other.Bu ||
+ Bu != null &&
+ Bu.SequenceEqual(other.Bu)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Nom != null)
+ hashCode = hashCode * 59 + Nom.GetHashCode();
+ if (Bu != null)
+ hashCode = hashCode * 59 + Bu.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(AgenceDTO left, AgenceDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(AgenceDTO left, AgenceDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/AugmentationSalaireDTO.cs b/DTO/AugmentationSalaireDTO.cs
new file mode 100644
index 0000000..cda9448
--- /dev/null
+++ b/DTO/AugmentationSalaireDTO.cs
@@ -0,0 +1,163 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Demande d'augmentation du salaire du collaborateur
+ ///
+ [DataContract]
+ public partial class AugmentationSalaireDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Augmentation
+ ///
+ [Required]
+ [DataMember(Name="augmentation")]
+ public decimal? Augmentation { get; set; }
+
+ ///
+ /// Gets or Sets PrimeMission
+ ///
+ [DataMember(Name="primeMission")]
+ public decimal? PrimeMission { get; set; }
+
+ ///
+ /// Gets or Sets Message
+ ///
+ [DataMember(Name="message")]
+ public string Message { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class AugmentationSalaireDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Augmentation: ").Append(Augmentation).Append("\n");
+ sb.Append(" PrimeMission: ").Append(PrimeMission).Append("\n");
+ sb.Append(" Message: ").Append(Message).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((AugmentationSalaireDTO)obj);
+ }
+
+ ///
+ /// Returns true if AugmentationSalaireDTO instances are equal
+ ///
+ /// Instance of AugmentationSalaireDTO to be compared
+ /// Boolean
+ public bool Equals(AugmentationSalaireDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Augmentation == other.Augmentation ||
+ Augmentation != null &&
+ Augmentation.Equals(other.Augmentation)
+ ) &&
+ (
+ PrimeMission == other.PrimeMission ||
+ PrimeMission != null &&
+ PrimeMission.Equals(other.PrimeMission)
+ ) &&
+ (
+ Message == other.Message ||
+ Message != null &&
+ Message.Equals(other.Message)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Augmentation != null)
+ hashCode = hashCode * 59 + Augmentation.GetHashCode();
+ if (PrimeMission != null)
+ hashCode = hashCode * 59 + PrimeMission.GetHashCode();
+ if (Message != null)
+ hashCode = hashCode * 59 + Message.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(AugmentationSalaireDTO left, AugmentationSalaireDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(AugmentationSalaireDTO left, AugmentationSalaireDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/BusinessUnitDTO.cs b/DTO/BusinessUnitDTO.cs
new file mode 100644
index 0000000..b1832e9
--- /dev/null
+++ b/DTO/BusinessUnitDTO.cs
@@ -0,0 +1,150 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Une business unit d'une agence
+ ///
+ [DataContract]
+ public partial class BusinessUnitDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Nom
+ ///
+ [Required]
+ [DataMember(Name="nom")]
+ public string Nom { get; set; }
+
+ ///
+ /// Gets or Sets Agence
+ ///
+ [Required]
+ [DataMember(Name="agence")]
+ public AgenceDTO Agence { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class BusinessUnitDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Nom: ").Append(Nom).Append("\n");
+ sb.Append(" Agence: ").Append(Agence).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((BusinessUnitDTO)obj);
+ }
+
+ ///
+ /// Returns true if BusinessUnitDTO instances are equal
+ ///
+ /// Instance of BusinessUnitDTO to be compared
+ /// Boolean
+ public bool Equals(BusinessUnitDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Nom == other.Nom ||
+ Nom != null &&
+ Nom.Equals(other.Nom)
+ ) &&
+ (
+ Agence == other.Agence ||
+ Agence != null &&
+ Agence.Equals(other.Agence)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Nom != null)
+ hashCode = hashCode * 59 + Nom.GetHashCode();
+ if (Agence != null)
+ hashCode = hashCode * 59 + Agence.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(BusinessUnitDTO left, BusinessUnitDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(BusinessUnitDTO left, BusinessUnitDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ChampDTO.cs b/DTO/ChampDTO.cs
new file mode 100644
index 0000000..afcc487
--- /dev/null
+++ b/DTO/ChampDTO.cs
@@ -0,0 +1,209 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les champs d'un EP ou d'une évaluation à remplir
+ ///
+ [DataContract]
+ public partial class ChampDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Texte
+ ///
+ [Required]
+ [DataMember(Name="texte")]
+ public string Texte { get; set; }
+
+ ///
+ /// Gets or Sets Section
+ ///
+ [Required]
+ [DataMember(Name="section")]
+ public string Section { get; set; }
+
+ ///
+ /// Gets or Sets Soussection
+ ///
+ [DataMember(Name="soussection")]
+ public string Soussection { get; set; }
+
+ ///
+ /// Gets or Sets Ordre
+ ///
+ [Required]
+ [DataMember(Name="ordre")]
+ public decimal? Ordre { get; set; }
+
+ ///
+ /// Gets or Sets TypeChamp
+ ///
+ [Required]
+ [DataMember(Name="typeChamp")]
+ public string TypeChamp { get; set; }
+
+ ///
+ /// Gets or Sets TypeSaisie
+ ///
+ [Required]
+ [DataMember(Name="typeSaisie")]
+ public string TypeSaisie { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ChampDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Texte: ").Append(Texte).Append("\n");
+ sb.Append(" Section: ").Append(Section).Append("\n");
+ sb.Append(" Soussection: ").Append(Soussection).Append("\n");
+ sb.Append(" Ordre: ").Append(Ordre).Append("\n");
+ sb.Append(" TypeChamp: ").Append(TypeChamp).Append("\n");
+ sb.Append(" TypeSaisie: ").Append(TypeSaisie).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ChampDTO)obj);
+ }
+
+ ///
+ /// Returns true if ChampDTO instances are equal
+ ///
+ /// Instance of ChampDTO to be compared
+ /// Boolean
+ public bool Equals(ChampDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Texte == other.Texte ||
+ Texte != null &&
+ Texte.Equals(other.Texte)
+ ) &&
+ (
+ Section == other.Section ||
+ Section != null &&
+ Section.Equals(other.Section)
+ ) &&
+ (
+ Soussection == other.Soussection ||
+ Soussection != null &&
+ Soussection.Equals(other.Soussection)
+ ) &&
+ (
+ Ordre == other.Ordre ||
+ Ordre != null &&
+ Ordre.Equals(other.Ordre)
+ ) &&
+ (
+ TypeChamp == other.TypeChamp ||
+ TypeChamp != null &&
+ TypeChamp.Equals(other.TypeChamp)
+ ) &&
+ (
+ TypeSaisie == other.TypeSaisie ||
+ TypeSaisie != null &&
+ TypeSaisie.Equals(other.TypeSaisie)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Texte != null)
+ hashCode = hashCode * 59 + Texte.GetHashCode();
+ if (Section != null)
+ hashCode = hashCode * 59 + Section.GetHashCode();
+ if (Soussection != null)
+ hashCode = hashCode * 59 + Soussection.GetHashCode();
+ if (Ordre != null)
+ hashCode = hashCode * 59 + Ordre.GetHashCode();
+ if (TypeChamp != null)
+ hashCode = hashCode * 59 + TypeChamp.GetHashCode();
+ if (TypeSaisie != null)
+ hashCode = hashCode * 59 + TypeSaisie.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ChampDTO left, ChampDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ChampDTO left, ChampDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/CollaborateurDTO.cs b/DTO/CollaborateurDTO.cs
new file mode 100644
index 0000000..e3414dc
--- /dev/null
+++ b/DTO/CollaborateurDTO.cs
@@ -0,0 +1,222 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les informations d'un collaborateur
+ ///
+ [DataContract]
+ public partial class CollaborateurDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public Guid? Id { get; set; }
+
+ ///
+ /// Gets or Sets Nom
+ ///
+ [Required]
+ [DataMember(Name="nom")]
+ public string Nom { get; set; }
+
+ ///
+ /// Gets or Sets Prenom
+ ///
+ [Required]
+ [DataMember(Name="prenom")]
+ public string Prenom { get; set; }
+
+ ///
+ /// Gets or Sets MailApside
+ ///
+ [Required]
+ [DataMember(Name="mailApside")]
+ public string MailApside { get; set; }
+
+ ///
+ /// Gets or Sets DateArrivee
+ ///
+ [Required]
+ [DataMember(Name="dateArrivee")]
+ public DateTime? DateArrivee { get; set; }
+
+ ///
+ /// Gets or Sets DateDepart
+ ///
+ [DataMember(Name="dateDepart")]
+ public DateTime? DateDepart { get; set; }
+
+ ///
+ /// Gets or Sets BusinessUnit
+ ///
+ [DataMember(Name="businessUnit")]
+ public BusinessUnitDTO BusinessUnit { get; set; }
+
+ ///
+ /// Gets or Sets Referent
+ ///
+ [DataMember(Name="referent")]
+ public CollaborateurDTO Referent { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class CollaborateurDTO {\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(" DateArrivee: ").Append(DateArrivee).Append("\n");
+ sb.Append(" DateDepart: ").Append(DateDepart).Append("\n");
+ sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
+ sb.Append(" Referent: ").Append(Referent).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((CollaborateurDTO)obj);
+ }
+
+ ///
+ /// Returns true if CollaborateurDTO instances are equal
+ ///
+ /// Instance of CollaborateurDTO to be compared
+ /// Boolean
+ public bool Equals(CollaborateurDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Nom == other.Nom ||
+ Nom != null &&
+ Nom.Equals(other.Nom)
+ ) &&
+ (
+ Prenom == other.Prenom ||
+ Prenom != null &&
+ Prenom.Equals(other.Prenom)
+ ) &&
+ (
+ MailApside == other.MailApside ||
+ MailApside != null &&
+ MailApside.Equals(other.MailApside)
+ ) &&
+ (
+ DateArrivee == other.DateArrivee ||
+ DateArrivee != null &&
+ DateArrivee.Equals(other.DateArrivee)
+ ) &&
+ (
+ DateDepart == other.DateDepart ||
+ DateDepart != null &&
+ DateDepart.Equals(other.DateDepart)
+ ) &&
+ (
+ BusinessUnit == other.BusinessUnit ||
+ BusinessUnit != null &&
+ BusinessUnit.Equals(other.BusinessUnit)
+ ) &&
+ (
+ Referent == other.Referent ||
+ Referent != null &&
+ Referent.Equals(other.Referent)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Nom != null)
+ hashCode = hashCode * 59 + Nom.GetHashCode();
+ if (Prenom != null)
+ hashCode = hashCode * 59 + Prenom.GetHashCode();
+ if (MailApside != null)
+ hashCode = hashCode * 59 + MailApside.GetHashCode();
+ if (DateArrivee != null)
+ hashCode = hashCode * 59 + DateArrivee.GetHashCode();
+ if (DateDepart != null)
+ hashCode = hashCode * 59 + DateDepart.GetHashCode();
+ if (BusinessUnit != null)
+ hashCode = hashCode * 59 + BusinessUnit.GetHashCode();
+ if (Referent != null)
+ hashCode = hashCode * 59 + Referent.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(CollaborateurDTO left, CollaborateurDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(CollaborateurDTO left, CollaborateurDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/CreationDemandeDelegationDTO.cs b/DTO/CreationDemandeDelegationDTO.cs
new file mode 100644
index 0000000..7639094
--- /dev/null
+++ b/DTO/CreationDemandeDelegationDTO.cs
@@ -0,0 +1,148 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Objet à envoyer lorsqu'un référent fait une demande de délégation
+ ///
+ [DataContract]
+ public partial class CreationDemandeDelegationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets IdEp
+ ///
+ [DataMember(Name="idEp")]
+ public int? IdEp { get; set; }
+
+ ///
+ /// Gets or Sets IdReferent
+ ///
+ [DataMember(Name="idReferent")]
+ public CollaborateurDTO IdReferent { get; set; }
+
+ ///
+ /// Gets or Sets RaisonDemande
+ ///
+ [Required]
+ [DataMember(Name="raisonDemande")]
+ public string RaisonDemande { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class CreationDemandeDelegationDTO {\n");
+ sb.Append(" IdEp: ").Append(IdEp).Append("\n");
+ sb.Append(" IdReferent: ").Append(IdReferent).Append("\n");
+ sb.Append(" RaisonDemande: ").Append(RaisonDemande).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((CreationDemandeDelegationDTO)obj);
+ }
+
+ ///
+ /// Returns true if CreationDemandeDelegationDTO instances are equal
+ ///
+ /// Instance of CreationDemandeDelegationDTO to be compared
+ /// Boolean
+ public bool Equals(CreationDemandeDelegationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ IdEp == other.IdEp ||
+ IdEp != null &&
+ IdEp.Equals(other.IdEp)
+ ) &&
+ (
+ IdReferent == other.IdReferent ||
+ IdReferent != null &&
+ IdReferent.Equals(other.IdReferent)
+ ) &&
+ (
+ RaisonDemande == other.RaisonDemande ||
+ RaisonDemande != null &&
+ RaisonDemande.Equals(other.RaisonDemande)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (IdEp != null)
+ hashCode = hashCode * 59 + IdEp.GetHashCode();
+ if (IdReferent != null)
+ hashCode = hashCode * 59 + IdReferent.GetHashCode();
+ if (RaisonDemande != null)
+ hashCode = hashCode * 59 + RaisonDemande.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(CreationDemandeDelegationDTO left, CreationDemandeDelegationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(CreationDemandeDelegationDTO left, CreationDemandeDelegationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/CreationDemandeFormationDTO.cs b/DTO/CreationDemandeFormationDTO.cs
new file mode 100644
index 0000000..06d772e
--- /dev/null
+++ b/DTO/CreationDemandeFormationDTO.cs
@@ -0,0 +1,165 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Objet à envoyer lors d'une demande de formation
+ ///
+ [DataContract]
+ public partial class CreationDemandeFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [Required]
+ [DataMember(Name="description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets Theme
+ ///
+ [Required]
+ [DataMember(Name="theme")]
+ public int? Theme { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class CreationDemandeFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" Theme: ").Append(Theme).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((CreationDemandeFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if CreationDemandeFormationDTO instances are equal
+ ///
+ /// Instance of CreationDemandeFormationDTO to be compared
+ /// Boolean
+ public bool Equals(CreationDemandeFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ ) &&
+ (
+ Description == other.Description ||
+ Description != null &&
+ Description.Equals(other.Description)
+ ) &&
+ (
+ Theme == other.Theme ||
+ Theme != null &&
+ Theme.Equals(other.Theme)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ if (Description != null)
+ hashCode = hashCode * 59 + Description.GetHashCode();
+ if (Theme != null)
+ hashCode = hashCode * 59 + Theme.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(CreationDemandeFormationDTO left, CreationDemandeFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(CreationDemandeFormationDTO left, CreationDemandeFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/DemandeDelegationDTO.cs b/DTO/DemandeDelegationDTO.cs
new file mode 100644
index 0000000..4833974
--- /dev/null
+++ b/DTO/DemandeDelegationDTO.cs
@@ -0,0 +1,192 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les détails d'une demande de délégation d'un EP
+ ///
+ [DataContract]
+ public partial class DemandeDelegationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Ep
+ ///
+ [Required]
+ [DataMember(Name="ep")]
+ public EpInformationDTO Ep { get; set; }
+
+ ///
+ /// Gets or Sets DateDemande
+ ///
+ [Required]
+ [DataMember(Name="dateDemande")]
+ public DateTime? DateDemande { get; set; }
+
+ ///
+ /// Gets or Sets Reponse
+ ///
+ [DataMember(Name="reponse")]
+ public bool? Reponse { get; set; }
+
+ ///
+ /// Gets or Sets DateReponse
+ ///
+ [DataMember(Name="dateReponse")]
+ public DateTime? DateReponse { get; set; }
+
+ ///
+ /// Gets or Sets RaisonRefus
+ ///
+ [DataMember(Name="raisonRefus")]
+ public string RaisonRefus { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DemandeDelegationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Ep: ").Append(Ep).Append("\n");
+ sb.Append(" DateDemande: ").Append(DateDemande).Append("\n");
+ sb.Append(" Reponse: ").Append(Reponse).Append("\n");
+ sb.Append(" DateReponse: ").Append(DateReponse).Append("\n");
+ sb.Append(" RaisonRefus: ").Append(RaisonRefus).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((DemandeDelegationDTO)obj);
+ }
+
+ ///
+ /// Returns true if DemandeDelegationDTO instances are equal
+ ///
+ /// Instance of DemandeDelegationDTO to be compared
+ /// Boolean
+ public bool Equals(DemandeDelegationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Ep == other.Ep ||
+ Ep != null &&
+ Ep.Equals(other.Ep)
+ ) &&
+ (
+ DateDemande == other.DateDemande ||
+ DateDemande != null &&
+ DateDemande.Equals(other.DateDemande)
+ ) &&
+ (
+ Reponse == other.Reponse ||
+ Reponse != null &&
+ Reponse.Equals(other.Reponse)
+ ) &&
+ (
+ DateReponse == other.DateReponse ||
+ DateReponse != null &&
+ DateReponse.Equals(other.DateReponse)
+ ) &&
+ (
+ RaisonRefus == other.RaisonRefus ||
+ RaisonRefus != null &&
+ RaisonRefus.Equals(other.RaisonRefus)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Ep != null)
+ hashCode = hashCode * 59 + Ep.GetHashCode();
+ if (DateDemande != null)
+ hashCode = hashCode * 59 + DateDemande.GetHashCode();
+ if (Reponse != null)
+ hashCode = hashCode * 59 + Reponse.GetHashCode();
+ if (DateReponse != null)
+ hashCode = hashCode * 59 + DateReponse.GetHashCode();
+ if (RaisonRefus != null)
+ hashCode = hashCode * 59 + RaisonRefus.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(DemandeDelegationDTO left, DemandeDelegationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(DemandeDelegationDTO left, DemandeDelegationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/DemandeEPIDTO.cs b/DTO/DemandeEPIDTO.cs
new file mode 100644
index 0000000..8bdcd40
--- /dev/null
+++ b/DTO/DemandeEPIDTO.cs
@@ -0,0 +1,235 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Demande d'EPI faite par un collaborateur
+ ///
+ [DataContract]
+ public partial class DemandeEPIDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets IdCollaborateur
+ ///
+ [Required]
+ [DataMember(Name="idCollaborateur")]
+ public Guid? IdCollaborateur { get; set; }
+
+ ///
+ /// Gets or Sets IdReferent
+ ///
+ [Required]
+ [DataMember(Name="idReferent")]
+ public Guid? IdReferent { get; set; }
+
+ ///
+ /// Gets or Sets DateDemande
+ ///
+ [Required]
+ [DataMember(Name="dateDemande")]
+ public DateTime? DateDemande { get; set; }
+
+ ///
+ /// Gets or Sets Etat
+ ///
+ [DataMember(Name="etat")]
+ public int? Etat { get; set; }
+
+ ///
+ /// Gets or Sets Reponse
+ ///
+ [DataMember(Name="reponse")]
+ public bool? Reponse { get; set; }
+
+ ///
+ /// Gets or Sets DateReponse
+ ///
+ [DataMember(Name="dateReponse")]
+ public DateTime? DateReponse { get; set; }
+
+ ///
+ /// Gets or Sets RaisonRefus
+ ///
+ [DataMember(Name="raisonRefus")]
+ public string RaisonRefus { get; set; }
+
+ ///
+ /// Gets or Sets Ep
+ ///
+ [DataMember(Name="ep")]
+ public EpInformationDTO Ep { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DemandeEPIDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n");
+ sb.Append(" IdReferent: ").Append(IdReferent).Append("\n");
+ sb.Append(" DateDemande: ").Append(DateDemande).Append("\n");
+ sb.Append(" Etat: ").Append(Etat).Append("\n");
+ sb.Append(" Reponse: ").Append(Reponse).Append("\n");
+ sb.Append(" DateReponse: ").Append(DateReponse).Append("\n");
+ sb.Append(" RaisonRefus: ").Append(RaisonRefus).Append("\n");
+ sb.Append(" Ep: ").Append(Ep).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((DemandeEPIDTO)obj);
+ }
+
+ ///
+ /// Returns true if DemandeEPIDTO instances are equal
+ ///
+ /// Instance of DemandeEPIDTO to be compared
+ /// Boolean
+ public bool Equals(DemandeEPIDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ IdCollaborateur == other.IdCollaborateur ||
+ IdCollaborateur != null &&
+ IdCollaborateur.Equals(other.IdCollaborateur)
+ ) &&
+ (
+ IdReferent == other.IdReferent ||
+ IdReferent != null &&
+ IdReferent.Equals(other.IdReferent)
+ ) &&
+ (
+ DateDemande == other.DateDemande ||
+ DateDemande != null &&
+ DateDemande.Equals(other.DateDemande)
+ ) &&
+ (
+ Etat == other.Etat ||
+ Etat != null &&
+ Etat.Equals(other.Etat)
+ ) &&
+ (
+ Reponse == other.Reponse ||
+ Reponse != null &&
+ Reponse.Equals(other.Reponse)
+ ) &&
+ (
+ DateReponse == other.DateReponse ||
+ DateReponse != null &&
+ DateReponse.Equals(other.DateReponse)
+ ) &&
+ (
+ RaisonRefus == other.RaisonRefus ||
+ RaisonRefus != null &&
+ RaisonRefus.Equals(other.RaisonRefus)
+ ) &&
+ (
+ Ep == other.Ep ||
+ Ep != null &&
+ Ep.Equals(other.Ep)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (IdCollaborateur != null)
+ hashCode = hashCode * 59 + IdCollaborateur.GetHashCode();
+ if (IdReferent != null)
+ hashCode = hashCode * 59 + IdReferent.GetHashCode();
+ if (DateDemande != null)
+ hashCode = hashCode * 59 + DateDemande.GetHashCode();
+ if (Etat != null)
+ hashCode = hashCode * 59 + Etat.GetHashCode();
+ if (Reponse != null)
+ hashCode = hashCode * 59 + Reponse.GetHashCode();
+ if (DateReponse != null)
+ hashCode = hashCode * 59 + DateReponse.GetHashCode();
+ if (RaisonRefus != null)
+ hashCode = hashCode * 59 + RaisonRefus.GetHashCode();
+ if (Ep != null)
+ hashCode = hashCode * 59 + Ep.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(DemandeEPIDTO left, DemandeEPIDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(DemandeEPIDTO left, DemandeEPIDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/DemandeFormationDTO.cs b/DTO/DemandeFormationDTO.cs
new file mode 100644
index 0000000..6e37105
--- /dev/null
+++ b/DTO/DemandeFormationDTO.cs
@@ -0,0 +1,252 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les détails d'une demande de formation
+ ///
+ [DataContract]
+ public partial class DemandeFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Gets or Sets Description
+ ///
+ [Required]
+ [DataMember(Name="description")]
+ public string Description { get; set; }
+
+ ///
+ /// Gets or Sets DemandeRH
+ ///
+ [Required]
+ [DataMember(Name="demandeRH")]
+ public bool? DemandeRH { get; set; }
+
+ ///
+ /// Gets or Sets DateDemande
+ ///
+ [Required]
+ [DataMember(Name="dateDemande")]
+ public DateTime? DateDemande { get; set; }
+
+ ///
+ /// Gets or Sets Reponse
+ ///
+ [DataMember(Name="reponse")]
+ public bool? Reponse { get; set; }
+
+ ///
+ /// Gets or Sets CommentaireRefus
+ ///
+ [DataMember(Name="commentaireRefus")]
+ public string CommentaireRefus { get; set; }
+
+ ///
+ /// Gets or Sets DateDerniereReponse
+ ///
+ [DataMember(Name="dateDerniereReponse")]
+ public DateTime? DateDerniereReponse { get; set; }
+
+ ///
+ /// Gets or Sets Theme
+ ///
+ [Required]
+ [DataMember(Name="theme")]
+ public ThemeDTO Theme { get; set; }
+
+ ///
+ /// Gets or Sets Ep
+ ///
+ [Required]
+ [DataMember(Name="ep")]
+ public EpInformationDTO Ep { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DemandeFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append(" Description: ").Append(Description).Append("\n");
+ sb.Append(" DemandeRH: ").Append(DemandeRH).Append("\n");
+ sb.Append(" DateDemande: ").Append(DateDemande).Append("\n");
+ sb.Append(" Reponse: ").Append(Reponse).Append("\n");
+ sb.Append(" CommentaireRefus: ").Append(CommentaireRefus).Append("\n");
+ sb.Append(" DateDerniereReponse: ").Append(DateDerniereReponse).Append("\n");
+ sb.Append(" Theme: ").Append(Theme).Append("\n");
+ sb.Append(" Ep: ").Append(Ep).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((DemandeFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if DemandeFormationDTO instances are equal
+ ///
+ /// Instance of DemandeFormationDTO to be compared
+ /// Boolean
+ public bool Equals(DemandeFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ ) &&
+ (
+ Description == other.Description ||
+ Description != null &&
+ Description.Equals(other.Description)
+ ) &&
+ (
+ DemandeRH == other.DemandeRH ||
+ DemandeRH != null &&
+ DemandeRH.Equals(other.DemandeRH)
+ ) &&
+ (
+ DateDemande == other.DateDemande ||
+ DateDemande != null &&
+ DateDemande.Equals(other.DateDemande)
+ ) &&
+ (
+ Reponse == other.Reponse ||
+ Reponse != null &&
+ Reponse.Equals(other.Reponse)
+ ) &&
+ (
+ CommentaireRefus == other.CommentaireRefus ||
+ CommentaireRefus != null &&
+ CommentaireRefus.Equals(other.CommentaireRefus)
+ ) &&
+ (
+ DateDerniereReponse == other.DateDerniereReponse ||
+ DateDerniereReponse != null &&
+ DateDerniereReponse.Equals(other.DateDerniereReponse)
+ ) &&
+ (
+ Theme == other.Theme ||
+ Theme != null &&
+ Theme.Equals(other.Theme)
+ ) &&
+ (
+ Ep == other.Ep ||
+ Ep != null &&
+ Ep.Equals(other.Ep)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ if (Description != null)
+ hashCode = hashCode * 59 + Description.GetHashCode();
+ if (DemandeRH != null)
+ hashCode = hashCode * 59 + DemandeRH.GetHashCode();
+ if (DateDemande != null)
+ hashCode = hashCode * 59 + DateDemande.GetHashCode();
+ if (Reponse != null)
+ hashCode = hashCode * 59 + Reponse.GetHashCode();
+ if (CommentaireRefus != null)
+ hashCode = hashCode * 59 + CommentaireRefus.GetHashCode();
+ if (DateDerniereReponse != null)
+ hashCode = hashCode * 59 + DateDerniereReponse.GetHashCode();
+ if (Theme != null)
+ hashCode = hashCode * 59 + Theme.GetHashCode();
+ if (Ep != null)
+ hashCode = hashCode * 59 + Ep.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(DemandeFormationDTO left, DemandeFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(DemandeFormationDTO left, DemandeFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/DetailsNoteDTO.cs b/DTO/DetailsNoteDTO.cs
new file mode 100644
index 0000000..1072df4
--- /dev/null
+++ b/DTO/DetailsNoteDTO.cs
@@ -0,0 +1,208 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Détails d'une note que peut prendre un commercial, un delivery ou un RA sur un collaborateur
+ ///
+ [DataContract]
+ public partial class DetailsNoteDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Titre
+ ///
+ [Required]
+ [DataMember(Name="titre")]
+ public string Titre { get; set; }
+
+ ///
+ /// Gets or Sets Texte
+ ///
+ [Required]
+ [DataMember(Name="texte")]
+ public string Texte { get; set; }
+
+ ///
+ /// Gets or Sets IdAuteur
+ ///
+ [Required]
+ [DataMember(Name="idAuteur")]
+ public Guid? IdAuteur { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [Required]
+ [DataMember(Name="collaborateur")]
+ public CollaborateurDTO Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets DateCreation
+ ///
+ [DataMember(Name="dateCreation")]
+ public DateTime? DateCreation { get; set; }
+
+ ///
+ /// Gets or Sets DateMiseAjour
+ ///
+ [DataMember(Name="dateMiseAjour")]
+ public DateTime? DateMiseAjour { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DetailsNoteDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Titre: ").Append(Titre).Append("\n");
+ sb.Append(" Texte: ").Append(Texte).Append("\n");
+ sb.Append(" IdAuteur: ").Append(IdAuteur).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" DateCreation: ").Append(DateCreation).Append("\n");
+ sb.Append(" DateMiseAjour: ").Append(DateMiseAjour).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((DetailsNoteDTO)obj);
+ }
+
+ ///
+ /// Returns true if DetailsNoteDTO instances are equal
+ ///
+ /// Instance of DetailsNoteDTO to be compared
+ /// Boolean
+ public bool Equals(DetailsNoteDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Titre == other.Titre ||
+ Titre != null &&
+ Titre.Equals(other.Titre)
+ ) &&
+ (
+ Texte == other.Texte ||
+ Texte != null &&
+ Texte.Equals(other.Texte)
+ ) &&
+ (
+ IdAuteur == other.IdAuteur ||
+ IdAuteur != null &&
+ IdAuteur.Equals(other.IdAuteur)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ DateCreation == other.DateCreation ||
+ DateCreation != null &&
+ DateCreation.Equals(other.DateCreation)
+ ) &&
+ (
+ DateMiseAjour == other.DateMiseAjour ||
+ DateMiseAjour != null &&
+ DateMiseAjour.Equals(other.DateMiseAjour)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Titre != null)
+ hashCode = hashCode * 59 + Titre.GetHashCode();
+ if (Texte != null)
+ hashCode = hashCode * 59 + Texte.GetHashCode();
+ if (IdAuteur != null)
+ hashCode = hashCode * 59 + IdAuteur.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (DateCreation != null)
+ hashCode = hashCode * 59 + DateCreation.GetHashCode();
+ if (DateMiseAjour != null)
+ hashCode = hashCode * 59 + DateMiseAjour.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(DetailsNoteDTO left, DetailsNoteDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(DetailsNoteDTO left, DetailsNoteDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/DocumentDTO.cs b/DTO/DocumentDTO.cs
new file mode 100644
index 0000000..7ba804b
--- /dev/null
+++ b/DTO/DocumentDTO.cs
@@ -0,0 +1,149 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Un document pour récupérer les saisies et leur champ en fonction du type de l'EP qui peut être EPS, EPA ou EPASIXANS
+ ///
+ [DataContract]
+ public partial class DocumentDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets or Sets Saisies
+ ///
+ [DataMember(Name="saisies")]
+ public List Saisies { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class DocumentDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" Saisies: ").Append(Saisies).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((DocumentDTO)obj);
+ }
+
+ ///
+ /// Returns true if DocumentDTO instances are equal
+ ///
+ /// Instance of DocumentDTO to be compared
+ /// Boolean
+ public bool Equals(DocumentDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ Saisies == other.Saisies ||
+ Saisies != null &&
+ Saisies.SequenceEqual(other.Saisies)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (Saisies != null)
+ hashCode = hashCode * 59 + Saisies.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(DocumentDTO left, DocumentDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(DocumentDTO left, DocumentDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/EngagementDTO.cs b/DTO/EngagementDTO.cs
new file mode 100644
index 0000000..54aaa93
--- /dev/null
+++ b/DTO/EngagementDTO.cs
@@ -0,0 +1,236 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les détails d'un engagement pris par un référent pour un EP
+ ///
+ [DataContract]
+ public partial class EngagementDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Action
+ ///
+ [Required]
+ [DataMember(Name="action")]
+ public string Action { get; set; }
+
+ ///
+ /// Gets or Sets Modalite
+ ///
+ [Required]
+ [DataMember(Name="modalite")]
+ public string Modalite { get; set; }
+
+ ///
+ /// Gets or Sets Dispositif
+ ///
+ [Required]
+ [DataMember(Name="dispositif")]
+ public string Dispositif { get; set; }
+
+ ///
+ /// Gets or Sets DatePrevisionnelle
+ ///
+ [Required]
+ [DataMember(Name="datePrevisionnelle")]
+ public DateTime? DatePrevisionnelle { get; set; }
+
+ ///
+ /// Gets or Sets Realisable
+ ///
+ [DataMember(Name="realisable")]
+ public bool? Realisable { get; set; }
+
+ ///
+ /// Gets or Sets Realise
+ ///
+ [DataMember(Name="realise")]
+ public bool? Realise { get; set; }
+
+ ///
+ /// Gets or Sets RaisonNonRealisable
+ ///
+ [DataMember(Name="raisonNonRealisable")]
+ public string RaisonNonRealisable { get; set; }
+
+ ///
+ /// Gets or Sets Ep
+ ///
+ [DataMember(Name="ep")]
+ public EpInformationDTO Ep { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class EngagementDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Action: ").Append(Action).Append("\n");
+ sb.Append(" Modalite: ").Append(Modalite).Append("\n");
+ sb.Append(" Dispositif: ").Append(Dispositif).Append("\n");
+ sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n");
+ sb.Append(" Realisable: ").Append(Realisable).Append("\n");
+ sb.Append(" Realise: ").Append(Realise).Append("\n");
+ sb.Append(" RaisonNonRealisable: ").Append(RaisonNonRealisable).Append("\n");
+ sb.Append(" Ep: ").Append(Ep).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((EngagementDTO)obj);
+ }
+
+ ///
+ /// Returns true if EngagementDTO instances are equal
+ ///
+ /// Instance of EngagementDTO to be compared
+ /// Boolean
+ public bool Equals(EngagementDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Action == other.Action ||
+ Action != null &&
+ Action.Equals(other.Action)
+ ) &&
+ (
+ Modalite == other.Modalite ||
+ Modalite != null &&
+ Modalite.Equals(other.Modalite)
+ ) &&
+ (
+ Dispositif == other.Dispositif ||
+ Dispositif != null &&
+ Dispositif.Equals(other.Dispositif)
+ ) &&
+ (
+ DatePrevisionnelle == other.DatePrevisionnelle ||
+ DatePrevisionnelle != null &&
+ DatePrevisionnelle.Equals(other.DatePrevisionnelle)
+ ) &&
+ (
+ Realisable == other.Realisable ||
+ Realisable != null &&
+ Realisable.Equals(other.Realisable)
+ ) &&
+ (
+ Realise == other.Realise ||
+ Realise != null &&
+ Realise.Equals(other.Realise)
+ ) &&
+ (
+ RaisonNonRealisable == other.RaisonNonRealisable ||
+ RaisonNonRealisable != null &&
+ RaisonNonRealisable.Equals(other.RaisonNonRealisable)
+ ) &&
+ (
+ Ep == other.Ep ||
+ Ep != null &&
+ Ep.Equals(other.Ep)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Action != null)
+ hashCode = hashCode * 59 + Action.GetHashCode();
+ if (Modalite != null)
+ hashCode = hashCode * 59 + Modalite.GetHashCode();
+ if (Dispositif != null)
+ hashCode = hashCode * 59 + Dispositif.GetHashCode();
+ if (DatePrevisionnelle != null)
+ hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode();
+ if (Realisable != null)
+ hashCode = hashCode * 59 + Realisable.GetHashCode();
+ if (Realise != null)
+ hashCode = hashCode * 59 + Realise.GetHashCode();
+ if (RaisonNonRealisable != null)
+ hashCode = hashCode * 59 + RaisonNonRealisable.GetHashCode();
+ if (Ep != null)
+ hashCode = hashCode * 59 + Ep.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(EngagementDTO left, EngagementDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(EngagementDTO left, EngagementDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/EpDTO.cs b/DTO/EpDTO.cs
new file mode 100644
index 0000000..8cf6a4f
--- /dev/null
+++ b/DTO/EpDTO.cs
@@ -0,0 +1,437 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Tous les détails d'un EP lorsqu'il est consulté
+ ///
+ [DataContract]
+ public partial class EpDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets or Sets DateDisponibilite
+ ///
+ [Required]
+ [DataMember(Name="dateDisponibilite")]
+ public DateTime? DateDisponibilite { get; set; }
+
+ ///
+ /// Gets or Sets DatePrevisionnelle
+ ///
+ [Required]
+ [DataMember(Name="datePrevisionnelle")]
+ public DateTime? DatePrevisionnelle { get; set; }
+
+ ///
+ /// Gets or Sets DateSaisie
+ ///
+ [DataMember(Name="dateSaisie")]
+ public DateTime? DateSaisie { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [Required]
+ [DataMember(Name="statut")]
+ public decimal? Statut { get; set; }
+
+ ///
+ /// Gets or Sets Cv
+ ///
+ [Required]
+ [DataMember(Name="cv")]
+ public string Cv { get; set; }
+
+ ///
+ /// Gets or Sets PropositionsEntretien
+ ///
+ [DataMember(Name="propositionsEntretien")]
+ public List PropositionsEntretien { get; set; }
+
+ ///
+ /// Gets or Sets RdvEntretien
+ ///
+ [DataMember(Name="rdvEntretien")]
+ public RDVEntretienDTO RdvEntretien { get; set; }
+
+ ///
+ /// Gets or Sets ChoixTypeEntretien
+ ///
+ [DataMember(Name="choixTypeEntretien")]
+ public TypeEntretienDTO ChoixTypeEntretien { get; set; }
+
+ ///
+ /// Gets or Sets Obligatoire
+ ///
+ [Required]
+ [DataMember(Name="obligatoire")]
+ public bool? Obligatoire { get; set; }
+
+ ///
+ /// Gets or Sets Objectif
+ ///
+ [DataMember(Name="objectif")]
+ public List Objectif { get; set; }
+
+ ///
+ /// Gets or Sets ObjectifPrecedent
+ ///
+ [DataMember(Name="objectifPrecedent")]
+ public List ObjectifPrecedent { get; set; }
+
+ ///
+ /// Gets or Sets CommentaireAssistant
+ ///
+ [DataMember(Name="commentaireAssistant")]
+ public string CommentaireAssistant { get; set; }
+
+ ///
+ /// Gets or Sets CommentaireCommercial
+ ///
+ [DataMember(Name="commentaireCommercial")]
+ public string CommentaireCommercial { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [Required]
+ [DataMember(Name="collaborateur")]
+ public CollaborateurDTO Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Referent
+ ///
+ [Required]
+ [DataMember(Name="referent")]
+ public CollaborateurDTO Referent { get; set; }
+
+ ///
+ /// Gets or Sets DemandesFormation
+ ///
+ [DataMember(Name="demandesFormation")]
+ public List DemandesFormation { get; set; }
+
+ ///
+ /// Gets or Sets Participants
+ ///
+ [DataMember(Name="participants")]
+ public List Participants { get; set; }
+
+ ///
+ /// Gets or Sets Engagements
+ ///
+ [DataMember(Name="engagements")]
+ public List Engagements { get; set; }
+
+ ///
+ /// Gets or Sets AugmentationSalaire
+ ///
+ [DataMember(Name="augmentationSalaire")]
+ public AugmentationSalaireDTO AugmentationSalaire { get; set; }
+
+ ///
+ /// Gets or Sets DemandesDelegation
+ ///
+ [DataMember(Name="demandesDelegation")]
+ public List DemandesDelegation { get; set; }
+
+ ///
+ /// Gets or Sets Documents
+ ///
+ [Required]
+ [DataMember(Name="documents")]
+ public List Documents { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class EpDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n");
+ sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n");
+ sb.Append(" DateSaisie: ").Append(DateSaisie).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" Cv: ").Append(Cv).Append("\n");
+ sb.Append(" PropositionsEntretien: ").Append(PropositionsEntretien).Append("\n");
+ sb.Append(" RdvEntretien: ").Append(RdvEntretien).Append("\n");
+ sb.Append(" ChoixTypeEntretien: ").Append(ChoixTypeEntretien).Append("\n");
+ sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n");
+ sb.Append(" Objectif: ").Append(Objectif).Append("\n");
+ sb.Append(" ObjectifPrecedent: ").Append(ObjectifPrecedent).Append("\n");
+ sb.Append(" CommentaireAssistant: ").Append(CommentaireAssistant).Append("\n");
+ sb.Append(" CommentaireCommercial: ").Append(CommentaireCommercial).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" Referent: ").Append(Referent).Append("\n");
+ sb.Append(" DemandesFormation: ").Append(DemandesFormation).Append("\n");
+ sb.Append(" Participants: ").Append(Participants).Append("\n");
+ sb.Append(" Engagements: ").Append(Engagements).Append("\n");
+ sb.Append(" AugmentationSalaire: ").Append(AugmentationSalaire).Append("\n");
+ sb.Append(" DemandesDelegation: ").Append(DemandesDelegation).Append("\n");
+ sb.Append(" Documents: ").Append(Documents).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((EpDTO)obj);
+ }
+
+ ///
+ /// Returns true if EpDTO instances are equal
+ ///
+ /// Instance of EpDTO to be compared
+ /// Boolean
+ public bool Equals(EpDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ DateDisponibilite == other.DateDisponibilite ||
+ DateDisponibilite != null &&
+ DateDisponibilite.Equals(other.DateDisponibilite)
+ ) &&
+ (
+ DatePrevisionnelle == other.DatePrevisionnelle ||
+ DatePrevisionnelle != null &&
+ DatePrevisionnelle.Equals(other.DatePrevisionnelle)
+ ) &&
+ (
+ DateSaisie == other.DateSaisie ||
+ DateSaisie != null &&
+ DateSaisie.Equals(other.DateSaisie)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ Cv == other.Cv ||
+ Cv != null &&
+ Cv.Equals(other.Cv)
+ ) &&
+ (
+ PropositionsEntretien == other.PropositionsEntretien ||
+ PropositionsEntretien != null &&
+ PropositionsEntretien.SequenceEqual(other.PropositionsEntretien)
+ ) &&
+ (
+ RdvEntretien == other.RdvEntretien ||
+ RdvEntretien != null &&
+ RdvEntretien.Equals(other.RdvEntretien)
+ ) &&
+ (
+ ChoixTypeEntretien == other.ChoixTypeEntretien ||
+ ChoixTypeEntretien != null &&
+ ChoixTypeEntretien.Equals(other.ChoixTypeEntretien)
+ ) &&
+ (
+ Obligatoire == other.Obligatoire ||
+ Obligatoire != null &&
+ Obligatoire.Equals(other.Obligatoire)
+ ) &&
+ (
+ Objectif == other.Objectif ||
+ Objectif != null &&
+ Objectif.SequenceEqual(other.Objectif)
+ ) &&
+ (
+ ObjectifPrecedent == other.ObjectifPrecedent ||
+ ObjectifPrecedent != null &&
+ ObjectifPrecedent.SequenceEqual(other.ObjectifPrecedent)
+ ) &&
+ (
+ CommentaireAssistant == other.CommentaireAssistant ||
+ CommentaireAssistant != null &&
+ CommentaireAssistant.Equals(other.CommentaireAssistant)
+ ) &&
+ (
+ CommentaireCommercial == other.CommentaireCommercial ||
+ CommentaireCommercial != null &&
+ CommentaireCommercial.Equals(other.CommentaireCommercial)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ Referent == other.Referent ||
+ Referent != null &&
+ Referent.Equals(other.Referent)
+ ) &&
+ (
+ DemandesFormation == other.DemandesFormation ||
+ DemandesFormation != null &&
+ DemandesFormation.SequenceEqual(other.DemandesFormation)
+ ) &&
+ (
+ Participants == other.Participants ||
+ Participants != null &&
+ Participants.SequenceEqual(other.Participants)
+ ) &&
+ (
+ Engagements == other.Engagements ||
+ Engagements != null &&
+ Engagements.SequenceEqual(other.Engagements)
+ ) &&
+ (
+ AugmentationSalaire == other.AugmentationSalaire ||
+ AugmentationSalaire != null &&
+ AugmentationSalaire.Equals(other.AugmentationSalaire)
+ ) &&
+ (
+ DemandesDelegation == other.DemandesDelegation ||
+ DemandesDelegation != null &&
+ DemandesDelegation.SequenceEqual(other.DemandesDelegation)
+ ) &&
+ (
+ Documents == other.Documents ||
+ Documents != null &&
+ Documents.SequenceEqual(other.Documents)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (DateDisponibilite != null)
+ hashCode = hashCode * 59 + DateDisponibilite.GetHashCode();
+ if (DatePrevisionnelle != null)
+ hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode();
+ if (DateSaisie != null)
+ hashCode = hashCode * 59 + DateSaisie.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (Cv != null)
+ hashCode = hashCode * 59 + Cv.GetHashCode();
+ if (PropositionsEntretien != null)
+ hashCode = hashCode * 59 + PropositionsEntretien.GetHashCode();
+ if (RdvEntretien != null)
+ hashCode = hashCode * 59 + RdvEntretien.GetHashCode();
+ if (ChoixTypeEntretien != null)
+ hashCode = hashCode * 59 + ChoixTypeEntretien.GetHashCode();
+ if (Obligatoire != null)
+ hashCode = hashCode * 59 + Obligatoire.GetHashCode();
+ if (Objectif != null)
+ hashCode = hashCode * 59 + Objectif.GetHashCode();
+ if (ObjectifPrecedent != null)
+ hashCode = hashCode * 59 + ObjectifPrecedent.GetHashCode();
+ if (CommentaireAssistant != null)
+ hashCode = hashCode * 59 + CommentaireAssistant.GetHashCode();
+ if (CommentaireCommercial != null)
+ hashCode = hashCode * 59 + CommentaireCommercial.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (Referent != null)
+ hashCode = hashCode * 59 + Referent.GetHashCode();
+ if (DemandesFormation != null)
+ hashCode = hashCode * 59 + DemandesFormation.GetHashCode();
+ if (Participants != null)
+ hashCode = hashCode * 59 + Participants.GetHashCode();
+ if (Engagements != null)
+ hashCode = hashCode * 59 + Engagements.GetHashCode();
+ if (AugmentationSalaire != null)
+ hashCode = hashCode * 59 + AugmentationSalaire.GetHashCode();
+ if (DemandesDelegation != null)
+ hashCode = hashCode * 59 + DemandesDelegation.GetHashCode();
+ if (Documents != null)
+ hashCode = hashCode * 59 + Documents.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(EpDTO left, EpDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(EpDTO left, EpDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/EpInformationDTO.cs b/DTO/EpInformationDTO.cs
new file mode 100644
index 0000000..434540f
--- /dev/null
+++ b/DTO/EpInformationDTO.cs
@@ -0,0 +1,225 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les informations de base d'un EP
+ ///
+ [DataContract]
+ public partial class EpInformationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public int? Type { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [Required]
+ [DataMember(Name="statut")]
+ public decimal? Statut { get; set; }
+
+ ///
+ /// Gets or Sets DateDisponibilite
+ ///
+ [Required]
+ [DataMember(Name="dateDisponibilite")]
+ public DateTime? DateDisponibilite { get; set; }
+
+ ///
+ /// Gets or Sets DatePrevisionnelle
+ ///
+ [Required]
+ [DataMember(Name="datePrevisionnelle")]
+ public DateTime? DatePrevisionnelle { get; set; }
+
+ ///
+ /// Gets or Sets Obligatoire
+ ///
+ [Required]
+ [DataMember(Name="obligatoire")]
+ public bool? Obligatoire { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [Required]
+ [DataMember(Name="collaborateur")]
+ public CollaborateurDTO Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Referent
+ ///
+ [Required]
+ [DataMember(Name="referent")]
+ public CollaborateurDTO Referent { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class EpInformationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n");
+ sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n");
+ sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" Referent: ").Append(Referent).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((EpInformationDTO)obj);
+ }
+
+ ///
+ /// Returns true if EpInformationDTO instances are equal
+ ///
+ /// Instance of EpInformationDTO to be compared
+ /// Boolean
+ public bool Equals(EpInformationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ DateDisponibilite == other.DateDisponibilite ||
+ DateDisponibilite != null &&
+ DateDisponibilite.Equals(other.DateDisponibilite)
+ ) &&
+ (
+ DatePrevisionnelle == other.DatePrevisionnelle ||
+ DatePrevisionnelle != null &&
+ DatePrevisionnelle.Equals(other.DatePrevisionnelle)
+ ) &&
+ (
+ Obligatoire == other.Obligatoire ||
+ Obligatoire != null &&
+ Obligatoire.Equals(other.Obligatoire)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ Referent == other.Referent ||
+ Referent != null &&
+ Referent.Equals(other.Referent)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (DateDisponibilite != null)
+ hashCode = hashCode * 59 + DateDisponibilite.GetHashCode();
+ if (DatePrevisionnelle != null)
+ hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode();
+ if (Obligatoire != null)
+ hashCode = hashCode * 59 + Obligatoire.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (Referent != null)
+ hashCode = hashCode * 59 + Referent.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(EpInformationDTO left, EpInformationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(EpInformationDTO left, EpInformationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/EpSaisieDTO.cs b/DTO/EpSaisieDTO.cs
new file mode 100644
index 0000000..5e83082
--- /dev/null
+++ b/DTO/EpSaisieDTO.cs
@@ -0,0 +1,236 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Objet de l'EP au moment de la saisie du collaborateur
+ ///
+ [DataContract]
+ public partial class EpSaisieDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public string Type { get; set; }
+
+ ///
+ /// Gets or Sets DatePrevisionnelle
+ ///
+ [Required]
+ [DataMember(Name="datePrevisionnelle")]
+ public DateTime? DatePrevisionnelle { get; set; }
+
+ ///
+ /// Gets or Sets Cv
+ ///
+ [DataMember(Name="cv")]
+ public string Cv { get; set; }
+
+ ///
+ /// Gets or Sets ChoixEntretien
+ ///
+ [DataMember(Name="choixEntretien")]
+ public TypeEntretienDTO ChoixEntretien { get; set; }
+
+ ///
+ /// Gets or Sets Obligatoire
+ ///
+ [Required]
+ [DataMember(Name="obligatoire")]
+ public bool? Obligatoire { get; set; }
+
+ ///
+ /// Gets or Sets Objectif
+ ///
+ [DataMember(Name="objectif")]
+ public List Objectif { get; set; }
+
+ ///
+ /// Gets or Sets ObjectifPrecedent
+ ///
+ [DataMember(Name="objectifPrecedent")]
+ public List ObjectifPrecedent { get; set; }
+
+ ///
+ /// Gets or Sets Documents
+ ///
+ [Required]
+ [DataMember(Name="documents")]
+ public List Documents { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class EpSaisieDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n");
+ sb.Append(" Cv: ").Append(Cv).Append("\n");
+ sb.Append(" ChoixEntretien: ").Append(ChoixEntretien).Append("\n");
+ sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n");
+ sb.Append(" Objectif: ").Append(Objectif).Append("\n");
+ sb.Append(" ObjectifPrecedent: ").Append(ObjectifPrecedent).Append("\n");
+ sb.Append(" Documents: ").Append(Documents).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((EpSaisieDTO)obj);
+ }
+
+ ///
+ /// Returns true if EpSaisieDTO instances are equal
+ ///
+ /// Instance of EpSaisieDTO to be compared
+ /// Boolean
+ public bool Equals(EpSaisieDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ DatePrevisionnelle == other.DatePrevisionnelle ||
+ DatePrevisionnelle != null &&
+ DatePrevisionnelle.Equals(other.DatePrevisionnelle)
+ ) &&
+ (
+ Cv == other.Cv ||
+ Cv != null &&
+ Cv.Equals(other.Cv)
+ ) &&
+ (
+ ChoixEntretien == other.ChoixEntretien ||
+ ChoixEntretien != null &&
+ ChoixEntretien.Equals(other.ChoixEntretien)
+ ) &&
+ (
+ Obligatoire == other.Obligatoire ||
+ Obligatoire != null &&
+ Obligatoire.Equals(other.Obligatoire)
+ ) &&
+ (
+ Objectif == other.Objectif ||
+ Objectif != null &&
+ Objectif.SequenceEqual(other.Objectif)
+ ) &&
+ (
+ ObjectifPrecedent == other.ObjectifPrecedent ||
+ ObjectifPrecedent != null &&
+ ObjectifPrecedent.SequenceEqual(other.ObjectifPrecedent)
+ ) &&
+ (
+ Documents == other.Documents ||
+ Documents != null &&
+ Documents.SequenceEqual(other.Documents)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (DatePrevisionnelle != null)
+ hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode();
+ if (Cv != null)
+ hashCode = hashCode * 59 + Cv.GetHashCode();
+ if (ChoixEntretien != null)
+ hashCode = hashCode * 59 + ChoixEntretien.GetHashCode();
+ if (Obligatoire != null)
+ hashCode = hashCode * 59 + Obligatoire.GetHashCode();
+ if (Objectif != null)
+ hashCode = hashCode * 59 + Objectif.GetHashCode();
+ if (ObjectifPrecedent != null)
+ hashCode = hashCode * 59 + ObjectifPrecedent.GetHashCode();
+ if (Documents != null)
+ hashCode = hashCode * 59 + Documents.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(EpSaisieDTO left, EpSaisieDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(EpSaisieDTO left, EpSaisieDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ErreurDTO.cs b/DTO/ErreurDTO.cs
new file mode 100644
index 0000000..b1876b4
--- /dev/null
+++ b/DTO/ErreurDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Objet pour la gestion des erreurs
+ ///
+ [DataContract]
+ public partial class ErreurDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Code
+ ///
+ [Required]
+ [DataMember(Name="code")]
+ public string Code { get; set; }
+
+ ///
+ /// Gets or Sets Message
+ ///
+ [Required]
+ [DataMember(Name="message")]
+ public string Message { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ErreurDTO {\n");
+ sb.Append(" Code: ").Append(Code).Append("\n");
+ sb.Append(" Message: ").Append(Message).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ErreurDTO)obj);
+ }
+
+ ///
+ /// Returns true if ErreurDTO instances are equal
+ ///
+ /// Instance of ErreurDTO to be compared
+ /// Boolean
+ public bool Equals(ErreurDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Code == other.Code ||
+ Code != null &&
+ Code.Equals(other.Code)
+ ) &&
+ (
+ Message == other.Message ||
+ Message != null &&
+ Message.Equals(other.Message)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Code != null)
+ hashCode = hashCode * 59 + Code.GetHashCode();
+ if (Message != null)
+ hashCode = hashCode * 59 + Message.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ErreurDTO left, ErreurDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ErreurDTO left, ErreurDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/EvaluationDTO.cs b/DTO/EvaluationDTO.cs
new file mode 100644
index 0000000..a49f0d1
--- /dev/null
+++ b/DTO/EvaluationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Evaluation d'une participation formation
+ ///
+ [DataContract]
+ public partial class EvaluationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets IdParticipation
+ ///
+ [Required]
+ [DataMember(Name="idParticipation")]
+ public int? IdParticipation { get; set; }
+
+ ///
+ /// Gets or Sets Saisies
+ ///
+ [Required]
+ [DataMember(Name="saisies")]
+ public List Saisies { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class EvaluationDTO {\n");
+ sb.Append(" IdParticipation: ").Append(IdParticipation).Append("\n");
+ sb.Append(" Saisies: ").Append(Saisies).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((EvaluationDTO)obj);
+ }
+
+ ///
+ /// Returns true if EvaluationDTO instances are equal
+ ///
+ /// Instance of EvaluationDTO to be compared
+ /// Boolean
+ public bool Equals(EvaluationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ IdParticipation == other.IdParticipation ||
+ IdParticipation != null &&
+ IdParticipation.Equals(other.IdParticipation)
+ ) &&
+ (
+ Saisies == other.Saisies ||
+ Saisies != null &&
+ Saisies.SequenceEqual(other.Saisies)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (IdParticipation != null)
+ hashCode = hashCode * 59 + IdParticipation.GetHashCode();
+ if (Saisies != null)
+ hashCode = hashCode * 59 + Saisies.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(EvaluationDTO left, EvaluationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(EvaluationDTO left, EvaluationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/FormationDTO.cs b/DTO/FormationDTO.cs
new file mode 100644
index 0000000..c6c48b9
--- /dev/null
+++ b/DTO/FormationDTO.cs
@@ -0,0 +1,298 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Toutes les informations d'une formation
+ ///
+ [DataContract]
+ public partial class FormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Intitule
+ ///
+ [Required]
+ [DataMember(Name="intitule")]
+ public string Intitule { get; set; }
+
+ ///
+ /// Gets or Sets Origine
+ ///
+ [Required]
+ [DataMember(Name="origine")]
+ public OrigineFormationDTO Origine { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [DataMember(Name="statut")]
+ public StatutFormationDTO Statut { get; set; }
+
+ ///
+ /// Gets or Sets DateDebut
+ ///
+ [Required]
+ [DataMember(Name="dateDebut")]
+ public DateTime? DateDebut { get; set; }
+
+ ///
+ /// Gets or Sets DateFin
+ ///
+ [Required]
+ [DataMember(Name="dateFin")]
+ public DateTime? DateFin { get; set; }
+
+ ///
+ /// Gets or Sets Heure
+ ///
+ [Required]
+ [DataMember(Name="heure")]
+ public decimal? Heure { get; set; }
+
+ ///
+ /// Gets or Sets Jour
+ ///
+ [Required]
+ [DataMember(Name="jour")]
+ public decimal? Jour { get; set; }
+
+ ///
+ /// Gets or Sets Organisme
+ ///
+ [Required]
+ [DataMember(Name="organisme")]
+ public string Organisme { get; set; }
+
+ ///
+ /// Gets or Sets Mode
+ ///
+ [Required]
+ [DataMember(Name="mode")]
+ public ModeFormationDTO Mode { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public TypeFormationDTO Type { get; set; }
+
+ ///
+ /// Gets or Sets EstCertifie
+ ///
+ [Required]
+ [DataMember(Name="estCertifie")]
+ public bool? EstCertifie { get; set; }
+
+ ///
+ /// Gets or Sets ParticipantsFormation
+ ///
+ [DataMember(Name="participantsFormation")]
+ public List ParticipantsFormation { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class FormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Intitule: ").Append(Intitule).Append("\n");
+ sb.Append(" Origine: ").Append(Origine).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
+ sb.Append(" DateFin: ").Append(DateFin).Append("\n");
+ sb.Append(" Heure: ").Append(Heure).Append("\n");
+ sb.Append(" Jour: ").Append(Jour).Append("\n");
+ sb.Append(" Organisme: ").Append(Organisme).Append("\n");
+ sb.Append(" Mode: ").Append(Mode).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" EstCertifie: ").Append(EstCertifie).Append("\n");
+ sb.Append(" ParticipantsFormation: ").Append(ParticipantsFormation).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((FormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if FormationDTO instances are equal
+ ///
+ /// Instance of FormationDTO to be compared
+ /// Boolean
+ public bool Equals(FormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Intitule == other.Intitule ||
+ Intitule != null &&
+ Intitule.Equals(other.Intitule)
+ ) &&
+ (
+ Origine == other.Origine ||
+ Origine != null &&
+ Origine.Equals(other.Origine)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ DateDebut == other.DateDebut ||
+ DateDebut != null &&
+ DateDebut.Equals(other.DateDebut)
+ ) &&
+ (
+ DateFin == other.DateFin ||
+ DateFin != null &&
+ DateFin.Equals(other.DateFin)
+ ) &&
+ (
+ Heure == other.Heure ||
+ Heure != null &&
+ Heure.Equals(other.Heure)
+ ) &&
+ (
+ Jour == other.Jour ||
+ Jour != null &&
+ Jour.Equals(other.Jour)
+ ) &&
+ (
+ Organisme == other.Organisme ||
+ Organisme != null &&
+ Organisme.Equals(other.Organisme)
+ ) &&
+ (
+ Mode == other.Mode ||
+ Mode != null &&
+ Mode.Equals(other.Mode)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ EstCertifie == other.EstCertifie ||
+ EstCertifie != null &&
+ EstCertifie.Equals(other.EstCertifie)
+ ) &&
+ (
+ ParticipantsFormation == other.ParticipantsFormation ||
+ ParticipantsFormation != null &&
+ ParticipantsFormation.SequenceEqual(other.ParticipantsFormation)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Intitule != null)
+ hashCode = hashCode * 59 + Intitule.GetHashCode();
+ if (Origine != null)
+ hashCode = hashCode * 59 + Origine.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (DateDebut != null)
+ hashCode = hashCode * 59 + DateDebut.GetHashCode();
+ if (DateFin != null)
+ hashCode = hashCode * 59 + DateFin.GetHashCode();
+ if (Heure != null)
+ hashCode = hashCode * 59 + Heure.GetHashCode();
+ if (Jour != null)
+ hashCode = hashCode * 59 + Jour.GetHashCode();
+ if (Organisme != null)
+ hashCode = hashCode * 59 + Organisme.GetHashCode();
+ if (Mode != null)
+ hashCode = hashCode * 59 + Mode.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (EstCertifie != null)
+ hashCode = hashCode * 59 + EstCertifie.GetHashCode();
+ if (ParticipantsFormation != null)
+ hashCode = hashCode * 59 + ParticipantsFormation.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(FormationDTO left, FormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(FormationDTO left, FormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/FormationDTOParticipantsFormation.cs b/DTO/FormationDTOParticipantsFormation.cs
new file mode 100644
index 0000000..164dedb
--- /dev/null
+++ b/DTO/FormationDTOParticipantsFormation.cs
@@ -0,0 +1,221 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ ///
+ ///
+ [DataContract]
+ public partial class FormationDTOParticipantsFormation : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets DateCreation
+ ///
+ [Required]
+ [DataMember(Name="dateCreation")]
+ public DateTime? DateCreation { get; set; }
+
+ ///
+ /// Gets or Sets Formation
+ ///
+ [Required]
+ [DataMember(Name="formation")]
+ public string Formation { get; set; }
+
+ ///
+ /// Gets or Sets Date
+ ///
+ [DataMember(Name="date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [DataMember(Name="statut")]
+ public string Statut { get; set; }
+
+ ///
+ /// Gets or Sets IdCollaborateur
+ ///
+ [DataMember(Name="idCollaborateur")]
+ public Guid? IdCollaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [DataMember(Name="collaborateur")]
+ public string Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets EstEvaluee
+ ///
+ [Required]
+ [DataMember(Name="estEvaluee")]
+ public bool? EstEvaluee { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class FormationDTOParticipantsFormation {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" DateCreation: ").Append(DateCreation).Append("\n");
+ sb.Append(" Formation: ").Append(Formation).Append("\n");
+ sb.Append(" Date: ").Append(Date).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" EstEvaluee: ").Append(EstEvaluee).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((FormationDTOParticipantsFormation)obj);
+ }
+
+ ///
+ /// Returns true if FormationDTOParticipantsFormation instances are equal
+ ///
+ /// Instance of FormationDTOParticipantsFormation to be compared
+ /// Boolean
+ public bool Equals(FormationDTOParticipantsFormation other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ DateCreation == other.DateCreation ||
+ DateCreation != null &&
+ DateCreation.Equals(other.DateCreation)
+ ) &&
+ (
+ Formation == other.Formation ||
+ Formation != null &&
+ Formation.Equals(other.Formation)
+ ) &&
+ (
+ Date == other.Date ||
+ Date != null &&
+ Date.Equals(other.Date)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ IdCollaborateur == other.IdCollaborateur ||
+ IdCollaborateur != null &&
+ IdCollaborateur.Equals(other.IdCollaborateur)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ EstEvaluee == other.EstEvaluee ||
+ EstEvaluee != null &&
+ EstEvaluee.Equals(other.EstEvaluee)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (DateCreation != null)
+ hashCode = hashCode * 59 + DateCreation.GetHashCode();
+ if (Formation != null)
+ hashCode = hashCode * 59 + Formation.GetHashCode();
+ if (Date != null)
+ hashCode = hashCode * 59 + Date.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (IdCollaborateur != null)
+ hashCode = hashCode * 59 + IdCollaborateur.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (EstEvaluee != null)
+ hashCode = hashCode * 59 + EstEvaluee.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(FormationDTOParticipantsFormation left, FormationDTOParticipantsFormation right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(FormationDTOParticipantsFormation left, FormationDTOParticipantsFormation right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/FormationDetailsDTO.cs b/DTO/FormationDetailsDTO.cs
new file mode 100644
index 0000000..3f001f5
--- /dev/null
+++ b/DTO/FormationDetailsDTO.cs
@@ -0,0 +1,238 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les détails d'une formation
+ ///
+ [DataContract]
+ public partial class FormationDetailsDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Intitule
+ ///
+ [Required]
+ [DataMember(Name="intitule")]
+ public string Intitule { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [DataMember(Name="statut")]
+ public StatutFormationDTO Statut { get; set; }
+
+ ///
+ /// Gets or Sets DateDebut
+ ///
+ [Required]
+ [DataMember(Name="dateDebut")]
+ public DateTime? DateDebut { get; set; }
+
+ ///
+ /// Gets or Sets DateFin
+ ///
+ [Required]
+ [DataMember(Name="dateFin")]
+ public DateTime? DateFin { get; set; }
+
+ ///
+ /// Gets or Sets NbPartitipants
+ ///
+ [Required]
+ [DataMember(Name="nbPartitipants")]
+ public int? NbPartitipants { get; set; }
+
+ ///
+ /// Gets or Sets Mode
+ ///
+ [Required]
+ [DataMember(Name="mode")]
+ public ModeFormationDTO Mode { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public TypeFormationDTO Type { get; set; }
+
+ ///
+ /// Gets or Sets EstCertifie
+ ///
+ [Required]
+ [DataMember(Name="estCertifie")]
+ public bool? EstCertifie { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class FormationDetailsDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Intitule: ").Append(Intitule).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" DateDebut: ").Append(DateDebut).Append("\n");
+ sb.Append(" DateFin: ").Append(DateFin).Append("\n");
+ sb.Append(" NbPartitipants: ").Append(NbPartitipants).Append("\n");
+ sb.Append(" Mode: ").Append(Mode).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" EstCertifie: ").Append(EstCertifie).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((FormationDetailsDTO)obj);
+ }
+
+ ///
+ /// Returns true if FormationDetailsDTO instances are equal
+ ///
+ /// Instance of FormationDetailsDTO to be compared
+ /// Boolean
+ public bool Equals(FormationDetailsDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Intitule == other.Intitule ||
+ Intitule != null &&
+ Intitule.Equals(other.Intitule)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ DateDebut == other.DateDebut ||
+ DateDebut != null &&
+ DateDebut.Equals(other.DateDebut)
+ ) &&
+ (
+ DateFin == other.DateFin ||
+ DateFin != null &&
+ DateFin.Equals(other.DateFin)
+ ) &&
+ (
+ NbPartitipants == other.NbPartitipants ||
+ NbPartitipants != null &&
+ NbPartitipants.Equals(other.NbPartitipants)
+ ) &&
+ (
+ Mode == other.Mode ||
+ Mode != null &&
+ Mode.Equals(other.Mode)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ EstCertifie == other.EstCertifie ||
+ EstCertifie != null &&
+ EstCertifie.Equals(other.EstCertifie)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Intitule != null)
+ hashCode = hashCode * 59 + Intitule.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (DateDebut != null)
+ hashCode = hashCode * 59 + DateDebut.GetHashCode();
+ if (DateFin != null)
+ hashCode = hashCode * 59 + DateFin.GetHashCode();
+ if (NbPartitipants != null)
+ hashCode = hashCode * 59 + NbPartitipants.GetHashCode();
+ if (Mode != null)
+ hashCode = hashCode * 59 + Mode.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (EstCertifie != null)
+ hashCode = hashCode * 59 + EstCertifie.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(FormationDetailsDTO left, FormationDetailsDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(FormationDetailsDTO left, FormationDetailsDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ModeFormationDTO.cs b/DTO/ModeFormationDTO.cs
new file mode 100644
index 0000000..d8c96d2
--- /dev/null
+++ b/DTO/ModeFormationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Mode d'une formation
+ ///
+ [DataContract]
+ public partial class ModeFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ModeFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ModeFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if ModeFormationDTO instances are equal
+ ///
+ /// Instance of ModeFormationDTO to be compared
+ /// Boolean
+ public bool Equals(ModeFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ModeFormationDTO left, ModeFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ModeFormationDTO left, ModeFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ObjectifDTO.cs b/DTO/ObjectifDTO.cs
new file mode 100644
index 0000000..3cea0fd
--- /dev/null
+++ b/DTO/ObjectifDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les objectifs pris par le collaborateur
+ ///
+ [DataContract]
+ public partial class ObjectifDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ObjectifDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ObjectifDTO)obj);
+ }
+
+ ///
+ /// Returns true if ObjectifDTO instances are equal
+ ///
+ /// Instance of ObjectifDTO to be compared
+ /// Boolean
+ public bool Equals(ObjectifDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ObjectifDTO left, ObjectifDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ObjectifDTO left, ObjectifDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ObjectifPrecedentDTO.cs b/DTO/ObjectifPrecedentDTO.cs
new file mode 100644
index 0000000..cfe04d8
--- /dev/null
+++ b/DTO/ObjectifPrecedentDTO.cs
@@ -0,0 +1,165 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Les objectifs pris par le collaborateur durant le précédent EP
+ ///
+ [DataContract]
+ public partial class ObjectifPrecedentDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Gets or Sets Atteint
+ ///
+ [Required]
+ [DataMember(Name="atteint")]
+ public bool? Atteint { get; set; }
+
+ ///
+ /// Gets or Sets Commentaire
+ ///
+ [Required]
+ [DataMember(Name="commentaire")]
+ public string Commentaire { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ObjectifPrecedentDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append(" Atteint: ").Append(Atteint).Append("\n");
+ sb.Append(" Commentaire: ").Append(Commentaire).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ObjectifPrecedentDTO)obj);
+ }
+
+ ///
+ /// Returns true if ObjectifPrecedentDTO instances are equal
+ ///
+ /// Instance of ObjectifPrecedentDTO to be compared
+ /// Boolean
+ public bool Equals(ObjectifPrecedentDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ ) &&
+ (
+ Atteint == other.Atteint ||
+ Atteint != null &&
+ Atteint.Equals(other.Atteint)
+ ) &&
+ (
+ Commentaire == other.Commentaire ||
+ Commentaire != null &&
+ Commentaire.Equals(other.Commentaire)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ if (Atteint != null)
+ hashCode = hashCode * 59 + Atteint.GetHashCode();
+ if (Commentaire != null)
+ hashCode = hashCode * 59 + Commentaire.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ObjectifPrecedentDTO left, ObjectifPrecedentDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ObjectifPrecedentDTO left, ObjectifPrecedentDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/OrigineDemandeFormationDTO.cs b/DTO/OrigineDemandeFormationDTO.cs
new file mode 100644
index 0000000..3ebc026
--- /dev/null
+++ b/DTO/OrigineDemandeFormationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Origine d'une demande de formation
+ ///
+ [DataContract]
+ public partial class OrigineDemandeFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class OrigineDemandeFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((OrigineDemandeFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if OrigineDemandeFormationDTO instances are equal
+ ///
+ /// Instance of OrigineDemandeFormationDTO to be compared
+ /// Boolean
+ public bool Equals(OrigineDemandeFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(OrigineDemandeFormationDTO left, OrigineDemandeFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(OrigineDemandeFormationDTO left, OrigineDemandeFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/OrigineFormationDTO.cs b/DTO/OrigineFormationDTO.cs
new file mode 100644
index 0000000..2b8653b
--- /dev/null
+++ b/DTO/OrigineFormationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Origine d'une formation
+ ///
+ [DataContract]
+ public partial class OrigineFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class OrigineFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((OrigineFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if OrigineFormationDTO instances are equal
+ ///
+ /// Instance of OrigineFormationDTO to be compared
+ /// Boolean
+ public bool Equals(OrigineFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(OrigineFormationDTO left, OrigineFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(OrigineFormationDTO left, OrigineFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ParticipationEPDTO.cs b/DTO/ParticipationEPDTO.cs
new file mode 100644
index 0000000..281764e
--- /dev/null
+++ b/DTO/ParticipationEPDTO.cs
@@ -0,0 +1,150 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Information des participants d'un EP (autre que le référent et le collaborateur)
+ ///
+ [DataContract]
+ public partial class ParticipationEPDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets IdCollaborateur
+ ///
+ [Required]
+ [DataMember(Name="idCollaborateur")]
+ public Guid? IdCollaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [Required]
+ [DataMember(Name="collaborateur")]
+ public string Collaborateur { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ParticipationEPDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ParticipationEPDTO)obj);
+ }
+
+ ///
+ /// Returns true if ParticipationEPDTO instances are equal
+ ///
+ /// Instance of ParticipationEPDTO to be compared
+ /// Boolean
+ public bool Equals(ParticipationEPDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ IdCollaborateur == other.IdCollaborateur ||
+ IdCollaborateur != null &&
+ IdCollaborateur.Equals(other.IdCollaborateur)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (IdCollaborateur != null)
+ hashCode = hashCode * 59 + IdCollaborateur.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ParticipationEPDTO left, ParticipationEPDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ParticipationEPDTO left, ParticipationEPDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ParticipationFormationDTO.cs b/DTO/ParticipationFormationDTO.cs
new file mode 100644
index 0000000..3c6cfd6
--- /dev/null
+++ b/DTO/ParticipationFormationDTO.cs
@@ -0,0 +1,221 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ ///
+ ///
+ [DataContract]
+ public partial class ParticipationFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets DateCreation
+ ///
+ [Required]
+ [DataMember(Name="dateCreation")]
+ public DateTime? DateCreation { get; set; }
+
+ ///
+ /// Gets or Sets Formation
+ ///
+ [Required]
+ [DataMember(Name="formation")]
+ public string Formation { get; set; }
+
+ ///
+ /// Gets or Sets Date
+ ///
+ [DataMember(Name="date")]
+ public DateTime? Date { get; set; }
+
+ ///
+ /// Gets or Sets Statut
+ ///
+ [DataMember(Name="statut")]
+ public string Statut { get; set; }
+
+ ///
+ /// Gets or Sets IdCollaborateur
+ ///
+ [DataMember(Name="idCollaborateur")]
+ public Guid? IdCollaborateur { get; set; }
+
+ ///
+ /// Gets or Sets Collaborateur
+ ///
+ [DataMember(Name="collaborateur")]
+ public string Collaborateur { get; set; }
+
+ ///
+ /// Gets or Sets EstEvaluee
+ ///
+ [Required]
+ [DataMember(Name="estEvaluee")]
+ public bool? EstEvaluee { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ParticipationFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" DateCreation: ").Append(DateCreation).Append("\n");
+ sb.Append(" Formation: ").Append(Formation).Append("\n");
+ sb.Append(" Date: ").Append(Date).Append("\n");
+ sb.Append(" Statut: ").Append(Statut).Append("\n");
+ sb.Append(" IdCollaborateur: ").Append(IdCollaborateur).Append("\n");
+ sb.Append(" Collaborateur: ").Append(Collaborateur).Append("\n");
+ sb.Append(" EstEvaluee: ").Append(EstEvaluee).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ParticipationFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if ParticipationFormationDTO instances are equal
+ ///
+ /// Instance of ParticipationFormationDTO to be compared
+ /// Boolean
+ public bool Equals(ParticipationFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ DateCreation == other.DateCreation ||
+ DateCreation != null &&
+ DateCreation.Equals(other.DateCreation)
+ ) &&
+ (
+ Formation == other.Formation ||
+ Formation != null &&
+ Formation.Equals(other.Formation)
+ ) &&
+ (
+ Date == other.Date ||
+ Date != null &&
+ Date.Equals(other.Date)
+ ) &&
+ (
+ Statut == other.Statut ||
+ Statut != null &&
+ Statut.Equals(other.Statut)
+ ) &&
+ (
+ IdCollaborateur == other.IdCollaborateur ||
+ IdCollaborateur != null &&
+ IdCollaborateur.Equals(other.IdCollaborateur)
+ ) &&
+ (
+ Collaborateur == other.Collaborateur ||
+ Collaborateur != null &&
+ Collaborateur.Equals(other.Collaborateur)
+ ) &&
+ (
+ EstEvaluee == other.EstEvaluee ||
+ EstEvaluee != null &&
+ EstEvaluee.Equals(other.EstEvaluee)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (DateCreation != null)
+ hashCode = hashCode * 59 + DateCreation.GetHashCode();
+ if (Formation != null)
+ hashCode = hashCode * 59 + Formation.GetHashCode();
+ if (Date != null)
+ hashCode = hashCode * 59 + Date.GetHashCode();
+ if (Statut != null)
+ hashCode = hashCode * 59 + Statut.GetHashCode();
+ if (IdCollaborateur != null)
+ hashCode = hashCode * 59 + IdCollaborateur.GetHashCode();
+ if (Collaborateur != null)
+ hashCode = hashCode * 59 + Collaborateur.GetHashCode();
+ if (EstEvaluee != null)
+ hashCode = hashCode * 59 + EstEvaluee.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ParticipationFormationDTO left, ParticipationFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ParticipationFormationDTO left, ParticipationFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ProchainEPDTO.cs b/DTO/ProchainEPDTO.cs
new file mode 100644
index 0000000..094bf76
--- /dev/null
+++ b/DTO/ProchainEPDTO.cs
@@ -0,0 +1,180 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Objet contenant les détails du prochain EP non saisi du collaborateur
+ ///
+ [DataContract]
+ public partial class ProchainEPDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Type
+ ///
+ [Required]
+ [DataMember(Name="type")]
+ public int? Type { get; set; }
+
+ ///
+ /// Gets or Sets DateDisponibilite
+ ///
+ [Required]
+ [DataMember(Name="dateDisponibilite")]
+ public DateTime? DateDisponibilite { get; set; }
+
+ ///
+ /// Gets or Sets DatePrevisionnelle
+ ///
+ [Required]
+ [DataMember(Name="datePrevisionnelle")]
+ public DateTime? DatePrevisionnelle { get; set; }
+
+ ///
+ /// Gets or Sets Obligatoire
+ ///
+ [Required]
+ [DataMember(Name="obligatoire")]
+ public bool? Obligatoire { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ProchainEPDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Type: ").Append(Type).Append("\n");
+ sb.Append(" DateDisponibilite: ").Append(DateDisponibilite).Append("\n");
+ sb.Append(" DatePrevisionnelle: ").Append(DatePrevisionnelle).Append("\n");
+ sb.Append(" Obligatoire: ").Append(Obligatoire).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ProchainEPDTO)obj);
+ }
+
+ ///
+ /// Returns true if ProchainEPDTO instances are equal
+ ///
+ /// Instance of ProchainEPDTO to be compared
+ /// Boolean
+ public bool Equals(ProchainEPDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Type == other.Type ||
+ Type != null &&
+ Type.Equals(other.Type)
+ ) &&
+ (
+ DateDisponibilite == other.DateDisponibilite ||
+ DateDisponibilite != null &&
+ DateDisponibilite.Equals(other.DateDisponibilite)
+ ) &&
+ (
+ DatePrevisionnelle == other.DatePrevisionnelle ||
+ DatePrevisionnelle != null &&
+ DatePrevisionnelle.Equals(other.DatePrevisionnelle)
+ ) &&
+ (
+ Obligatoire == other.Obligatoire ||
+ Obligatoire != null &&
+ Obligatoire.Equals(other.Obligatoire)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Type != null)
+ hashCode = hashCode * 59 + Type.GetHashCode();
+ if (DateDisponibilite != null)
+ hashCode = hashCode * 59 + DateDisponibilite.GetHashCode();
+ if (DatePrevisionnelle != null)
+ hashCode = hashCode * 59 + DatePrevisionnelle.GetHashCode();
+ if (Obligatoire != null)
+ hashCode = hashCode * 59 + Obligatoire.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ProchainEPDTO left, ProchainEPDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ProchainEPDTO left, ProchainEPDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ProfilDTO.cs b/DTO/ProfilDTO.cs
new file mode 100644
index 0000000..eec1afe
--- /dev/null
+++ b/DTO/ProfilDTO.cs
@@ -0,0 +1,178 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Information utile à avoir lorsqu'un utilisateur se connecte
+ ///
+ [DataContract]
+ public partial class ProfilDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Nom
+ ///
+ [Required]
+ [DataMember(Name="nom")]
+ public string Nom { get; set; }
+
+ ///
+ /// Gets or Sets Prenom
+ ///
+ [Required]
+ [DataMember(Name="prenom")]
+ public string Prenom { get; set; }
+
+ ///
+ /// Gets or Sets MailApside
+ ///
+ [Required]
+ [DataMember(Name="mailApside")]
+ public string MailApside { get; set; }
+
+ ///
+ /// Gets or Sets DateArrivee
+ ///
+ [DataMember(Name="dateArrivee")]
+ public DateTime? DateArrivee { get; set; }
+
+ ///
+ /// Gets or Sets BusinessUnit
+ ///
+ [DataMember(Name="businessUnit")]
+ public BusinessUnitDTO BusinessUnit { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ProfilDTO {\n");
+ sb.Append(" Nom: ").Append(Nom).Append("\n");
+ sb.Append(" Prenom: ").Append(Prenom).Append("\n");
+ sb.Append(" MailApside: ").Append(MailApside).Append("\n");
+ sb.Append(" DateArrivee: ").Append(DateArrivee).Append("\n");
+ sb.Append(" BusinessUnit: ").Append(BusinessUnit).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ProfilDTO)obj);
+ }
+
+ ///
+ /// Returns true if ProfilDTO instances are equal
+ ///
+ /// Instance of ProfilDTO to be compared
+ /// Boolean
+ public bool Equals(ProfilDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Nom == other.Nom ||
+ Nom != null &&
+ Nom.Equals(other.Nom)
+ ) &&
+ (
+ Prenom == other.Prenom ||
+ Prenom != null &&
+ Prenom.Equals(other.Prenom)
+ ) &&
+ (
+ MailApside == other.MailApside ||
+ MailApside != null &&
+ MailApside.Equals(other.MailApside)
+ ) &&
+ (
+ DateArrivee == other.DateArrivee ||
+ DateArrivee != null &&
+ DateArrivee.Equals(other.DateArrivee)
+ ) &&
+ (
+ BusinessUnit == other.BusinessUnit ||
+ BusinessUnit != null &&
+ BusinessUnit.Equals(other.BusinessUnit)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Nom != null)
+ hashCode = hashCode * 59 + Nom.GetHashCode();
+ if (Prenom != null)
+ hashCode = hashCode * 59 + Prenom.GetHashCode();
+ if (MailApside != null)
+ hashCode = hashCode * 59 + MailApside.GetHashCode();
+ if (DateArrivee != null)
+ hashCode = hashCode * 59 + DateArrivee.GetHashCode();
+ if (BusinessUnit != null)
+ hashCode = hashCode * 59 + BusinessUnit.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ProfilDTO left, ProfilDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ProfilDTO left, ProfilDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/RDVEntretienDTO.cs b/DTO/RDVEntretienDTO.cs
new file mode 100644
index 0000000..70f1d0f
--- /dev/null
+++ b/DTO/RDVEntretienDTO.cs
@@ -0,0 +1,150 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// RDV pour un entretien
+ ///
+ [DataContract]
+ public partial class RDVEntretienDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public decimal? Id { get; set; }
+
+ ///
+ /// Gets or Sets DateEntretien
+ ///
+ [Required]
+ [DataMember(Name="dateEntretien")]
+ public DateTime? DateEntretien { get; set; }
+
+ ///
+ /// Gets or Sets TypeEntretien
+ ///
+ [Required]
+ [DataMember(Name="typeEntretien")]
+ public TypeEntretienDTO TypeEntretien { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class RDVEntretienDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" DateEntretien: ").Append(DateEntretien).Append("\n");
+ sb.Append(" TypeEntretien: ").Append(TypeEntretien).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((RDVEntretienDTO)obj);
+ }
+
+ ///
+ /// Returns true if RDVEntretienDTO instances are equal
+ ///
+ /// Instance of RDVEntretienDTO to be compared
+ /// Boolean
+ public bool Equals(RDVEntretienDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ DateEntretien == other.DateEntretien ||
+ DateEntretien != null &&
+ DateEntretien.Equals(other.DateEntretien)
+ ) &&
+ (
+ TypeEntretien == other.TypeEntretien ||
+ TypeEntretien != null &&
+ TypeEntretien.Equals(other.TypeEntretien)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (DateEntretien != null)
+ hashCode = hashCode * 59 + DateEntretien.GetHashCode();
+ if (TypeEntretien != null)
+ hashCode = hashCode * 59 + TypeEntretien.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(RDVEntretienDTO left, RDVEntretienDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(RDVEntretienDTO left, RDVEntretienDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/SaisieDTO.cs b/DTO/SaisieDTO.cs
new file mode 100644
index 0000000..8ac6f92
--- /dev/null
+++ b/DTO/SaisieDTO.cs
@@ -0,0 +1,205 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Saisi d'un collaborateur ou d'un référent sur un champ
+ ///
+ [DataContract]
+ public partial class SaisieDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public string Id { get; set; }
+
+ ///
+ /// Gets or Sets TypeSaisie
+ ///
+ [DataMember(Name="typeSaisie")]
+ public int? TypeSaisie { get; set; }
+
+ ///
+ /// Gets or Sets Note
+ ///
+ [DataMember(Name="note")]
+ public int? Note { get; set; }
+
+ ///
+ /// Gets or Sets Texte
+ ///
+ [DataMember(Name="texte")]
+ public string Texte { get; set; }
+
+ ///
+ /// Gets or Sets Texte2
+ ///
+ [DataMember(Name="texte2")]
+ public string Texte2 { get; set; }
+
+ ///
+ /// Gets or Sets Niveau
+ ///
+ [DataMember(Name="niveau")]
+ public int? Niveau { get; set; }
+
+ ///
+ /// Gets or Sets Champ
+ ///
+ [Required]
+ [DataMember(Name="champ")]
+ public ChampDTO Champ { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class SaisieDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" TypeSaisie: ").Append(TypeSaisie).Append("\n");
+ sb.Append(" Note: ").Append(Note).Append("\n");
+ sb.Append(" Texte: ").Append(Texte).Append("\n");
+ sb.Append(" Texte2: ").Append(Texte2).Append("\n");
+ sb.Append(" Niveau: ").Append(Niveau).Append("\n");
+ sb.Append(" Champ: ").Append(Champ).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((SaisieDTO)obj);
+ }
+
+ ///
+ /// Returns true if SaisieDTO instances are equal
+ ///
+ /// Instance of SaisieDTO to be compared
+ /// Boolean
+ public bool Equals(SaisieDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ TypeSaisie == other.TypeSaisie ||
+ TypeSaisie != null &&
+ TypeSaisie.Equals(other.TypeSaisie)
+ ) &&
+ (
+ Note == other.Note ||
+ Note != null &&
+ Note.Equals(other.Note)
+ ) &&
+ (
+ Texte == other.Texte ||
+ Texte != null &&
+ Texte.Equals(other.Texte)
+ ) &&
+ (
+ Texte2 == other.Texte2 ||
+ Texte2 != null &&
+ Texte2.Equals(other.Texte2)
+ ) &&
+ (
+ Niveau == other.Niveau ||
+ Niveau != null &&
+ Niveau.Equals(other.Niveau)
+ ) &&
+ (
+ Champ == other.Champ ||
+ Champ != null &&
+ Champ.Equals(other.Champ)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (TypeSaisie != null)
+ hashCode = hashCode * 59 + TypeSaisie.GetHashCode();
+ if (Note != null)
+ hashCode = hashCode * 59 + Note.GetHashCode();
+ if (Texte != null)
+ hashCode = hashCode * 59 + Texte.GetHashCode();
+ if (Texte2 != null)
+ hashCode = hashCode * 59 + Texte2.GetHashCode();
+ if (Niveau != null)
+ hashCode = hashCode * 59 + Niveau.GetHashCode();
+ if (Champ != null)
+ hashCode = hashCode * 59 + Champ.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(SaisieDTO left, SaisieDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(SaisieDTO left, SaisieDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/StatutFormationDTO.cs b/DTO/StatutFormationDTO.cs
new file mode 100644
index 0000000..61b6348
--- /dev/null
+++ b/DTO/StatutFormationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Statut actuel d'une formation
+ ///
+ [DataContract]
+ public partial class StatutFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class StatutFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((StatutFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if StatutFormationDTO instances are equal
+ ///
+ /// Instance of StatutFormationDTO to be compared
+ /// Boolean
+ public bool Equals(StatutFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(StatutFormationDTO left, StatutFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(StatutFormationDTO left, StatutFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/ThemeDTO.cs b/DTO/ThemeDTO.cs
new file mode 100644
index 0000000..7a851e8
--- /dev/null
+++ b/DTO/ThemeDTO.cs
@@ -0,0 +1,150 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Thème d'une demande de formation
+ ///
+ [DataContract]
+ public partial class ThemeDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Nom
+ ///
+ [Required]
+ [DataMember(Name="nom")]
+ public string Nom { get; set; }
+
+ ///
+ /// Gets or Sets DemandesFormation
+ ///
+ [Required]
+ [DataMember(Name="demandesFormation")]
+ public List DemandesFormation { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class ThemeDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Nom: ").Append(Nom).Append("\n");
+ sb.Append(" DemandesFormation: ").Append(DemandesFormation).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((ThemeDTO)obj);
+ }
+
+ ///
+ /// Returns true if ThemeDTO instances are equal
+ ///
+ /// Instance of ThemeDTO to be compared
+ /// Boolean
+ public bool Equals(ThemeDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Nom == other.Nom ||
+ Nom != null &&
+ Nom.Equals(other.Nom)
+ ) &&
+ (
+ DemandesFormation == other.DemandesFormation ||
+ DemandesFormation != null &&
+ DemandesFormation.SequenceEqual(other.DemandesFormation)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Nom != null)
+ hashCode = hashCode * 59 + Nom.GetHashCode();
+ if (DemandesFormation != null)
+ hashCode = hashCode * 59 + DemandesFormation.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(ThemeDTO left, ThemeDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(ThemeDTO left, ThemeDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/TypeEntretienDTO.cs b/DTO/TypeEntretienDTO.cs
new file mode 100644
index 0000000..68af386
--- /dev/null
+++ b/DTO/TypeEntretienDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Type de l'entretien d'un EP
+ ///
+ [DataContract]
+ public partial class TypeEntretienDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class TypeEntretienDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((TypeEntretienDTO)obj);
+ }
+
+ ///
+ /// Returns true if TypeEntretienDTO instances are equal
+ ///
+ /// Instance of TypeEntretienDTO to be compared
+ /// Boolean
+ public bool Equals(TypeEntretienDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(TypeEntretienDTO left, TypeEntretienDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(TypeEntretienDTO left, TypeEntretienDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/DTO/TypeFormationDTO.cs b/DTO/TypeFormationDTO.cs
new file mode 100644
index 0000000..d35680e
--- /dev/null
+++ b/DTO/TypeFormationDTO.cs
@@ -0,0 +1,135 @@
+/*
+ * API du serveur de l'application de digitalisation des EP
+ *
+ * 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
+ *
+ * Generated by: https://github.com/swagger-api/swagger-codegen.git
+ */
+using System;
+using System.Linq;
+using System.IO;
+using System.Text;
+using System.Collections;
+using System.Collections.Generic;
+using System.Collections.ObjectModel;
+using System.ComponentModel.DataAnnotations;
+using System.Runtime.Serialization;
+using Newtonsoft.Json;
+
+namespace IO.Swagger.DTO
+{
+ ///
+ /// Type d'une formation
+ ///
+ [DataContract]
+ public partial class TypeFormationDTO : IEquatable
+ {
+ ///
+ /// Gets or Sets Id
+ ///
+ [Required]
+ [DataMember(Name="id")]
+ public int? Id { get; set; }
+
+ ///
+ /// Gets or Sets Libelle
+ ///
+ [Required]
+ [DataMember(Name="libelle")]
+ public string Libelle { get; set; }
+
+ ///
+ /// Returns the string presentation of the object
+ ///
+ /// String presentation of the object
+ public override string ToString()
+ {
+ var sb = new StringBuilder();
+ sb.Append("class TypeFormationDTO {\n");
+ sb.Append(" Id: ").Append(Id).Append("\n");
+ sb.Append(" Libelle: ").Append(Libelle).Append("\n");
+ sb.Append("}\n");
+ return sb.ToString();
+ }
+
+ ///
+ /// Returns the JSON string presentation of the object
+ ///
+ /// JSON string presentation of the object
+ public string ToJson()
+ {
+ return JsonConvert.SerializeObject(this, Formatting.Indented);
+ }
+
+ ///
+ /// Returns true if objects are equal
+ ///
+ /// Object to be compared
+ /// Boolean
+ public override bool Equals(object obj)
+ {
+ if (ReferenceEquals(null, obj)) return false;
+ if (ReferenceEquals(this, obj)) return true;
+ return obj.GetType() == GetType() && Equals((TypeFormationDTO)obj);
+ }
+
+ ///
+ /// Returns true if TypeFormationDTO instances are equal
+ ///
+ /// Instance of TypeFormationDTO to be compared
+ /// Boolean
+ public bool Equals(TypeFormationDTO other)
+ {
+ if (ReferenceEquals(null, other)) return false;
+ if (ReferenceEquals(this, other)) return true;
+
+ return
+ (
+ Id == other.Id ||
+ Id != null &&
+ Id.Equals(other.Id)
+ ) &&
+ (
+ Libelle == other.Libelle ||
+ Libelle != null &&
+ Libelle.Equals(other.Libelle)
+ );
+ }
+
+ ///
+ /// Gets the hash code
+ ///
+ /// Hash code
+ public override int GetHashCode()
+ {
+ unchecked // Overflow is fine, just wrap
+ {
+ var hashCode = 41;
+ // Suitable nullity checks etc, of course :)
+ if (Id != null)
+ hashCode = hashCode * 59 + Id.GetHashCode();
+ if (Libelle != null)
+ hashCode = hashCode * 59 + Libelle.GetHashCode();
+ return hashCode;
+ }
+ }
+
+ #region Operators
+ #pragma warning disable 1591
+
+ public static bool operator ==(TypeFormationDTO left, TypeFormationDTO right)
+ {
+ return Equals(left, right);
+ }
+
+ public static bool operator !=(TypeFormationDTO left, TypeFormationDTO right)
+ {
+ return !Equals(left, right);
+ }
+
+ #pragma warning restore 1591
+ #endregion Operators
+ }
+}
diff --git a/EPAServeur.csproj b/EPAServeur.csproj
index 7fd1abc..385c393 100644
--- a/EPAServeur.csproj
+++ b/EPAServeur.csproj
@@ -8,6 +8,11 @@
+
+
+
+
+
diff --git a/Filters/BasePathFilter.cs b/Filters/BasePathFilter.cs
new file mode 100644
index 0000000..c9d95d6
--- /dev/null
+++ b/Filters/BasePathFilter.cs
@@ -0,0 +1,51 @@
+using System.Linq;
+using System.Text.RegularExpressions;
+using Swashbuckle.AspNetCore.Swagger;
+using Swashbuckle.AspNetCore.SwaggerGen;
+using Microsoft.OpenApi.Models;
+
+namespace IO.Swagger.Filters
+{
+ ///
+ /// BasePath Document Filter sets BasePath property of Swagger and removes it from the individual URL paths
+ ///
+ public class BasePathFilter : IDocumentFilter
+ {
+ ///
+ /// Constructor
+ ///
+ /// BasePath to remove from Operations
+ public BasePathFilter(string basePath)
+ {
+ BasePath = basePath;
+ }
+
+ ///
+ /// Gets the BasePath of the Swagger Doc
+ ///
+ /// The BasePath of the Swagger Doc
+ public string BasePath { get; }
+
+ ///
+ /// Apply the filter
+ ///
+ /// OpenApiDocument
+ /// FilterContext
+ public void Apply(OpenApiDocument swaggerDoc, DocumentFilterContext context)
+ {
+ swaggerDoc.Servers.Add(new OpenApiServer() { Url = this.BasePath });
+
+ var pathsToModify = swaggerDoc.Paths.Where(p => p.Key.StartsWith(this.BasePath)).ToList();
+
+ foreach (var path in pathsToModify)
+ {
+ if (path.Key.StartsWith(this.BasePath))
+ {
+ string newKey = Regex.Replace(path.Key, $"^{this.BasePath}", string.Empty);
+ swaggerDoc.Paths.Remove(path.Key);
+ swaggerDoc.Paths.Add(newKey, path.Value);
+ }
+ }
+ }
+ }
+}
diff --git a/Filters/GeneratePathParamsValidationFilter.cs b/Filters/GeneratePathParamsValidationFilter.cs
new file mode 100644
index 0000000..1845e56
--- /dev/null
+++ b/Filters/GeneratePathParamsValidationFilter.cs
@@ -0,0 +1,96 @@
+using System.ComponentModel.DataAnnotations;
+using System.Linq;
+using Microsoft.AspNetCore.Mvc.Controllers;
+using Microsoft.OpenApi.Models;
+using Swashbuckle.AspNetCore.SwaggerGen;
+
+namespace IO.Swagger.Filters
+{
+ ///
+ /// Path Parameter Validation Rules Filter
+ ///
+ public class GeneratePathParamsValidationFilter : IOperationFilter
+ {
+ ///
+ /// Constructor
+ ///
+ /// Operation
+ /// OperationFilterContext
+ public void Apply(OpenApiOperation operation, OperationFilterContext context)
+ {
+ var pars = context.ApiDescription.ParameterDescriptions;
+
+ foreach (var par in pars)
+ {
+ var swaggerParam = operation.Parameters.SingleOrDefault(p => p.Name == par.Name);
+
+ var attributes = ((ControllerParameterDescriptor)par.ParameterDescriptor).ParameterInfo.CustomAttributes;
+
+ if (attributes != null && attributes.Count() > 0 && swaggerParam != null)
+ {
+ // Required - [Required]
+ var requiredAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RequiredAttribute));
+ if (requiredAttr != null)
+ {
+ swaggerParam.Required = true;
+ }
+
+ // Regex Pattern [RegularExpression]
+ var regexAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RegularExpressionAttribute));
+ if (regexAttr != null)
+ {
+ string regex = (string)regexAttr.ConstructorArguments[0].Value;
+ if (swaggerParam is OpenApiParameter)
+ {
+ ((OpenApiParameter)swaggerParam).Schema.Pattern = regex;
+ }
+ }
+
+ // String Length [StringLength]
+ int? minLenght = null, maxLength = null;
+ var stringLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(StringLengthAttribute));
+ if (stringLengthAttr != null)
+ {
+ if (stringLengthAttr.NamedArguments.Count == 1)
+ {
+ minLenght = (int)stringLengthAttr.NamedArguments.Single(p => p.MemberName == "MinimumLength").TypedValue.Value;
+ }
+ maxLength = (int)stringLengthAttr.ConstructorArguments[0].Value;
+ }
+
+ var minLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MinLengthAttribute));
+ if (minLengthAttr != null)
+ {
+ minLenght = (int)minLengthAttr.ConstructorArguments[0].Value;
+ }
+
+ var maxLengthAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(MaxLengthAttribute));
+ if (maxLengthAttr != null)
+ {
+ maxLength = (int)maxLengthAttr.ConstructorArguments[0].Value;
+ }
+
+ if (swaggerParam is OpenApiParameter)
+ {
+ ((OpenApiParameter)swaggerParam).Schema.MinLength = minLenght;
+ ((OpenApiParameter)swaggerParam).Schema.MaxLength = maxLength;
+ }
+
+ // Range [Range]
+ var rangeAttr = attributes.FirstOrDefault(p => p.AttributeType == typeof(RangeAttribute));
+ if (rangeAttr != null)
+ {
+ int rangeMin = (int)rangeAttr.ConstructorArguments[0].Value;
+ int rangeMax = (int)rangeAttr.ConstructorArguments[1].Value;
+
+ if (swaggerParam is OpenApiParameter)
+ {
+ ((OpenApiParameter)swaggerParam).Schema.Minimum = rangeMin;
+ ((OpenApiParameter)swaggerParam).Schema.Maximum = rangeMax;
+ }
+ }
+ }
+ }
+ }
+ }
+}
diff --git a/Models/EP/AugmentationSalaire.cs b/Models/EP/AugmentationSalaire.cs
index f08c9d5..0499249 100644
--- a/Models/EP/AugmentationSalaire.cs
+++ b/Models/EP/AugmentationSalaire.cs
@@ -10,6 +10,7 @@ namespace EPAServeur.Models.EP
public int Id { get; set; }
public double Augmentation { get; set; }
public double? PrimeMission { get; set; }
+ public string Message { get; set; }
public int EpId { get; set; }
public Ep Ep { get; set; }
}
diff --git a/Models/EP/Delegation.cs b/Models/EP/Delegation.cs
index 615dff5..58f61e5 100644
--- a/Models/EP/Delegation.cs
+++ b/Models/EP/Delegation.cs
@@ -10,6 +10,7 @@ namespace EPAServeur.Models.EP
public int Id { get; set; }
public string IdReferent { get; set; }
public DateTime DateDemande { get; set; }
+ public string RaisonDemande { get; set; }
public bool? Reponse { get; set; }
public DateTime DateReponse { get; set; }
public string RaisonRefus { get; set; }
diff --git a/Models/EP/Ep.cs b/Models/EP/Ep.cs
index 3920a52..4f99b49 100644
--- a/Models/EP/Ep.cs
+++ b/Models/EP/Ep.cs
@@ -36,6 +36,7 @@ namespace EPAServeur.Models.EP
public DateTime DateSaisie { get; set; }
public DateTime DatePrevisionnelle { get; set; }
public StatutEP Statut { get; set; }
+ public DateTime DateUpdate { get; set; }
public string CV { get; set; }
public string CommentaireAssistante { get; set; }
public string CommentaireObjectifsPrecedent { get; set; }
diff --git a/Program.cs b/Program.cs
index 20a9280..dda309a 100644
--- a/Program.cs
+++ b/Program.cs
@@ -15,7 +15,6 @@ namespace EPAServeur
{
public static void Main(string[] args)
{
- SetupDatabase();
CreateHostBuilder(args).Build().Run();
}
@@ -27,14 +26,6 @@ namespace EPAServeur
webBuilder.UseStartup();
});
- private static void SetupDatabase()
- {
- EpContext context = new EpContext();
- context.Database.EnsureDeleted(); //PENSEZ A ENLEVER CETTE LIGNE ET A NE JAMAIS LA REMETTRE QUAND LE SERVEUR SERA MIS EN PRODUCTION ^^
- context.Database.EnsureCreated();
- context.SaveChanges();
- context.AjoutInformationsDeBase();
- context.AjoutChamps();
- }
+
}
}
diff --git a/Security/BearerAuthenticationHandler.cs b/Security/BearerAuthenticationHandler.cs
new file mode 100644
index 0000000..15c7ab0
--- /dev/null
+++ b/Security/BearerAuthenticationHandler.cs
@@ -0,0 +1,58 @@
+using System;
+using System.Net.Http.Headers;
+using System.Security.Claims;
+using System.Text;
+using System.Text.Encodings.Web;
+using System.Threading.Tasks;
+using Microsoft.AspNetCore.Authentication;
+using Microsoft.Extensions.Logging;
+using Microsoft.Extensions.Options;
+
+namespace IO.Swagger.Security
+{
+ ///
+ /// class to handle bearer authentication.
+ ///
+ public class BearerAuthenticationHandler : AuthenticationHandler
+ {
+ ///
+ /// scheme name for authentication handler.
+ ///
+ public const string SchemeName = "Bearer";
+
+ public BearerAuthenticationHandler(IOptionsMonitor options, ILoggerFactory logger, UrlEncoder encoder, ISystemClock clock) : base(options, logger, encoder, clock)
+ {
+ }
+
+ ///
+ /// verify that require authorization header exists.
+ ///
+ protected override async Task HandleAuthenticateAsync()
+ {
+ if (!Request.Headers.ContainsKey("Authorization"))
+ {
+ return AuthenticateResult.Fail("Missing Authorization Header");
+ }
+ try
+ {
+ var authHeader = AuthenticationHeaderValue.Parse(Request.Headers["Authorization"]);
+
+ /// TODO handle token.
+ }
+ catch
+ {
+ return AuthenticateResult.Fail("Invalid Authorization Header");
+ }
+
+ var claims = new[] {
+ new Claim(ClaimTypes.NameIdentifier, "changeme"),
+ new Claim(ClaimTypes.Name, "changeme"),
+ };
+ var identity = new ClaimsIdentity(claims, Scheme.Name);
+ var principal = new ClaimsPrincipal(identity);
+ var ticket = new AuthenticationTicket(principal, Scheme.Name);
+
+ return AuthenticateResult.Success(ticket);
+ }
+ }
+}
diff --git a/Startup.cs b/Startup.cs
index 8464c44..175993f 100644
--- a/Startup.cs
+++ b/Startup.cs
@@ -2,6 +2,9 @@ using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
+using EPAServeur.Context;
+using IO.Swagger.Security;
+using Microsoft.AspNetCore.Authentication;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.HttpsPolicy;
@@ -25,7 +28,21 @@ namespace EPAServeur
// This method gets called by the runtime. Use this method to add services to the container.
public void ConfigureServices(IServiceCollection services)
{
+ //SetupDatabase();
services.AddControllers();
+ services.AddAuthentication(BearerAuthenticationHandler.SchemeName)
+ .AddScheme(BearerAuthenticationHandler.SchemeName, null);
+ services.AddDbContext();
+ using(var context = new EpContext())
+ {
+ context.Database.EnsureDeleted(); //PENSEZ A ENLEVER CETTE LIGNE ET A NE JAMAIS LA REMETTRE QUAND LE SERVEUR SERA MIS EN PRODUCTION ^^
+ context.Database.EnsureCreated();
+ context.SaveChanges();
+ context.AjoutInformationsDeBase();
+ context.AjoutChamps();
+ }
+ //ensurecreated HERE
+ //faire using, check si kekchoz exkist puis appeler les méthodes de création si il n'y a rien
}
// This method gets called by the runtime. Use this method to configure the HTTP request pipeline.