Swagger Question
 

Swagger Question

5 posts, 0 answered
  1. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    31 Oct
    Link to this post
    Hello,

    We are having an issue with swagger. 

    When we request the json we do see valid json. 

    http://127.0.0.1:8940/OspreyHostBackend/web/SwaggerEntities/json

    However, when we request html the page is just blank.  

    http://127.0.0.1:8940/OspreyHostBackend/web/SwaggerEntities/html

    Any ideas as to what is missing?
  2. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    31 Oct in reply to Roger Blanchard
    Link to this post
    How is /OspreyHostBackend/we

    Resolved?

    - name of an oeabl.war web app
    - Proxy config
    - URL rewrite
  3. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    31 Oct in reply to Mike Fechner
    Link to this post
    Well, after a few hours we realized that we had Swagger instead of swagger for the folder name!!
  4. Mike Fechner
    Mike Fechner avatar
    342 posts
    Registered:
    14 Sep 2016
    31 Oct in reply to Roger Blanchard
    Link to this post
    Bummer!

    Next time that happens - if you haven't done so - please check the HTTP requests issued by the browser in the Chrome developer tools (or whatever browser you are using).

    I assume that would have showed you a series of 404's when the browser was trying to load the JavaScript and CSS files that are part of the Swagger UI. That might have given you a better pointer. 
  5. Roger Blanchard
    Roger Blanchard avatar
    413 posts
    Registered:
    29 Jun 2018
    31 Oct in reply to Mike Fechner
    Link to this post
    Thanks Mike!!
5 posts, 0 answered