C
C#15mo ago
Acorn

❔ Net6.0 Web API Swagger Error 404

im assuming this is something wrong with our controllers, or perhaps our program.cs file. any tips? can't seem to find anything online about a 404 error, just 500
8 Replies
Acorn
Acorn15mo ago
Acorn
Acorn15mo ago
Acorn
Acorn15mo ago
program.cs file ^
JakenVeina
JakenVeina15mo ago
why is the service configuration for swagger commented out? is that not kinda important? otherwise, maybe try moving the swagger handlers to the top of the pipeline
Henkypenky
Henkypenky15mo ago
this is NSwag not swagger i mean are they related? i don't know ah yes so you need
builder.Services.AddSwaggerDocument();
builder.Services.AddSwaggerDocument();
so it seems NSwag is built on top of swagger
Henkypenky
Henkypenky15mo ago
Henkypenky
Henkypenky15mo ago
seems fun, gonna read more about it
Accord
Accord15mo ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server
More Posts