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

feat: webapi versioning #38

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

Conversation

Flupster
Copy link

@Flupster Flupster commented Oct 8, 2024

An attempt at tackling webapi versioning.

qBittorrent v5 (webapi 2.11) had some API endpoint renaming:

/torrents/pause was renamed to /torrents/stop
/torrents/resume was renamed to /torrents/start

@zze0s zze0s added the enhancement New feature or request label Oct 8, 2024
methods.go Outdated
return nil
}

func (c *Client) GetApiVersion() (ApiVersion, error) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

This should probably be private (as well as the set). If we don't do "the right thing" it's a bug.

Copy link
Author

Choose a reason for hiding this comment

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

vscode complained that ctx was unused (it already was before making it private) unsure if the changes I made are correct

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants