2016-09-12 51 views

回答

2

雖然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" 
+0

我會檢查出來的時候我回家。它昨天一定很晚:)。但我不明白他們爲什麼使用gitlab.example而不是官方文檔。 – MistyK

+0

使用gitlab.com應該是官方文檔的一部分(至少與'gitlab.example.com'並行)。謝謝。 –