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

our server does not load spec file #139

Closed
andrewjtech123 opened this issue Nov 18, 2016 · 6 comments
Closed

our server does not load spec file #139

andrewjtech123 opened this issue Nov 18, 2016 · 6 comments

Comments

@andrewjtech123
Copy link

Hello!

I am trying to view our redoc spec with the index.html hosted on our site but it is not rendering. seems like it can't pull in the swagger.yml file. any ideas?

<title>Draft Orders API Specification</title>
<!--
ReDoc uses font options from the parent element
So override default browser styles
-->
<style>
  body {
    margin: 0;
    padding: 0;
  }
</style>
<script src="//rebilly.github.io/ReDoc/releases/latest/redoc.min.js"> </script>

draft orders api specification 2016-11-18 15-53-37

@andrewjtech123
Copy link
Author

<!DOCTYPE html>
<html>
  <head>
    <title>Draft Orders API Specification</title>
    <!-- needed for adaptive design -->
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!--
    ReDoc uses font options from the parent element
    So override default browser styles
    -->
    <style>
      body {
        margin: 0;
        padding: 0;
      }
    </style>
  </head>
  <body>
    <redoc spec-url="https://andrewjtech123.github.io/imagehost/swagger.yml">
    </redoc>
    <script src="//rebilly.github.io/ReDoc/releases/latest/redoc.min.js"> </script>
  </body>
</html>

@RomanHotsiy
Copy link
Member

@andrewjtech123 What is printed to browser console?

@andrewjtech123
Copy link
Author

Hi. I think we fixed the issue. Our local jekyll server runs without https. When I run it locally I have to append https to the url, in order to view the Redoc output correctly.

One other related question - is it possible to tun off the swagger warnings from outputting to redoc?

@RomanHotsiy
Copy link
Member

Yes - use suppress-warnings: docs

Example:

<redoc spec-url="..." suppress-warnings></redoc>

@RomanHotsiy
Copy link
Member

@andrewjtech123 can this issue be closed?

@RomanHotsiy
Copy link
Member

@andrewjtech123 closing this issue for now but feel free to reopen in case it is not solved

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

3 participants