Revision 453dc693
Added by Joseph Magen over 9 years ago
app/controllers/api/v2/parameters_controller.rb | ||
---|---|---|
api :GET, "/locations/:location_id/parameters", N_("List all parameters for a location")
|
||
api :GET, "/organizations/:organization_id/parameters", N_("List all parameters for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
||
... | ... | |
api :GET, "/locations/:location_id/parameters/:id", N_("Show a nested parameter for a location")
|
||
api :GET, "/organizations/:organization_id/parameters/:id", N_("Show a nested parameter for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
||
... | ... | |
api :POST, "/locations/:location_id/parameters/", N_("Create a nested parameter for a location")
|
||
api :POST, "/organizations/:organization_id/parameters/", N_("Create a nested parameter for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
||
... | ... | |
api :PUT, "/locations/:location_id/parameters/:id", N_("Update a nested parameter for a location")
|
||
api :PUT, "/organizations/:organization_id/parameters/:id", N_("Update a nested parameter for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
||
... | ... | |
api :DELETE, "/locations/:location_id/parameters/:id", N_("Delete a nested parameter for a location")
|
||
api :DELETE, "/organizations/:organization_id/parameters/:id", N_("Delete a nested parameter for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
||
... | ... | |
api :DELETE, "/locations/:location_id/parameters", N_("Delete all nested parameter for a location")
|
||
api :DELETE, "/organizations/:organization_id/parameters", N_("Delete all nested parameter for an organization")
|
||
param :host_id, String, :desc => N_("ID of host")
|
||
param :hostgroup_id, String, :desc => N_("ID of hostgroup")
|
||
param :hostgroup_id, String, :desc => N_("ID of host group")
|
||
param :domain_id, String, :desc => N_("ID of domain")
|
||
param :operatingsystem_id, String, :desc => N_("ID of operating system")
|
||
param :location_id, String, :desc => N_("ID of location")
|
Also available in: Unified diff
fixes #3492 - API v2 nested routes for each controller