Quantcast
Channel: gitea - create repo API - Stack Overflow
Viewing all articles
Browse latest Browse all 2

gitea - create repo API

$
0
0

trying to create repository via API. using swagger execute mode:

curl -X POST "https://URL/git/api/v1/user/repos?access_token=XXXXX" -H "accept: application/json" -H "Content-Type: application/json" -d "{ \"auto_init\": true, \"description\": \"blablabla\", \"gitignores\": \"string\", \"issue_labels\": \"string\", \"license\": \"string\", \"name\": \"blablabla\", \"private\": true, \"readme\": \"string\"}"

yields 500 error, complains about readme.

{"message":"initRepository: prepareRepoCommit: getRepoInitFile[string]: open /readme/string: file does not exist","url":"URLr"}

Guess because of this param:

"readme\": \"string\"

I don’t know what’s the suggested value for that but it’s in swagger docs.
any ideas ?


Viewing all articles
Browse latest Browse all 2

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>