Project

General

Profile

« Previous | Next » 

Revision ebecada6

Added by Tomer Brisker about 5 years ago

Fixes #26508 - Remove taxonomy setting checks from api

View differences:

app/controllers/api/v2/base_controller.rb
resource_description do
api_version "v2"
app_info N_("Foreman API v2 is currently the default API version.")
param :location_id, Integer, :required => false, :desc => N_("Scope by locations") if SETTINGS[:locations_enabled]
param :organization_id, Integer, :required => false, :desc => N_("Scope by organizations") if SETTINGS[:organizations_enabled]
param :location_id, Integer, :required => false, :desc => N_("Scope by locations")
param :organization_id, Integer, :required => false, :desc => N_("Scope by organizations")
end
def_param_group :pagination do
......
end
def_param_group :taxonomies do
param :location_ids, Array, :required => false, :desc => N_("REPLACE locations with given ids") if SETTINGS[:locations_enabled]
param :organization_ids, Array, :required => false, :desc => N_("REPLACE organizations with given ids.") if SETTINGS[:organizations_enabled]
param :location_ids, Array, :required => false, :desc => N_("REPLACE locations with given ids")
param :organization_ids, Array, :required => false, :desc => N_("REPLACE organizations with given ids.")
end
def_param_group :taxonomy_scope do
param :location_id, Integer, :required => false, :desc => N_("Scope by locations") if SETTINGS[:locations_enabled]
param :organization_id, Integer, :required => false, :desc => N_("Scope by organizations") if SETTINGS[:organizations_enabled]
param :location_id, Integer, :required => false, :desc => N_("Scope by locations")
param :organization_id, Integer, :required => false, :desc => N_("Scope by organizations")
end
def_param_group :template_import_options do

Also available in: Unified diff