lib/fiona7/routers/rest_api.rb in infopark_fiona7-1.6.1.1.0 vs lib/fiona7/routers/rest_api.rb in infopark_fiona7-1.6.1.1.1

- old
+ new

@@ -15,11 +15,11 @@ alias_method :original_get, :get def get(resource_path, payload = nil, options = nil) @number_of_requests += 1 if resource_path == @count_requests - + action = :get ActiveSupport::Notifications.instrumenter.instrument( "backend_request.scrivito", { :path => resource_path, @@ -55,15 +55,19 @@ _, _, workspace_id = *resource_path.split("/") Fiona7::Controllers::RestAPI::WorkspaceController.new.fetch(workspace_id) when /\A\/?workspaces\/[a-zA-Z0-9_-]+\/changes\Z/ _, _, workspace_id,_ = *resource_path.split("/") Fiona7::Controllers::RestAPI::WorkspaceController.new.changes(workspace_id) - when /\A\/?workspaces\/[a-zA-Z0-9_-]+\/objs\/mget+\Z/ + when /\A\/?workspaces\/[a-zA-Z0-9_-]+\/objs\/mget\Z/ _, _, workspace_id, _, _ = *resource_path.split("/") Fiona7::Controllers::RestAPI::ObjController.new.fetch_multiple2(workspace_id, payload) + when /\A\/?workspaces\/[a-zA-Z0-9_-]+\/base_objs\/mget\Z/ + Fiona7::Controllers::RestAPI::ObjController.new.fetch_multiple2('published', payload) when /\A\/?workspaces\/[a-zA-Z0-9_-]+\/objs\/[a-zA-Z0-9_-]+\Z/ _, _, workspace_id, _, obj_id = *resource_path.split("/") Fiona7::Controllers::RestAPI::ObjController.new.fetch_by_id(workspace_id, obj_id) + when /\A\/?blobs\/resolve_urls\Z/ + Fiona7::Controllers::RestAPI::BlobController.new.resolve_urls(payload) when /\A\/?blobs\/[a-zA-Z0-9_-]+\Z/ _, _, blob_id = *resource_path.split("/") Fiona7::Controllers::RestAPI::BlobController.new.fetch(blob_id) when /\A\/?blobs\/[a-zA-Z0-9_-]+\/no_cache\Z/ _, _, blob_id = *resource_path.split("/")