Giter Club home page Giter Club logo

Comments (4)

richhollis avatar richhollis commented on September 16, 2024

How are you rendering the Swagger UI? As a controller view? As static content from public?

from swagger-docs.

richhollis avatar richhollis commented on September 16, 2024

I don't believe this is a swagger-docs issue, so closing for now, but please reopen if you find otherwise. Thanks.

from swagger-docs.

bennettl avatar bennettl commented on September 16, 2024

As a static content from public I believe. Cant' the swagger gem be updated to sign in with a fake user in the back end through the config/initialization file? Anyone with a membership site will have their controllers protected by user authentication.

from swagger-docs.

richhollis avatar richhollis commented on September 16, 2024

Hey

You don't need to sign with a fake user to generate the swagger specification. The authentication stuff (I think you're using Devise) has no bearing over the generation.

I'd definitely recommend reading through the main swagger-docs README file.

I created a simple boilerplate app today which uses Doorkeeper which illustrates a very simple app with one API and swagger-docs. I think you might find it useful to take a look at that and how it works: https://github.com/richhollis/doorkeeper-swagger. After you run rake swagger:docs the files get generated into the public folder.

Cheers

from swagger-docs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.