Skip to content

Programmatic attempt to add Swagger Endpoints #153

Answered by Burgyn
kurtisane asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @kurtisane,

I am not currently at the PC. At first glance (from mobile) it's look that you have incorrect order in Configuration section.
When registering middleware depends on the order. Ocelot middlewate should be the last.

app.UseSwaggerForOcelotUI(opt =>
{
      opt.PathToSwaggerGenerator = "/swagger/docs";
 });
app.UseOcelot().Wait()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by kurtisane
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants
Converted from issue

This discussion was converted from issue #152 on February 03, 2021 18:40.