Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ Add the following configuration to your `appsettings.json` file:
Based on the above configuration, the UI will be accessible at the following URLs:

- **Swagger (all documents):** [http://localhost/swagger](http://localhost/swagger)
- **Swagger (external document only):** [http://localhost/doc/integration-v1](http://localhost/doc/integration-v1)
- **Swagger (external document only):** [http://localhost/swagger/integration-v1](http://localhost/swagger/integration-v1)
- **Scalar (admin document):** [http://localhost/scalar/admin-v1](http://localhost/scalar/admin-v1)
- **Scalar (integration document):** [http://localhost/scalar/integration-v1](http://localhost/scalar/integration-v1)

Expand Down
6 changes: 2 additions & 4 deletions Shared.Kernel.Demo/Program.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using DistributedCache.Options;
using FluentMinimalApiMapper;
using Microsoft.AspNetCore.Mvc;
using SharedKernel.Demo2;
using ResponseCrafter.Enums;
using ResponseCrafter.Extensions;
using ResponseCrafter.HttpExceptions;
using SharedKernel.Extensions;
using SharedKernel.Helpers;
using SharedKernel.Logging;
Expand All @@ -27,8 +25,8 @@
.AddControllers(AssemblyRegistry.ToArray())
.AddMediatrWithBehaviors(AssemblyRegistry.ToArray())
.AddResilienceDefaultPipeline()
.AddRedis(KeyPrefix.AssemblyNamePrefix)
.AddDistributedSignalR("DistributedSignalR") // or .AddSignalR()
// .AddRedis(KeyPrefix.AssemblyNamePrefix)
//.AddDistributedSignalR("DistributedSignalR") // or .AddSignalR()
.MapDefaultTimeZone()
.AddCors()
.AddHealthChecks();
Expand Down
2 changes: 0 additions & 2 deletions src/SharedKernel/Extensions/ControllerExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
using System.Reflection;
using System.Text.RegularExpressions;
using Humanizer;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Mvc.ApplicationModels;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.OpenApi.Models;

namespace SharedKernel.Extensions;

Expand Down
1 change: 0 additions & 1 deletion src/SharedKernel/Extensions/OpenTelemetryExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Diagnostics.HealthChecks;
using Microsoft.Extensions.Logging;
using OpenTelemetry;
using OpenTelemetry.Logs;
using OpenTelemetry.Metrics;
using OpenTelemetry.Resources;
Expand Down
1 change: 0 additions & 1 deletion src/SharedKernel/OpenApi/OpenApiExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Hosting;
using RegexBox;
using Scalar.AspNetCore;
using SharedKernel.OpenApi.Options;

namespace SharedKernel.OpenApi;
Expand Down
5 changes: 1 addition & 4 deletions src/SharedKernel/OpenApi/UiExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
using System.Reflection;
using Microsoft.AspNetCore.Builder;
using Microsoft.Extensions.Configuration;
using Scalar.AspNetCore;
using SharedKernel.Extensions;
using SharedKernel.OpenApi.Options;
using Swashbuckle.AspNetCore.SwaggerUI;

Expand All @@ -29,7 +26,7 @@ internal static WebApplication MapSwaggerUi(this WebApplication app, OpenApiConf
app.UseSwaggerUI(options =>
{
options.SwaggerEndpoint($"{document.GetEndpointUrl()}", document.Title);
options.RoutePrefix = $"doc/{document.GroupName}";
options.RoutePrefix = $"swagger/{document.GroupName}";
options.AddPandaOptions();
});
}
Expand Down
12 changes: 6 additions & 6 deletions src/SharedKernel/SharedKernel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,13 @@
<PackageReadmeFile>Readme.md</PackageReadmeFile>
<Authors>Pandatech</Authors>
<Copyright>MIT</Copyright>
<Version>1.0.15</Version>
<Version>1.0.16</Version>
<PackageId>Pandatech.SharedKernel</PackageId>
<Title>Pandatech Shared Kernel Library</Title>
<PackageTags>Pandatech, shared kernel, library, OpenAPI, Swagger, utilities, scalar</PackageTags>
<Description>Pandatech.SharedKernel provides centralized configurations, utilities, and extensions for ASP.NET Core projects. For more information refere to readme.md document.</Description>
<RepositoryUrl>https://github.com/PandaTechAM/be-lib-sharedkernel</RepositoryUrl>
<PackageReleaseNotes>OpenTelemetry bug fix</PackageReleaseNotes>
<PackageReleaseNotes>Swagger enhancment</PackageReleaseNotes>
</PropertyGroup>

<ItemGroup>
Expand Down Expand Up @@ -42,18 +42,18 @@
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.10.0" />
<PackageReference Include="OpenTelemetry.Exporter.Prometheus.AspNetCore" Version="1.8.0-rc.1"/>
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.10.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.9.0"/>
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.10.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.EntityFrameworkCore" Version="1.0.0-beta.12" />
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.10.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.9.0"/>
<PackageReference Include="OpenTelemetry.Instrumentation.Runtime" Version="1.10.0" />
<PackageReference Include="Pandatech.Crypto" Version="4.1.1" />
<PackageReference Include="Pandatech.DistributedCache" Version="3.0.1" />
<PackageReference Include="Pandatech.FluentMinimalApiMapper" Version="2.0.1" />
<PackageReference Include="Pandatech.PandaVaultClient" Version="4.0.3" />
<PackageReference Include="Pandatech.RegexBox" Version="3.0.0" />
<PackageReference Include="Pandatech.ResponseCrafter" Version="5.0.3" />
<PackageReference Include="Scalar.AspNetCore" Version="1.2.48" />
<PackageReference Include="Serilog.AspNetCore" Version="8.0.3" />
<PackageReference Include="Scalar.AspNetCore" Version="1.2.49" />
<PackageReference Include="Serilog.AspNetCore" Version="9.0.0" />
<PackageReference Include="Swashbuckle.AspNetCore.SwaggerUI" Version="7.1.0" />
</ItemGroup>

Expand Down