Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add possibility to enable Swagger UI #1060

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

tnotheis
Copy link
Member

Readiness checklist

  • I added/updated unit tests.
  • I added/updated integration tests.
  • I ensured that the PR title is good enough for the changelog.
  • I labeled the PR.

@tnotheis tnotheis added chore Some routine work like updating dependencies wip Work in Progress labels Feb 27, 2025
@tnotheis tnotheis self-assigned this Feb 27, 2025
@@ -130,6 +131,67 @@ static WebApplication CreateApp(string[] args)

static void ConfigureServices(IServiceCollection services, IConfiguration configuration, IHostEnvironment environment)
{
services.AddEndpointsApiExplorer();

services.AddSwaggerGen(c =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add possibility to configure whether it's enabled

Comment on lines +134 to +136
services.AddEndpointsApiExplorer();

services.AddSwaggerGen(c =>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extract this into an extension method

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Some routine work like updating dependencies wip Work in Progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant