title: How to create route in OpenShift?
body: <p>I have gone through this <a href="https://access.redhat.com/documentation/en-us/openshift_container_platform/3.11/html/developer_guide/dev-guide-routes" rel="nofollow noreferrer">documentation</a> and trying to create a route.</p>
  <p>Here is the YAML Definition-</p>
  <pre><code>- apiVersion: v1
      kind: Route
      metadata:
        name: ${APP_NAME}-${ENVIRONMENT_NAME}-${BRANCH}
        namespace: ${NAMESPACE}
      spec:
        host: ${APP_NAME}-${ENVIRONMENT_NAME}.abc.com
        path: /${ENV_ROUTE}
        port:
          targetPort: 8080-tcp
        tls:
          termination: edge
        to:
          kind: Service
          name: ${APP_NAME}-${ENVIRONMENT_NAME}-${BRANCH}
          weight: 100
        wildcardPolicy: None
      status:
        ingress:
          - conditions:
            host: ${APP_NAME}-${ENVIRONMENT_NAME}.abc.com
            routerName: router
            wildcardPolicy: None
  </code></pre>
  <p>This works: <strong>myservice-dev-abc.com</strong></p>
  <p>trying to create a route for <strong>myservice-dev-abc.com/myapp/</strong></p>
  <p>After deployment, the application not accessible. Get the below error.</p>
  <blockquote>
  <p><strong>SwaggerUIBundle is not defined</strong></p>
  </blockquote>
  <p>Maybe I am unable to find something mentioned in the document.</p>