Actions
Refactor #22994
closedThe namespace for apidoc doesn't seem to be right
Difficulty:
Triaged:
Description
Currently the routes in the apidoc defined (listing all ansible roles for example) as
api :GET, '/ansible/ansible_roles'
which produces in the apidoc:
/ansible/api/ansible_roles
But actual route is
ansible/api/v2/ansible_roles
And this causes some problems when using hammer (hammer uses different route). So, I suggest a small refactor for ansible_roles controller, see PR:
Updated by The Foreman Bot about 6 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_ansible/pull/151 added
Updated by Oleh Fedorenko about 6 years ago
Just noticed:
which produces in the apidoc:
[...]
But actual route is
[...]
actually refers the same thing. Just to clarify:
before PR it produced
api/ansible/ansible_roles
which isn't correct since ansible plugin has its own namespace, so it looks like:
ansible/api/ansible_roles
Updated by Daniel Lobato Garcia about 6 years ago
- Status changed from Ready For Testing to Closed
Actions