Sorting is not working when I add sort url parameters. I am however able to get the list of branches without sorting.
GET request:
https://api.bitbucket.org/2.0/repositories/{user}/{repo}/refs/branches?sort=-updated_on
Error:
{"type": "error", "error": {"message": "Invalid field name: updated_on"}}
Hi Darren,
The reason for this error is that there is no "updated_on" field for each branch.
The "updated_on" field mentioned in the doc:
is part of the repository object (the repo where the branches belong to) instead of each branch.
Kind regards,
Theodora
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.