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

Implementing Ocelot Swagger Configuration in Production Enviroment #306

Open
devausha opened this issue Sep 26, 2024 · 0 comments
Open

Implementing Ocelot Swagger Configuration in Production Enviroment #306

devausha opened this issue Sep 26, 2024 · 0 comments

Comments

@devausha
Copy link

I am currently working on implementing Swagger with Ocelot for a production environment using MMLib, but I am facing some challenges that I couldn't resolve. The setup works perfectly in the development environment, but when I tried deploying the same to production, the Swagger files are not loading as expected. Below are some details about my approach:

I have created separate folders for both development and production configurations, including SwaggerEndPoints.json files.
The Swagger JSON URLs are accessible externally in production, but the Swagger UI does not load the files correctly.
In development, the Swagger setup works flawlessly, with all routes and endpoints being properly configured.
I have already tried searching for a solution online, but I couldn't find a working example for production with Ocelot and Swagger integration. Could you please guide me with the appropriate steps or share a sample code for implementing Swagger with Ocelot in a production environment? Here is my code for SwaggerEndpoints file.

{
"SwaggerEndPoints": [
{
"Key": "Product",
"TransformByOcelotConfig": true,
"Config": [
{
"Name": "Campaigns",
"Version": "v1",
"Url": "https://someurl.com:5006/swagger/Product/swagger.json"

    }
  ]

},

}

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