Partial responses are not working for branches.

Issue #15132 resolved
Greg Drozd
created an issue

Hello.

When I run this query:

/2.0/repositories/<ACCOUNT>/<REPO>/refs/branches?fields=-links&format=json

Links node is included in the response.

/2.0/repositories/<ACCOUNT>/<REPO>/refs/branches?fields=-target.%2A&format=json

Or

/2.0/repositories/<ACCOUNT>/<REPO>/refs/branches?fields=-target&format=json

Target node is included in the response.

According to documentation: https://developer.atlassian.com/bitbucket/api/2/reference/meta/partial-response I should be able to return all/additional fields when running this query:

/2.0/repositories/<ACCOUNT>/<REPO>/refs/branches?fields=%2A&format=json

But response is exactly the same as before.

Is it possible to include PR link/state in branches query ?

Thank you and have a nice day.

Comments (6)

  1. Log in to comment