mirror of
https://github.com/minetest/contentdb.git
synced 2024-12-22 14:02:24 +01:00
Wrap example in API docs
This commit is contained in:
parent
2f9a3f04b8
commit
37ff435ff3
@ -268,7 +268,13 @@ Examples:
|
||||
# Create release from Git
|
||||
curl -X POST https://content.minetest.net/api/packages/username/name/releases/new/ \
|
||||
-H "Authorization: Bearer YOURTOKEN" -H "Content-Type: application/json" \
|
||||
-d '{ "method": "git", "name": "1.2.3", "title": "My Release", "ref": "master", "release_notes": "some\nrelease\nnotes\n" }'
|
||||
-d '{
|
||||
"method": "git",
|
||||
"name": "1.2.3",
|
||||
"title": "My Release",
|
||||
"ref": "master",
|
||||
"release_notes": "some\nrelease\nnotes\n"
|
||||
}'
|
||||
|
||||
# Create release from zip upload
|
||||
curl -X POST https://content.minetest.net/api/packages/username/name/releases/new/ \
|
||||
|
Loading…
Reference in New Issue
Block a user