module Bearcat class Client < Footrest::Client module ExternalTools extend ClientModule context_types %i[course account] do |ct| prefix "/api/v1/#{ct}s/:#{ct}/external_tools/" do get :"#{ct}_external_tools" post :"create_#{ct}_external_tool" get :"#{ct}_external_tool", ":tool" put :"edit_#{ct}_external_tool", ":tool" delete :"delete_#{ct}_external_tool", ":tool" end end end end end