Skip to content

Commit

Permalink
add LinkedCollectionsRequest
Browse files Browse the repository at this point in the history
  • Loading branch information
bourda_c committed Apr 8, 2024
1 parent 7baf026 commit de3f985
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# frozen_string_literal: true

module KazeClient

module Collection

module Item

class LinkedCollectionsRequest < Utils::FinalRequest

include Utils::AuthentifiedRequest

# @author [email protected]
# Fetch all items linked to a given item
# @see KazeClient::Request
# @see KazeClient::Utils::FinalRequest
# @see KazeClient::Utils::AuthentifiedRequest
# @since 0.4.0
def initialize(collection_id, collection_item_id)
super(:get, "api/collections/#{collection_id}/items/#{collection_item_id}/linked_collections")
end

end

end

end

end
1 change: 1 addition & 0 deletions lib/kaze_client/requests.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
require_relative 'request/requests/collections/items/items_request'
require_relative 'request/requests/collections/items/create_link_request'
require_relative 'request/requests/collections/items/create_collection_item_request'
require_relative 'request/requests/collections/items/linked_collections_request'

# => Tags
require_relative 'request/requests/tags/tag_request'
Expand Down

0 comments on commit de3f985

Please sign in to comment.