1.上传或更新文本信息。如果不存在则创建,存在则更新内容
post 请求 文档要求 put请求
gitIP+/api/v3/projects/258/repository/files
{
"branch_name": "master",
"author_email": "xxx@xx.com",
"author_name": "author name",
"content": "is commint content",
"commit_message": "commin msg",
"file_path":"gitFile.txt"
}
header 配置
PRIVATE-TOKEN xxxx
Content-Type application/json;charset=UTF-8
返回结果