You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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";
});
The text was updated successfully, but these errors were encountered: