Actions
Bug #9653
openDefault /apidoc pages don't initialize the locale properly for plugin docs
Status:
New
Priority:
Normal
Assignee:
-
Category:
API
Target version:
-
Description
I'm testing the apipie extensions that allow a plugin to add it's docs to the /apidoc pages. Currently if I install foreman-bootdisk (v5.0, see https://github.com/theforeman/foreman-packaging/pull/568) then I can go to /apidoc/v2.en_GB.html and I correctly see:
Disks
Resource Description
GET /bootdisk/api Boot disks
GET /bootdisk/api/generic Download generic image
GET /bootdisk/api/hosts/:host_id Download host image
If, however, I vist the default page (/apidoc/v2.html) which should also use English, I instead see:
Disks
Resource Description
GET /bootdisk/api Startdiskar
GET /bootdisk/api/generic Ladda ner generisk avbildning
GET /bootdisk/api/hosts/:host_id Ladda ner värd avbildning
This is possibly due to the locale not being initialized correctly for the default pages.
No data to display
Actions