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 AddEndpointsApiExplorer to DefaultSetup #56

Open
bennetrr opened this issue Dec 11, 2023 · 3 comments
Open

Add AddEndpointsApiExplorer to DefaultSetup #56

bennetrr opened this issue Dec 11, 2023 · 3 comments

Comments

@bennetrr
Copy link
Member

Add builder.Services.AddEndpointsApiExplorer() to builder.Services.AddDefaultSetup().

@robinmanuelthiel
Copy link
Member

Can you describe a bit more why this is needed and for what?

@bennetrr
Copy link
Member Author

This is related to the issue where I couldn't see the asp.net identity endpoints in swagger.
The solution was to add the code above to my Program.cs, although I invoked AddDefaultSetup() with OpenAPI enabled in the options.

@robinmanuelthiel
Copy link
Member

robinmanuelthiel commented Jan 13, 2024

Can you pls a full code sample here? According to my research, AddEndpointsApiExplorer is only relevant for minimal APIs in .NET

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

No branches or pull requests

2 participants