stashy icon indicating copy to clipboard operation
stashy copied to clipboard

How to override "core_api_version"?

Open truebit opened this issue 6 years ago • 1 comments

I'd like to use other core api version like 2.0, I tried below code, but without luck:

from stashy.client import StashClient
import stashy
StashClient.core_api_version = '2.0'
s= stashy.connect('http://git.example.com', 'admin', 'foobar')
s.admin.groups.url()

s.admin.groups.url() still returns 1.0

truebit avatar Jan 28 '19 07:01 truebit

I found the core_api_path is still api/1.0. So workaround is to override core_api_path instead of core_api_version

truebit avatar Jan 28 '19 07:01 truebit