I am using apipie gem for api documentation. Under my api folder, there is one version**(api/v1)
When I access http://localhost:3000/apipie it shows me the documentation but when clicking on api document url ie POST /api/chats
It redirects to http://localhost:3000/apipie/public/chats/create.en.html
It displays error
Oops!! Method create.en not found for resource chats.
But when I remove .en form url manually it displays right api documentation.
ie http://localhost:3000/apipie/public/chats/create.html.
I am confusing why api doc redirect to .en.html and how I avoid adding .en in api doc url.
This is an bug which is already reported here
You can fix the problem by adding following line into apipie.rb file
config.translate = false
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With