-
Notifications
You must be signed in to change notification settings - Fork 24
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
Support List options #25
Conversation
I think we hit the limit of our current implementation. We currently don't handle nested structures, whereas go-querystring provides the "same" feature but it also does. It was a nice game to create such custom `url:` handler, but it is worthless to make further changes as I end up reimplementing pretty much the same amount of code.
Ready for review. |
// Here's a few example: | ||
|
||
// get the list of domains filtered by name and sorted by expiration | ||
client.Domains.ListDomains(whoami.Account.ID, &DomainListOptions{NameLike: "com", Sort: "expiration:DESC"}) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weppos This should be desc
instead. ..or we can add case insensitive support on the server side.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, it should be case insensitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@weppos both field and order?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Any reason to not?
This PR adds support for the new sort and filter options.