Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Oops!! Method create.en not found for resource chats

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.

like image 788
Pankaj Avatar asked Jan 31 '26 05:01

Pankaj


1 Answers

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
like image 64
Ganesh Avatar answered Feb 03 '26 00:02

Ganesh