Generate the Ocelot downstream paths for all endpoints using Swagger docs?

Viewed 406

I don't know if what I'm asking is possible. But I have several APIs with about 100 endpoints in total. We are configuring the APIs to use Ocelot Gateway and I was wondering if there's an efficient way to generate the ocelot.json downstream settings. Since we already have the swagger docs generated, is there a library/package which we can use to generate the downstream URLs using the swagger docs?

1 Answers

MMLib SwaggerForOcelot extension provides a better way to literally document your downstream endpoints. They use a key to identify the APIs within the ocelot files. You can also refer to this article.

Related