module Bearcat class Client < Footrest::Client module Accounts def list_accounts(params = {}) get("/api/v1/accounts", params) end def account(account) get("/api/v1/accounts/#{account}") end def terms(account, params = {}) get("/api/v1/accounts/#{account}/terms", params) end def account_admins(account, params = {}) get("/api/v1/accounts/#{account}/admins", params) end def create_account_admin(account, params = {}) post("/api/v1/accounts/#{account}/admins", params) end def delete_account_admin(account, user, params = {}) delete("/api/v1/accounts/#{account}/admins/#{user}", params) end def list_roles(account, params = {}) get("/api/v1/accounts/#{account}/roles") end def account_roles(account, params = {}) get("/api/v1/accounts/#{account}/roles", params) end def account_courses(account, params = {}) get("/api/v1/accounts/#{account}/courses", params) end def account_grading_standards(account, params={}) get("/api/v1/accounts/#{account}/grading_standards", params) end def account_sis_imports(account, params={}) get("/api/v1/accounts/#{account}/sis_imports", params) end def enrollment(account, enrollment, params={}) get("/api/v1/accounts/#{account.to_s}/enrollments/#{enrollment.to_s}", params) end end end end