Project

General

Profile

« Previous | Next » 

Revision 9643a2cb

Added by Ori Rabin over 7 years ago

Fixes #17653 - Allow all parameters api to unhide values

View differences:

app/controllers/api/v2/common_parameters_controller.rb
before_action :find_resource, :only => %w{show update destroy}
api :GET, "/common_parameters/", N_("List all global parameters.")
param :show_hidden, :bool, :desc => N_("Should unhide hidden values for display")
param_group :search_and_pagination, ::Api::V2::BaseController
def index
......
end
api :GET, "/common_parameters/:id/", N_("Show a global parameter")
param :show_hidden, :bool, :desc => N_("Should unhide hidden values for display")
param :id, :identifier, :required => true
def show

Also available in: Unified diff