Hi there,
I am new to gitea and trying to use the API now to create a repo.
I have generated a token on my account and can see my private repo with this token using :
curl -X GET @gitea/api/v1/repos/yann/yannrepo?access_token=MYTOKEN
Wich is already a nice step
But now I would like to create a repo, so I followed insctruction there : @g/swagger
But the curl generated is wrong in “POST/user/repos”
If you put the name of the repo to create it doesn t apear in the generated curl.
So little chances are that it will create a repo with that name
I always end up with something like this whatever I type :
curl -X POST “@gitea/api/v1/user/repos?access_token=TOKEN” -H “accept: application/json” -H “content-type: application/json” -d “"string"”