Sha256: fa6363ac0b19448a6ad6b83301a4248e389fbcc368b02f3ce731561178e806cf

Contents?: true

Size: 717 Bytes

Versions: 2

Compression:

Stored size: 717 Bytes

Contents

module Freefeed
  class Comment < ResourceKitling::Resource
    actions do
      action :create do
        verb :post
        version :v1
        path '/comments'
      end
      action :update do
        verb :put
        version :v1
        path '/comments/:id'
      end
      action :destroy do
        verb :delete
        version :v1
        path '/comments/:id'
      end
      action :like do
        verb :post
        version :v2
        path '/comments/:id/like'
      end
      action :unlike do
        verb :post
        version :v2
        path '/comments/:id/unlike'
      end
      action :likes do
        verb :get
        version :v2
        path '/comments/:id/likes'
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
freefeed-client-1.1.0 lib/freefeed/resources/comment.rb
freefeed-client-0.1.0 lib/freefeed/resources/comment.rb