@@ -36,32 +36,17 @@ func New(c api.ApiClient) (a) {
36
36
return r
37
37
}
38
38
39
- // Get snapshot info
40
- func (r a ) Get (company string , username string , ts string ) (* http.Response , []byte ) {
41
- return r .client .Get ("/team/v1/snapshots/" + company + "/" + username + "/" + ts , nil )
42
- }
43
-
44
- // Update snapshot
45
- func (r a ) Update (company string , username string , ts string , params map [string ]string ) (* http.Response , []byte ) {
46
- return r .client .Post ("/team/v1/snapshots/" + company + "/" + username + "/" + ts , params )
47
- }
48
-
49
- // Delete snapshot
50
- func (r a ) Delete (company string , username string , ts string ) (* http.Response , []byte ) {
51
- return r .client .Delete ("/team/v1/snapshots/" + company + "/" + username + "/" + ts , nil )
52
- }
53
-
54
39
// Get snapshot info by specific contract
55
40
func (r a ) GetByContract (contractId string , ts string ) (* http.Response , []byte ) {
56
- return r .client .Get ("/team/v2 /snapshots/contracts/" + contractId + "/" + ts , nil )
41
+ return r .client .Get ("/team/v3 /snapshots/contracts/" + contractId + "/" + ts , nil )
57
42
}
58
43
59
44
// Update snapshot by specific contract
60
45
func (r a ) UpdateByContract (contractId string , ts string , params map [string ]string ) (* http.Response , []byte ) {
61
- return r .client .Post ("/team/v2 /snapshots/contracts/" + contractId + "/" + ts , params )
46
+ return r .client .Post ("/team/v3 /snapshots/contracts/" + contractId + "/" + ts , params )
62
47
}
63
48
64
49
// Delete snapshot by specific contract
65
50
func (r a ) DeleteByContract (contractId string , ts string ) (* http.Response , []byte ) {
66
- return r .client .Delete ("/team/v2 /snapshots/contracts/" + contractId + "/" + ts , nil )
67
- }
51
+ return r .client .Delete ("/team/v3 /snapshots/contracts/" + contractId + "/" + ts , nil )
52
+ }
0 commit comments