I try to create 2 docs for my api. I have 2 namespaces in routes and I need to create 2 docs for my first namespace and second namespace. In request test they are divided on 2 folders. How can I automatically generate this 2 docs and what i need to write in routes file?
In routes I wrote 2 mounts for rswag engine, but I don't not what I need to do with my swagger.yml file
Some time later I managed it something like this:
swagger_helper.rb:
} }
config/initialaziers/rswag_ui.rb
And then I use rake rswag it generates for me 2 docs.