• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

mehdihadeli / food-delivery-microservices / 28673438973

03 Jul 2026 04:47PM UTC coverage: 16.207%. First build
28673438973

Pull #253

github

web-flow
Merge 8ba353278 into 6c7e230c7
Pull Request #253: feat: replace masstransit with wolverine

337 of 3348 branches covered (10.07%)

Branch coverage included in aggregate %.

125 of 258 new or added lines in 26 files covered. (48.45%)

1396 of 7345 relevant lines covered (19.01%)

0.39 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/src/BuildingBlocks/BuildingBlocks.OpenApi/Swashbuckle/Extensions/WebApplicationExtensions.cs
1
using BuildingBlocks.Core.Web.Extensions;
2
using Microsoft.AspNetCore.Builder;
3
using Microsoft.AspNetCore.Http;
4
using Microsoft.Extensions.Hosting;
5
using Scalar.AspNetCore;
6

7
namespace BuildingBlocks.OpenApi.Swashbuckle.Extensions;
8

9
public static class WebApplicationExtensions
10
{
11
    public static WebApplication UseSwaggerOpenApi(this WebApplication app)
12
    {
13
        // show in both production and development
NEW
14
        app.MapGet("/", () => $"{app.Environment.ApplicationName} is started.").ExcludeFromDescription();
×
15

16
        if (!app.Environment.IsDevelopment())
×
17
            return app;
×
18

19
        // we should not see openapi docs in none development mode
NEW
20
        app.UseSwagger();
×
21

22
        var descriptions = app.DescribeApiVersions();
×
23

24
        // Add swagger ui
25
        app.UseSwaggerUI(options =>
×
26
        {
×
27
            // build a swagger endpoint for each discovered API version
×
28
            foreach (var description in descriptions)
×
29
            {
×
30
                var openApiUrl = $"/openapi/{description.GroupName}.json";
×
31
                var name = description.GroupName.ToUpperInvariant();
×
32
                options.SwaggerEndpoint(openApiUrl, name);
×
33
            }
×
34
        });
×
35

36
        // Add scalar ui
37
        app.MapScalarApiReference(scalarOptions =>
×
38
        {
×
39
            scalarOptions.WithOpenApiRoutePattern("/openapi/{documentName}.json");
×
40
            scalarOptions.Theme = ScalarTheme.BluePlanet;
×
41
            // Disable default fonts to avoid download unnecessary fonts
×
42
            scalarOptions.DefaultFonts = false;
×
43
        });
×
44

45
        return app;
×
46
    }
47
}
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc