Support supplying custom query params
On API methods, accept a vector of tuples for key/value attributes to be appended to the url.
This would allow you to reduce redundancy and add utility. For example, you could then remove the method Gitlab::owned_projects()
and simply allow the user to call Gitlab::projects()
supplying [("owned", true)]
. It would also give the user access to any other attributes they want, like in this case membership for example, or the sort attribute, or even give the ability to search.