Sha256: e8b1d8ffab77bdc09ad75cefde68df30ef7f14c1cd3d07aec30d0ffdbb11b2e1

Contents?: true

Size: 1.67 KB

Versions: 2

Compression:

Stored size: 1.67 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 "/v2/assertions/:assertion" do
          get :assertion
          put :update_assertion
          delete :delete_assertion
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
bearcat-1.5.31 lib/badgrcat/client/methods.rb
bearcat-1.5.30 lib/badgrcat/client/methods.rb