The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

How to retrieve Repository from HTTP Request for user repositories (w/o project)

Kshitij Korde
January 29, 2019

The Atlassian API for fetching the repository using repository service is repositoryService.getBySlug(project, slug);

It could also be a user's repository that does not have a project. Example below
How to get the repository for users?  

http://ubox:7990/bitbucket/users/kshi/repos/kshitijrepo/commits/643ea6502e8bd8db70f9e62d920297ea1c9e4c65

There is another API that gives the repository getById(int id). Here the id is the repository ID. How to fetch the id using the HTTPRequest to further fetch the repository?

getBySlug API fails because this repository does not have any project created for it.

1 answer

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

0 votes
SAIFUL ISLAM
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
January 29, 2019

Really programs that nice good

TAGS
AUG Leaders

Atlassian Community Events