abapGit/test/gitea/create.sh
Lars Hvam f46f5ce58e
startup gitea for integration testing (#6619)
Co-authored-by: Marc Bernard <59966492+mbtools@users.noreply.github.com>
2023-11-05 16:04:38 +01:00

15 lines
366 B
Bash

curl -X 'POST' \
'http://localhost:3050/api/v1/user/repos' \
-H 'accept: application/json' \
-H 'authorization: Basic YWJhcGdpdDphYmFwZ2l0' \
-H 'Content-Type: application/json' \
-d '{
"auto_init": true,
"default_branch": "main",
"description": "description",
"license": "MIT",
"name": "repo1",
"private": false,
"trust_model": "default"
}'