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

Kubernetes | Dotnet Core | Swagger.json 404 not found error #1444

Closed
vishalhanda979 opened this issue May 27, 2024 · 0 comments
Closed

Kubernetes | Dotnet Core | Swagger.json 404 not found error #1444

vishalhanda979 opened this issue May 27, 2024 · 0 comments

Comments

@vishalhanda979
Copy link

We are using swashbuckle library. Swagger index.html works fine when Dotnet core rest service is hosted on virtual machine with URL like https://domain.com:9000/test/index.html. Test is the route prefix.

But when dotnetcore service is hosted on kubernetes and routes are exposed via ingress. We get error swagger.json 404 not found. Below is the configuration

app.UseSwaggerUI(c =>
{
c.SwaggerEndpoint("/test/v1/swagger.json", "AnnexUI API V1");
c.RoutePrefix = "test";
});

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

1 participant