<p>I have created a simple flask api with swagger integration using flask_restplus library. It is working fine in localhost. But when I use it in gcp kubernetes
ingress, it is giving results for endpoints but not able to show the documentation or swagger ui. Here are the browser console errors <a href="https://i.stack.imgur.com/DPBeu.jpg" rel="nofollow noreferrer">browser console errors</a></p>
<p>Here is <code>ingress.yml</code> file</p>
<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-html lang-html prettyprint-override"><code>apiVersion: extensions/v1beta1
kind: Ingress
metadata:
  name: ingress-restplustest
  annotations:
    
  annotations:
    kubernetes.io/ingress.class: nginx
    nginx.ingress.kubernetes.io/ssl-redirect: "false"
    kubernetes.io/ingress.global-static-ip-name: "web-static-ip"
spec:
  rules:
  - http:
      paths:
      - path: /rt
        backend:
          serviceName: restplustest
          servicePort: 5000</code></pre>
</div>
</div>

In local system localhost:5000/rt shows the swagger-ui</p>

<p>Your endpoint return a script that references other scripts located on <code>/swaggerui/*</code> but that path is not defined in your Ingress.</p>

<p>It may be solved if you add that path to your service as well</p>

<pre><code>  - path: /swaggerui/*
    backend:
      serviceName: restplustest
      servicePort: 5000
</code></pre>
