Reputation: 6222
is it possible to use Gitlab API for official Gitlab Server? I mean www.gitlab.com
. I can't find the host URI. Here is the api:
https://docs.gitlab.com/ce/api/
Upvotes: 1
Views: 3026
Reputation: 1324947
While the documention does mention https://gitlab.example.com/api/v3/...
, you are still able to apply that API to gitlab.com itself.
You would use urls like https://gitlab.com/api/v3/...
as described in this issue
https://gitlab.com/api/v3/projects?private_token=...
Or here (for creating a new project):
curl --header "PRIVATE-TOKEN: my token" -d "name=test" "https://gitlab.com/api/v3/projects"
Upvotes: 5