Authorization: Bearer ********************
{
"filepath": "测试上传",
"base64_filepath": "5rWL6K+V5LiK5Lyg",
"branch": "master_1",
"content": "5rWL6K+V5LiK5Lyg",
"message": "Add 测试上传"
}
curl --location --request POST 'http://dev-cn.your-api-server.com/api///create_file.json' \
--header 'Cookie: autologin_trustie=3acc38c27d61a347f5c16fbca2c4964b181a2f79' \
--header 'Content-Type: application/json' \
--data-raw '{
"filepath": "测试上传",
"base64_filepath": "5rWL6K+V5LiK5Lyg",
"branch": "master_1",
"content": "5rWL6K+V5LiK5Lyg",
"message": "Add 测试上传"
}'
{
"name": "pariatur veniam anim",
"sha": "12024760d4df3170f9699d9084211d7975ec4adc",
"size": 12,
"content": "5rWL6K+V5LiK5Lyg",
"encoding": "base64",
"pr_id": null,
"commit": {
"message": "reprehenderit\n",
"author": {
"name": "yystopf",
"email": "yystopf@163.com",
"date": "2023-12-21T06:44:11Z"
},
"committer": {
"name": "yystopf",
"email": "yystopf@163.com",
"date": "2023-12-21T06:44:11Z"
}
}
}