Project

General

Profile

Actions

Bug #35700

closed

Bootdisk api routes are not mapped correctly

Added by Adam Ruzicka over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

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

Actions #1

Updated by Adam Ruzicka over 2 years ago

Erm of course I meant hosts controller#show

Actions #2

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
Actions #3

Updated by Leos Stejskal over 2 years ago

  • Status changed from Ready For Testing to Closed
Actions

Also available in: Atom PDF