【发布时间】:2022-08-02 15:56:09
【问题描述】:
我是 GitHub API 的新手,并尝试使用 API 在我的存储库中创建一个文件。 我正在使用邮递员首先检查 API。
PUT Method:
URL:https://api.github.com/repos/KaranS-hexaware/Rapidx_Documentation/contents/text.txt
Body:{
\"message\":\"my commit message\",
\"content\":\"bXkgbmV3IGZpbGUgY29udGVudHM=\"
}
Header
Authorization:Bearer ****************************************************
Content-Type:application/vnd.api+json
回应是:
{
\"message\": \"Not Found\",
\"documentation_url\": \"https://docs.github.com/rest/reference/repos#create-or-update-file-contents\"
}
我可以就我在这里缺少的内容获得一些意见吗?
标签: github-api