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 /v3/info endpoint client code #3445

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Conversation

Samze
Copy link
Contributor

@Samze Samze commented Mar 7, 2025

Also rename old incorrectly named Info code to root since it hits CC "/".

Also rename old info code to root since it hits "/".
@Samze Samze changed the title Add /v3/info endpoint Add /v3/info endpoint client code Mar 7, 2025
}

// GetInfo returns endpoint and API information from /v3.
// GetRoot returns the /v3/info response
func (client *Client) GetInfo() (Info, Warnings, error) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

note This repurposing of GetInfo to now actually return info (rather than root) may break clients that are go importing the project. However, I don't think we ever guarantee any API interface compatibility for programmability so I would prefer to make this change for cleanliness and have clients update their code if needed.

Copy link
Member

@gururajsh gururajsh left a comment

Choose a reason for hiding this comment

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

LGTM

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.

2 participants