Project

General

Profile

« Previous | Next » 

Revision 6b4b489f

Added by Ori Rabin over 8 years ago

fixes #10832 - separating lookup keys into puppet and variable

View differences:

app/controllers/api/v1/lookup_keys_controller.rb
param :per_page, String, :desc => "number of entries per request"
def index
@lookup_keys = LookupKey.
authorized(:view_external_variables).
search_for(*search_options).paginate(paginate_options)
@lookup_keys = PuppetclassLookupKey.authorized(:view_external_variables).
search_for(*search_options).paginate(paginate_options).to_a +
VariableLookupKey.authorized(:view_external_variables).
search_for(*search_options).paginate(paginate_options).to_a
end
api :GET, "/lookup_keys/:id/", "Show a lookup key."

Also available in: Unified diff