Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for the new Query Volume API endpoint #164

Merged
merged 8 commits into from
Feb 6, 2024

Conversation

ggalmazor
Copy link
Contributor

Fixes #163

In this PR:

  • Set up a new service for DNS Analytics and provide an entry point to query it

@ggalmazor ggalmazor requested a review from a team January 24, 2024 21:11
@ggalmazor ggalmazor self-assigned this Jan 24, 2024
dnsimple/dns_analytics.go Outdated Show resolved Hide resolved
// Query gets DNS Analytics data for an account
//
// See https://developer.dnsimple.com/v2/dns_analytics/#query
func (s *DnsAnalyticsService) Query(ctx context.Context, accountID string, options *ListOptions) (*DnsAnalyticsResponse, error) {
Copy link
Contributor

Choose a reason for hiding this comment

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

Generally, we try to match the endpoint call method with the operation ID in the OpenAPI spec, I could not find an OpenAPI spec entry for this endpoint so I could not see how it compares. In case they do not match we should maybe include an example in the readme.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

👍 We will be updating the OpenAPI spec in the following days. Let's come back to this then.

Copy link
Contributor

@DXTimer DXTimer left a comment

Choose a reason for hiding this comment

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

LGTM. I've left some comments for your consideration.

@ggalmazor ggalmazor force-pushed the change/support_query_volume_endpoint branch from 566c652 to 4866d73 Compare January 26, 2024 15:59
- Response payloads will encode it as a string
- We will require an int64 as query parameter for convenience
@ggalmazor ggalmazor merged commit c8459f4 into main Feb 6, 2024
4 checks passed
@ggalmazor ggalmazor deleted the change/support_query_volume_endpoint branch February 6, 2024 08:23
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.

Add support for the new Query Volume API endpoint
2 participants