Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

path query param is not working for Bitbucket Server REST API for retrieving comments

Adam Chen Wei September 27, 2017

I tried to get all the comments for a PR and saw I had to put a path param. I suppose its for location of the file?

I left a comment on a file name README.md in root folder for the repo, so I put path=/README.md or path="/README.md" even there is a comment on the file, returned result is zero.

 

Response is 
{
"size": 0,
"limit": 25,
"isLastPage": true,
"values": [],
"start": 0
}

What I did

https://bitbucket.com/rest/api/latest/projects/AIR/repos/my-repo/pull-requests/36/comments?path="/README.md"

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events