Skip to content

Conversation

@ishields
Copy link

Simple PR to allow sending GET requests since some API calls require it. For example, this allows api calls like GET Collections to work:

@client.request_and_verify_response(:get, "/v1/api/collections")

Issue was written up here:
#117

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds support for GET HTTP requests to the BaseClient.request_class method, enabling API calls that require GET requests such as retrieving collections.

Key changes:

  • Added :get case to the request_class method to support GET requests

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +75 to +76
when :get
Net::HTTP::Get
Copy link

Copilot AI Dec 17, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The GET request support lacks test coverage. Consider adding a test case in spec/base_client_spec.rb similar to the existing tests for PUT requests, to verify that GET requests work correctly with both authentication methods (site_id/api_key and app_key).

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant