Skip to content

Remove Swagger from the API projects (using OpenAPI instead) #99

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

Merged
merged 2 commits into from
Mar 10, 2025

Conversation

jongalloway
Copy link
Contributor

This pull request includes changes to the Program.cs files in both the complete/Api and start/Api directories to improve the configuration of the HTTP request pipeline. The most important changes involve reordering middleware and consolidating the Swagger setup.

Changes to complete/Api/Program.cs:

  • Moved app.UseHttpsRedirection() to be after the development environment check.

Changes to start/Api/Program.cs:

  • Consolidated the Swagger setup by using app.MapOpenApi() within the development environment check and removed redundant code.

@jamesmontemagno jamesmontemagno merged commit 4adbeed into main Mar 10, 2025
3 checks passed
@jamesmontemagno jamesmontemagno deleted the remove-swagger branch March 10, 2025 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants