I was trying to create a repository with the api
curl -X POST -H "Content-Type:application/json" "https://api.bitbucket.org/2.0/repositories/{workspace}/{reponame} --data '{"scm": "git","project": {"key": "PROJ"}}
But also need an empty file/readme file/gitignore file to be created as part of it or atleast is there any other api that can be used to add readme file.
It looks like you're new here. Sign in or register to get started.