Hi,
How can I detect for specific project which repositories exist in it using an API call ?
I need to implement a process that for specific project displays all the existing repositories.
Hi @Eyal Goren
Use this API and let me know
curl -s -k --request GET --user "username:password" "https://<host>/rest/api/1.0/projects/<projectkey/repos"
It's working fine for me. Let me know once you use this API
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi @Eyal Goren
Using API Ref here
https://docs.atlassian.com/bitbucket-server/rest/5.15.0/bitbucket-rest.html
curl -s --request GET --user "${username}:${token}" https://stash.atlassian.com/rest/api/1.0/projects/{projectKey}/repos
You will get the JSON response from the curl request, which you later extract the data from jq tool
Thanks,
Pramodh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I tried it, it returned nothing-
curl -s --request GET --user "<user>:<token>" https://<host>/rest/api/1.0/projects/<proj name>/repos
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.