gitlab api:如何检索当前用户的userId

时间:2019-08-28 10:30:31

标签: gitlab gitlab-api

我想拥有一个可单独调用的网址,以查看gitlab中特定用户的问题。

如何检索当前登录的用户?

https://server/folder/project/issues?scope=all&state=opened&assignee_id= <how to get this id>

https://server/folder/project/issues?scope=all&state=opened&assignee_username= <how to get this name>

1 个答案:

答案 0 :(得分:3)

List current user:获取当前经过身份验证的用户。

GET /user

示例:https://gitlab.example.org/api/v4/user