module Bearcat class Client < Footrest::Client module Sections def course_sections(course, params={}) get("/api/v1/courses/#{course.to_s}/sections", params) end def section(section) get("/api/v1/sections/#{section.to_s}") end def create_section(course, params) post("/api/v1/courses/#{course.to_s}/sections", params) end def update_section(section, params) put("/api/v1/sections/#{section.to_s}", params) end def delete_section(section) delete("/api/v1/sections/#{section.to_s}") end def crosslist_section(section_id, new_course_id) post("/api/v1/sections/#{section_id.to_s}/crosslist/#{new_course_id.to_s}") end def decrosslist_section(section_id) delete("/api/v1/sections/#{section_id.to_s}/crosslist") end end end end