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

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

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events