Sha256: 7c6eece8e0fd3910d6293c9e904d991f98f28ce0a68c0e3dbcf035f6a9ef5383

Contents?: true

Size: 1.65 KB

Versions: 4

Compression:

Stored size: 1.65 KB

Contents

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

      prefix "v1" do
        prefix "/orgs" do
          prefix "/:organization" do
            prefix "/pathways" do
              get :pathways
            end
          end
        end

        prefix "/pathways" do
          prefix "/:pathway" do
            get :pathway

            prefix "/progress" do
              prefix "/recipient?recipientId=:recepientId" do
                get :user_pathway_progress
              end
            end
          end
        end
      end

      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 "/:assertion" do
          get :assertion
          put :update_assertion
          delete :delete_assertion
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
bearcat-1.5.35 lib/badgrcat/client/methods.rb
bearcat-1.5.34 lib/badgrcat/client/methods.rb
bearcat-1.5.33 lib/badgrcat/client/methods.rb
bearcat-1.5.32 lib/badgrcat/client/methods.rb