Sha256: 2480bd1d7f294a84bad9e27da457f65589682c70f4a6c17ec44bb48a8e76abb5

Contents?: true

Size: 1.54 KB

Versions: 12

Compression:

Stored size: 1.54 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' }

        # List a blueprint's migrations
        # https://canvas.instructure.com/doc/api/blueprint_courses.html#method.master_courses/master_templates.migrations_index
        get :blueprint_template_migrations, "blueprint_templates/:template_id/migrations", defaults: { template_id: 'default' }
      end
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
bearcat-1.5.37 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.36 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.35 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.34 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.33 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.32 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.31 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.30 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.29 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.28 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.28.beta1 lib/bearcat/client/blueprint_courses.rb
bearcat-1.5.26 lib/bearcat/client/blueprint_courses.rb