compostbrain PRO said almost 5 years ago on Rails API Documentation :
When I run `bundle exec rake docs:generate` it deletes everything else in my /public folder. Is there a way to turn off this behavior?

Simon Kiteley PRO said over 4 years ago on Rails API Documentation :
Not sure if its the correct solution but add a subdirectory 'docs' and use: ``` RspecApiDocumentation.configure do |config| config.docs_dir = Rails.root.join('public/docs') ... end ``` and ``` SwaggerUiEngine.configure do |config| config.swagger_url = '/docs/open_api.json' ... end ```

compostbrain PRO said over 4 years ago on Rails API Documentation :
Thanks!!

compostbrain PRO said over 4 years ago on Rails API Documentation :
This works great in my dev env but when I tried to deploy to aws elasticbeanstalk I am getting an error : "Can't read swagger JSON from http//:...us-east-1.elasticbeanstalk.com/docs/open_api.json". Any idea how to solve this problem?

David Kimura PRO said over 4 years ago on Rails API Documentation :
Are you able to verify that the doc is generated and at that location? You should be able to do an `eb ssh` within the root of your application to SSH into the environment. From there, look under `/var/app/current/public/docs` to see if it is there. If it is, check the URL to see if you're able to access the file. You may also need to edit your `config/environments/production.rb` file and set this entry `config.public_file_server.enabled = true`

compostbrain PRO said over 4 years ago on Rails API Documentation :
Cool, i thought the config you mention might be the issue but the comments said nginx should take care of it so I wasn't sure. I will take a look at your suggestions.

Dastan Abeuov said about 3 years ago on Rails API Documentation :
This perfect! But i can not use from my path - api/v1/my_model_controller
Where i can add path&
Thanx

web.dev.adk said over 1 year ago on Rails API Documentation :
How can i authenticated? I am used Doorkeeper + Devise.

Login to Comment