I am not sure what to suggest as the improvement here. But I was quite confused that to create a scope I have to use a rest end point 'collections'. I understand that the feature name is collections and maybe that is why this was chosen.
curl -X POST -v -u Administrator:password \ http://10.143.210.101:8091/pools/default/buckets/testBucket/collections \ -d name=my_scope
If it is not too late, can we change the end point to 'scopes'?
cc Jim Walker