bluefeet / GitLab-API-v4

A complete GitLab API v4 client.
https://metacpan.org/pod/GitLab::API::v4
Other
20 stars 23 forks source link

user() should accept no parameters #32

Closed felsgaertner closed 5 years ago

felsgaertner commented 5 years ago

If you call /user without any parameter, you get the details of the user which the token belongs to:

curl --header "PRIVATE-TOKEN: <token>" "https://gitlab.com/api/v4/user"

This should be able with GitLab-API-v4, which is not possible yet. The current version v4-0.17 complains about missing parameters.

bluefeet commented 5 years ago

This is already implemented as the current_user() method, documented at:

https://metacpan.org/pod/GitLab::API::v4#Users

felsgaertner commented 5 years ago

Ok, thanks. Maybe I was stuck to tight to the upstream API docs. Didn't find that.