Skip to content

Commit a883bdf

Browse files
committed
Include path version in string to allow more control over endpoint used per resource
1 parent 136fa4d commit a883bdf

File tree

11 files changed

+13
-13
lines changed

11 files changed

+13
-13
lines changed

konnect/client/authentication_settings.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package client
22

33
const (
44
AuthenticationSettingsId = "authentication-settings"
5-
AuthenticationSettingsPath = AuthenticationSettingsId
5+
AuthenticationSettingsPath = "v3/" + AuthenticationSettingsId
66
)
77

88
type AuthenticationSettings struct {

konnect/client/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,5 +108,5 @@ func (c *Client) RequestPath(isRegion bool, path string) string {
108108
} else {
109109
host = GlobalRegion
110110
}
111-
return fmt.Sprintf("https://%s.%s/v2/%s", host, KonnectDomain, path)
111+
return fmt.Sprintf("https://%s.%s/%s", host, KonnectDomain, path)
112112
}

konnect/client/control_plane.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package client
22

33
const (
4-
ControlPlanePath = "control-planes"
4+
ControlPlanePath = "v2/control-planes"
55
ControlPlanePathGet = ControlPlanePath + "/%s"
66
)
77

konnect/client/identity_provider.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package client
22

33
const (
44
IdentityProviderId = "identity-provider"
5-
IdentityProviderPath = IdentityProviderId
5+
IdentityProviderPath = "v3/" + IdentityProviderId
66
EmailClaim = "email"
77
NameClaim = "name"
88
GroupsClaim = "groups"

konnect/client/role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package client
22

33
const (
4-
RolePath = "roles"
4+
RolePath = "v3/roles"
55
ControlPlanesDisplayName = "Control Planes"
66
ServicesDisplayName = "Services"
77
)

konnect/client/team.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package client
22

33
const (
4-
TeamPath = "teams"
4+
TeamPath = "v3/teams"
55
TeamPathGet = TeamPath + "/%s"
66
)
77

konnect/client/team_role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package client
33
import "strings"
44

55
const (
6-
TeamRolePath = "teams/%s/assigned-roles"
6+
TeamRolePath = "v3/teams/%s/assigned-roles"
77
TeamRolePathCreate = TeamRolePath
88
TeamRolePathDelete = TeamRolePath + "/%s"
99
)

konnect/client/team_user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package client
33
import "strings"
44

55
const (
6-
TeamUserPath = "teams/%s/users"
6+
TeamUserPath = "v3/teams/%s/users"
77
TeamUserPathCreate = TeamUserPath
88
TeamUserPathDelete = TeamUserPath + "/%s"
99
)

konnect/client/user.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package client
22

33
const (
4-
UserPath = "users"
4+
UserPath = "v3/users"
55
UserPathGet = UserPath + "/%s"
66
)
77

konnect/client/user_role.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ package client
33
import "strings"
44

55
const (
6-
UserRolePath = "users/%s/assigned-roles"
6+
UserRolePath = "v3/users/%s/assigned-roles"
77
UserRolePathCreate = UserRolePath
88
UserRolePathDelete = UserRolePath + "/%s"
99
)

0 commit comments

Comments
 (0)