I'm attempting to write a script to audit existing repositories for specific requirements and violations. Easy enough to doe with a bash script, except that the repositories have directory names that represent the stash repository ID, which is mapped to a project/repository by Stash, but not obvious to my script.
Given a repository ID (id = 1124) how do I obtain the associated clone url?
I tried http:server/rest/api/latest/repos?id=1124 but the id parameter is ignored and I get the first page of all repos.
I could cycle through all repos to find it, but that is pretty expensive. Is there a specific rest api to retrieve the clone url?