By my reading of the documentation here, I should be able to get a list of all of the read-only branch restrictions on BitBucket server using the following URL:
{serverUrl}/rest/branch-permissions/2.0/projects/{projectKey}/repos/{repositorySlug}/restrictions?read-only
But this gives me a list of all of the permissions, not just the read-only permissions. The list it gives me is identical to what I get from this URL:
{serverUrl}/rest/branch-permissions/2.0/projects/{projectKey}/repos/{repositorySlug}/restriction
Is this a bug, or am I doing something wrong?