module Mrkt::CrudAssetStaticLists
Public Instance Methods
create_static_list(name, folder, description: nil)
click to toggle source
# File lib/mrkt/concerns/crud_asset_static_lists.rb, line 3 def create_static_list(name, folder, description: nil) post('/rest/asset/v1/staticLists.json') do |req| params = { name: name, folder: JSON.generate(folder) } optional = { description: description } req.body = merge_params(params, optional) end end
delete_static_list(id)
click to toggle source
# File lib/mrkt/concerns/crud_asset_static_lists.rb, line 26 def delete_static_list(id) post("/rest/asset/v1/staticList/#{id}/delete.json") end
get_static_list_by_id(id)
click to toggle source
# File lib/mrkt/concerns/crud_asset_static_lists.rb, line 18 def get_static_list_by_id(id) get("/rest/asset/v1/staticList/#{id}.json") end
get_static_list_by_name(name)
click to toggle source
# File lib/mrkt/concerns/crud_asset_static_lists.rb, line 22 def get_static_list_by_name(name) get('/rest/asset/v1/staticList/byName.json', name: name) end