是否有 Gitlab API 的官方主机 uri?
Is there an official host uri for Gitlab API?
是否可以使用 Gitlab API 作为官方 Gitlab Server?我的意思是 www.gitlab.com
。我找不到主机 URI。这是 api:
https://docs.gitlab.com/ce/api/
虽然 the documention 确实提到了 https://gitlab.example.com/api/v3/...
,但您仍然可以将 API 应用于 gitlab.com 本身。
您可以使用 https://gitlab.com/api/v3/...
之类的网址,如 this issue
中所述
https://gitlab.com/api/v3/projects?private_token=...
或here(用于创建新项目):
curl --header "PRIVATE-TOKEN: my token" -d "name=test" "https://gitlab.com/api/v3/projects"
是否可以使用 Gitlab API 作为官方 Gitlab Server?我的意思是 www.gitlab.com
。我找不到主机 URI。这是 api:
https://docs.gitlab.com/ce/api/
虽然 the documention 确实提到了 https://gitlab.example.com/api/v3/...
,但您仍然可以将 API 应用于 gitlab.com 本身。
您可以使用 https://gitlab.com/api/v3/...
之类的网址,如 this issue
https://gitlab.com/api/v3/projects?private_token=...
或here(用于创建新项目):
curl --header "PRIVATE-TOKEN: my token" -d "name=test" "https://gitlab.com/api/v3/projects"