POST https://sourcerepo.googleapis.com/v1/projects/<example>/repos?key={YOUR_API_KEY}
{
"name": ">repos>"
}
这使 :
HTTP/400
cache-control: private
content-encoding: gzip
content-length: 251
content-type: application/json; charset=UTF-8
date: Thu, 15 Feb 2018 22:46:47 GMT
server: ESF
vary: Origin, X-Origin, Referer
{
"error": {
"code": 400,
"message": "Request contains an invalid argument.",
"status": "INVALID_ARGUMENT",
"details": [
{
"@type": "type.googleapis.com/google.rpc.LocalizedMessage",
"locale": "en-US",
"message": "Invalid repo name: repos. Must be of the form projects/<project>/repos/<repo>"
}
]
}
}
example
现有项目在哪里,repos 是我要创建的存储库名称。
我错过了什么?我找不到工作代码的示例。