module Bearcat class Client < Footrest::Client module Folders extend ClientModule context_types %i[course user group] do |ct| prefix "/api/v1/#{ct}s/:#{ct}/folders/" do get :"list_#{ct}_folders" post :"create_#{ct}_folder" get :"get_#{ct}_folder", ":folder" get :"resolve_path_for_#{ct}", "by_path/:full_path" end end prefix "/api/v1/folders/:folder/" do put :update_folder delete :delete_folder end post :copy_folder, "/api/v1/folders/:destination_folder/copy_folder" post :copy_file_to_folder, "/api/v1/folders/:destination_folder/copy_file" end end end