diff --git a/API_dotnet.sln b/API_dotnet.sln index b642672..f5ae49d 100644 --- a/API_dotnet.sln +++ b/API_dotnet.sln @@ -9,14 +9,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server", "Server\Server.csp EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Shared", "Shared\Shared.csproj", "{C07A8E83-FC00-4CDD-B74D-DB34F950E986}" EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "TestAPI", "TestAPI\TestAPI.csproj", "{8ECB7F8F-FCD4-4AA0-9F68-76A1A0944107}" -EndProject -Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "ConsoleTest", "ConsoleTest\ConsoleTest.csproj", "{603E5564-6E8E-43BA-B260-FED22612E6EF}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestConsoleApi", "TestConsoleApi\TestConsoleApi.csproj", "{501CB464-8843-4500-AFB3-90C85658619C}" -EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "UnitTestEF", "UnitTestEF\UnitTestEF.csproj", "{10655D92-BEAC-4BAB-AB82-65AF1DE7B60D}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -35,22 +27,6 @@ Global {C07A8E83-FC00-4CDD-B74D-DB34F950E986}.Debug|Any CPU.Build.0 = Debug|Any CPU {C07A8E83-FC00-4CDD-B74D-DB34F950E986}.Release|Any CPU.ActiveCfg = Release|Any CPU {C07A8E83-FC00-4CDD-B74D-DB34F950E986}.Release|Any CPU.Build.0 = Release|Any CPU - {8ECB7F8F-FCD4-4AA0-9F68-76A1A0944107}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {8ECB7F8F-FCD4-4AA0-9F68-76A1A0944107}.Debug|Any CPU.Build.0 = Debug|Any CPU - {8ECB7F8F-FCD4-4AA0-9F68-76A1A0944107}.Release|Any CPU.ActiveCfg = Release|Any CPU - {8ECB7F8F-FCD4-4AA0-9F68-76A1A0944107}.Release|Any CPU.Build.0 = Release|Any CPU - {603E5564-6E8E-43BA-B260-FED22612E6EF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {603E5564-6E8E-43BA-B260-FED22612E6EF}.Debug|Any CPU.Build.0 = Debug|Any CPU - {603E5564-6E8E-43BA-B260-FED22612E6EF}.Release|Any CPU.ActiveCfg = Release|Any CPU - {603E5564-6E8E-43BA-B260-FED22612E6EF}.Release|Any CPU.Build.0 = Release|Any CPU - {501CB464-8843-4500-AFB3-90C85658619C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {501CB464-8843-4500-AFB3-90C85658619C}.Debug|Any CPU.Build.0 = Debug|Any CPU - {501CB464-8843-4500-AFB3-90C85658619C}.Release|Any CPU.ActiveCfg = Release|Any CPU - {501CB464-8843-4500-AFB3-90C85658619C}.Release|Any CPU.Build.0 = Release|Any CPU - {10655D92-BEAC-4BAB-AB82-65AF1DE7B60D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {10655D92-BEAC-4BAB-AB82-65AF1DE7B60D}.Debug|Any CPU.Build.0 = Debug|Any CPU - {10655D92-BEAC-4BAB-AB82-65AF1DE7B60D}.Release|Any CPU.ActiveCfg = Release|Any CPU - {10655D92-BEAC-4BAB-AB82-65AF1DE7B60D}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Server/Program.cs b/Server/Program.cs index 52fa197..bcb7bd5 100644 --- a/Server/Program.cs +++ b/Server/Program.cs @@ -22,9 +22,6 @@ builder.Services.AddAutoMapper(typeof(UsersMappers)); // Learn more about configuring Swagger/OpenAPI at https://aka.ms/aspnetcore/swashbuckle builder.Services.AddEndpointsApiExplorer(); -builder.Services.AddSwaggerGen(c => - c.SwaggerDoc("v1", new OpenApiInfo { Title = "Optifit API", Version = "v1" }) -); // Add API's versioning builder.Services.AddApiVersioning(options => @@ -39,6 +36,10 @@ builder.Services.AddApiVersioning(options => options.SubstituteApiVersionInUrl = true; }); +builder.Services.AddSwaggerGen(c => + c.SwaggerDoc("v1", new OpenApiInfo { Title = "Optifit API", Version = "v1" }) +); + builder.Services.AddRouting(options => options.LowercaseUrls = true); var app = builder.Build(); diff --git a/Server/Properties/launchSettings.json b/Server/Properties/launchSettings.json index c959d0a..e78f43b 100644 --- a/Server/Properties/launchSettings.json +++ b/Server/Properties/launchSettings.json @@ -4,7 +4,7 @@ "commandName": "Project", "dotnetRunMessages": true, "launchBrowser": true, - "launchUrl": "swagger", + "launchUrl": "", "applicationUrl": "http://localhost:5166", "environmentVariables": { "ASPNETCORE_ENVIRONMENT": "Development"