Closed Arik-Shapiro closed 1 year ago
Describe the bug A clear and concise description of what the bug is. When using the KubernetesServiceDiscoveryProvider some endpoints just do not appear in swagger doc.
{ "Routes": [ { "DownstreamPathTemplate": "/api/audit/{everything}", "UpstreamPathTemplate": "/api/audit/{everything}", "ServiceName": "audit-service", }, { "DownstreamPathTemplate": "/api/audit", "UpstreamPathTemplate": "/api/audit", "ServiceName": "audit-service", "SwaggerKey": "audit" } ], "GlobalConfiguration": { "DownstreamScheme": "http", "ServiceDiscoveryProvider": { "Namespace": "default", "Type": "KubernetesServiceDiscoveryProvider" }, }, "SwaggerEndPoints": [ { "Key": "audit", "Config": [ { "Name": "Audit API", "Version": "v1", "Service": { "Name": "audit-service", "Path": "/swagger/v1/swagger.json" } } ] } ] }
When using this one locally:
{ "Routes": [ { "DownstreamPathTemplate": "/api/audit/{everything}", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 5135 } ], "UpstreamPathTemplate": "/api/audit/{everything}", "SwaggerKey": "audit" }, { "DownstreamPathTemplate": "/api/audit", "DownstreamScheme": "http", "DownstreamHostAndPorts": [ { "Host": "localhost", "Port": 5135 } ], "UpstreamPathTemplate": "/api/audit", "SwaggerKey": "audit" } ], "SwaggerEndPoints": [ { "Key": "audit", "Config": [ { "Version": "v1", "Name": "Audit API", "Url": "http://localhost:5135/swagger/v1/swagger.json" } ] } ] }
Everything works as expected
Would appreciate some help, thanks!
Describe the bug A clear and concise description of what the bug is. When using the KubernetesServiceDiscoveryProvider some endpoints just do not appear in swagger doc.
When using this one locally:
Everything works as expected![image](https://user-images.githubusercontent.com/48131076/213508254-c20de12e-1c47-4af8-99dd-06b9a6684bee.png)
Would appreciate some help, thanks!