Sha256: 54c5f753637ba6634961bc65055dab64cacb4990e6a0627a51a3de392f808e34

Contents?: true

Size: 1.25 KB

Versions: 25

Compression:

Stored size: 1.25 KB

Contents

module Bearcat
  class Client < Footrest::Client
    module BlueprintCourses
      extend ClientModule

      prefix "/api/v1/courses/:course/" do
        # Get blueprint information
        # https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.show
        get :blueprint_template, "blueprint_templates/:template_id", defaults: { template_id: 'default' }

        # List blueprint subscriptions
        # https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.subscriptions_index
        get :blueprint_subscriptions, "blueprint_subscriptions"

        # Update associated courses
        # https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.update_associations
        put :blueprint_update_associations, "blueprint_templates/:template_id/update_associations", defaults: { template_id: 'default' }

        # Begin a migration to push to associated courses
        # https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.queue_migration
        post :start_blueprint_migration, "blueprint_templates/:template_id/migrations", defaults: { template_id: 'default' }
      end
    end
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
bearcat-1.5.24 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.23 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.20 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.19 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.17 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.16 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.15 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.14 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.13 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.12 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.11 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.10 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.9 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.8 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.7 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.6 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.5 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.4 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.3 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.2 lib/bearcat/client/blueprint_courses.rb