Sha256: 2ae641feed156dab9a86c450242b46a6db014fe4273b4824224f398df66fffc2

Contents?: true

Size: 1.19 KB

Versions: 22

Compression:

Stored size: 1.19 KB

Contents

module Badgrcat
  class Client < Footrest::Client
    module Methods
      extend Bearcat::Client::ClientModule

      prefix "/v2/issuers" do
        get :issuers
        post :create_issuer

        prefix "/:issuer" do
          get :issuer
          put :update_issuer
          delete :delete_issuer

          prefix "/assertions" do
            get :issuer_assertions
            post :create_issuer_assertion
          end

          prefix "/badgeclasses" do
            get :issuer_badgeclasses
            post :create_issuer_badgeclass
          end
        end
      end

      prefix "/v2/badgeclasses" do
        get :badgeclasses
        post :create_badgeclass

        prefix "/:badgeclass" do
          get :badgeclass
          put :update_badgeclass
          delete :delete_badgeclass

          prefix "/assertions" do
            get :badgeclass_assertions
            post :create_badgeclass_assertion
          end
        end
      end

      prefix "/v2/assertions" do
        post :revoke_assertions, "/revoke"

        prefix "/v2/assertions/:assertion" do
          get :assertion
          put :update_assertion
          delete :delete_assertion
        end
      end
    end
  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
bearcat-1.5.29 lib/badgrcat/client/methods.rb
bearcat-1.5.28 lib/badgrcat/client/methods.rb
bearcat-1.5.28.beta1 lib/badgrcat/client/methods.rb
bearcat-1.5.26 lib/badgrcat/client/methods.rb
bearcat-1.5.24 lib/badgrcat/client/methods.rb
bearcat-1.5.23 lib/badgrcat/client/methods.rb
bearcat-1.5.20 lib/badgrcat/client/methods.rb
bearcat-1.5.19 lib/badgrcat/client/methods.rb
bearcat-1.5.17 lib/badgrcat/client/methods.rb
bearcat-1.5.16 lib/badgrcat/client/methods.rb
bearcat-1.5.15 lib/badgrcat/client/methods.rb
bearcat-1.5.14 lib/badgrcat/client/methods.rb
bearcat-1.5.13 lib/badgrcat/client/methods.rb
bearcat-1.5.12 lib/badgrcat/client/methods.rb
bearcat-1.5.11 lib/badgrcat/client/methods.rb
bearcat-1.5.10 lib/badgrcat/client/methods.rb
bearcat-1.5.9 lib/badgrcat/client/methods.rb
bearcat-1.5.8 lib/badgrcat/client/methods.rb
bearcat-1.5.7 lib/badgrcat/client/methods.rb
bearcat-1.5.6 lib/badgrcat/client/methods.rb