diff --git a/Api_VT.sln b/ApiPolo.sln similarity index 88% rename from Api_VT.sln rename to ApiPolo.sln index f5c4e40..fd7bfdd 100644 --- a/Api_VT.sln +++ b/ApiPolo.sln @@ -3,7 +3,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 VisualStudioVersion = 17.1.32319.34 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Api_VT", "ApiPolo\Api_VT.csproj", "{FCB070A4-CB11-48F7-8245-A609151A95F7}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ApiPolo", "ApiPolo\ApiPolo.csproj", "{FCB070A4-CB11-48F7-8245-A609151A95F7}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution diff --git a/ApiPolo/Api_VT.csproj b/ApiPolo/ApiPolo.csproj similarity index 100% rename from ApiPolo/Api_VT.csproj rename to ApiPolo/ApiPolo.csproj diff --git a/ApiPolo/Controllers/PoloController.cs b/ApiPolo/Controllers/PoloController.cs index 1d55454..3b6782c 100644 --- a/ApiPolo/Controllers/PoloController.cs +++ b/ApiPolo/Controllers/PoloController.cs @@ -41,8 +41,6 @@ using Microsoft.Extensions.Primitives; using System.Text.RegularExpressions; using System.Runtime.CompilerServices; using System.Diagnostics; -using Api_VT.Models.VT_dbcontext; -using Api_VT.Models; namespace ApiPolo.Controllers { diff --git a/ApiPolo/Models/CodiceSegnalazione.cs b/ApiPolo/Models/CodiceSegnalazione.cs index abc1d5d..d3ce1bc 100644 --- a/ApiPolo/Models/CodiceSegnalazione.cs +++ b/ApiPolo/Models/CodiceSegnalazione.cs @@ -1,6 +1,6 @@ using System.ComponentModel.DataAnnotations; -namespace Api_VT.Models +namespace ApiPolo.Models { public class CodiceSegnalazione { diff --git a/ApiPolo/Models/TabelleDominio.cs b/ApiPolo/Models/TabelleDominio.cs index c162afb..a93a44b 100644 --- a/ApiPolo/Models/TabelleDominio.cs +++ b/ApiPolo/Models/TabelleDominio.cs @@ -1,4 +1,4 @@ -using Api_VT.Models; + namespace ApiPolo.Models { diff --git a/ApiPolo/Models/VT_dbcontext/VT_CODICE_SEGNALAZIONE_DbContext.cs b/ApiPolo/Models/VT_dbcontext/VT_CODICE_SEGNALAZIONE_DbContext.cs index 85c9b37..046b655 100644 --- a/ApiPolo/Models/VT_dbcontext/VT_CODICE_SEGNALAZIONE_DbContext.cs +++ b/ApiPolo/Models/VT_dbcontext/VT_CODICE_SEGNALAZIONE_DbContext.cs @@ -2,7 +2,7 @@ using ApiPolo.Models.VT_dbcontext; using Microsoft.EntityFrameworkCore; -namespace Api_VT.Models.VT_dbcontext +namespace ApiPolo.Models.VT_dbcontext { public class VT_CODICE_SEGNALAZIONE_DbContext : DbContext { diff --git a/ApiPolo/Startup.cs b/ApiPolo/Startup.cs index c8b17bd..8cc17ce 100644 --- a/ApiPolo/Startup.cs +++ b/ApiPolo/Startup.cs @@ -4,9 +4,6 @@ using Microsoft.OpenApi.Models; using ApiPolo.Services; using ApiPolo.Models.VT_dbcontext; using ApiPolo.Interfaces; -//using ApiPolo.Data; -using Api_VT.Models; -using Api_VT.Models.VT_dbcontext; namespace ApiPolo { @@ -150,7 +147,7 @@ namespace ApiPolo string dt = oggi.ToString(); gen.SwaggerDoc("v1", new OpenApiInfo { Title = "API VIRTUAL TASK - v.app 1.30", Version = dt }); - var filePath = Path.Combine(System.AppContext.BaseDirectory, "Api_VT.xml"); + var filePath = Path.Combine(System.AppContext.BaseDirectory, "ApiPolo.xml"); gen.IncludeXmlComments(filePath); }); @@ -186,7 +183,7 @@ namespace ApiPolo //app.UseSwaggerUI(); app.UseSwaggerUI(c => { - c.SwaggerEndpoint("/swagger/v1/swagger.json", "POLO API V2"); + c.SwaggerEndpoint("/swagger/v1/swagger.json", "POLO API virtualtask"); }); //app.UseHttpsRedirection();