C
C#2y 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
AcornOP2y ago
Acorn
AcornOP2y ago
Acorn
AcornOP2y ago
program.cs file ^
JakenVeina
JakenVeina2y 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
Henkypenky2y 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
Henkypenky2y ago
Henkypenky
Henkypenky2y ago
seems fun, gonna read more about it
Accord
Accord2y 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