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
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Each layer adds services specific to its scope, ensuring proper service availabi
### Registration Flow Example (Server API):

1. **`Program.cs`** calls `AddServerApiProjectServices()`
2. **`AddServerApiProjectServices()`** internally calls helper methods like `AddIdentity()`, `AddSwaggerGen()`
2. **`AddServerApiProjectServices()`** internally calls helper methods like `AddIdentity()`
3. Each helper method registers related services (e.g., Identity services, JWT authentication, external auth providers)

## Service Availability Matrix
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,16 +350,7 @@ self.serverHandledUrls = [
/\/odata\//,
/\/core\//,
/\/hangfire/,
/\/healthchecks-ui/,
/\/healthz/,
/\/health/,
/\/alive/,
/\/swagger/,
/\/signin-/,
/\/.well-known/,
/\/sitemap.xml/,
/\/sitemap_index.xml/,
/\/web-interop-app.html/
...
];
```

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ private static void ConfigureMiddlewares(this WebApplication app)

app.MapAppHealthChecks();

app.MapOpenApi();
app.MapScalarApiReference();
app.MapOpenApi().CacheOutput("AppResponseCachePolicy");
app.MapScalarApiReference().CacheOutput("AppResponseCachePolicy");
app.MapGet("/", () => Results.Redirect("/scalar")).ExcludeFromDescription();
app.MapGet("/swagger", () => Results.Redirect("/scalar")).ExcludeFromDescription();

Expand All @@ -70,7 +70,7 @@ private static void ConfigureMiddlewares(this WebApplication app)
{
RouteParameter = routeParameter,
QueryStringParameter = queryStringParameter
}).WithTags("Test").CacheOutput("AppResponseCachePolicy");
}).WithTags("Test").CacheOutput("AppResponseCachePolicy").ExcludeFromDescription();

//#if (signalR == true)
app.MapHub<SignalR.AppHub>("/app-hub", options => options.AllowStatefulReconnects = true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,8 @@ public static void ConfigureMiddlewares(this WebApplication app)
app.MapAppHealthChecks();

//#if (api == "Integrated")
app.MapOpenApi();
app.MapScalarApiReference();
app.MapOpenApi().CacheOutput("AppResponseCachePolicy");
app.MapScalarApiReference().CacheOutput("AppResponseCachePolicy");
app.MapGet("/swagger", () => Results.Redirect("/scalar")).ExcludeFromDescription();

app.UseHangfireDashboard(options: new()
Expand All @@ -128,7 +128,7 @@ public static void ConfigureMiddlewares(this WebApplication app)
{
RouteParameter = routeParameter,
QueryStringParameter = queryStringParameter
}).WithTags("Test").CacheOutput("AppResponseCachePolicy");
}).WithTags("Test").CacheOutput("AppResponseCachePolicy").ExcludeFromDescription();

//#if (signalR == true)
if (string.IsNullOrEmpty(configuration["Azure:SignalR:ConnectionString"]) is false
Expand Down
Loading