go-bitbucket
go-bitbucket copied to clipboard
Add group privileges (for bitbucket v1.0)
The group-privileges endpoints live in the deprecated Bitbucket Cloud REST API version 1. But there is no equivalent endpoint in 2.0, see more details on: https://support.atlassian.com/bitbucket-cloud/docs/group-privileges-endpoint/
The go-bitbucket will not support bitbucket v1.
https://github.com/ktrysmt/go-bitbucket#support-bitbucket-api-v10-
Though operation codes about "ApiBaseURL" looks good, would you split the codes to apiBaseURL and privilege group if you agree. @cgroschupp
Temporary support for limited 1.0 API resources
The 2.0 REST API will rely on the Atlassian Cloud Admin API for user and group management, but those API endpoints are not >yet available. Until the Atlassian platform services are fully available in Bitbucket we will continue to support these 1.0 REST >endpoints:
/1.0/groups /1.0/group-privileges /1.0/invitations /1.0/users/{accountname}/invitations
Especially the "group-privileges" endpoint is an important feature and I think this libary should support all cases for Bitbucket Cloud. When it is available in v2, i will change it.
That's sounds good. I understood. @cgroschupp
@ktrysmt rebase is done
@ktrysmt any thoughts on getting this merged in? I think it will be pretty useful to have, plus I'll happily add support for groups themselves https://support.atlassian.com/bitbucket-cloud/docs/groups-endpoint/#Overview since that is something I'm currently looking at.
I know they are deprecated v1.0 APIs but given how they were deprecated in 2018, and we're close to 2022, I don't think it's a priority for Atlassian to give us v2.0 equivalent APIs 😢