Actions
Bug #35700
closedBootdisk api routes are not mapped correctly
Status:
Closed
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Description
# rails routes -----B<-----SNIP-----B<----- Routes for ForemanBootdisk::Engine: generic_disks GET /disks/generic(.:format) foreman_bootdisk/disks#generic help_disks GET /disks/help(.:format) foreman_bootdisk/disks#help GET /disks/hosts/:id(.:format) foreman_bootdisk/disks#host {:id=>/[^\/]+/} GET /disks/full_hosts/:id(.:format) foreman_bootdisk/disks#full_host {:id=>/[^\/]+/} GET /disks/subnet/:id(.:format) foreman_bootdisk/subnet_disks#subnet {:id=>/[^\/]+/} GET /disks/bootdisk_options/:id(.:format) foreman_bootdisk/disks#bootdisk_options {:id=>/[^\/]+/} api_generic GET /api(/:apiv)/generic(.:format) foreman_bootdisk/api/v2/disks#generic {:format=>"json", :apiv=>/v1|v2/} api GET /api(/:apiv)/hosts/:id(.:format) foreman_bootdisk/api/v2/disks#host {:format=>"json", :apiv=>/v1|v2/, :id=>/[^\/]+/} GET /api(/:apiv)/subnets/:id(.:format) foreman_bootdisk/api/v2/subnet_disks#subnet {:format=>"json", :apiv=>/v1|v2/, :id=>/[^\/]+/}
The host bootdisk api route links to /api/hosts/$id, which just hits the hosts controller#index, same thing for subnets. Generic could probably work like this
Updated by Adam Ruzicka over 2 years ago
Erm of course I meant hosts controller#show
Updated by The Foreman Bot over 2 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman_bootdisk/pull/132 added
Updated by Leos Stejskal over 2 years ago
- Status changed from Ready For Testing to Closed
Applied in changeset foreman_bootdisk|de50e6c8851f8c5a83d3b4f82f9ce62d3d15e8bc.
Actions