Skip to content

Commit

Permalink
Switch to new base URLs (#225)
Browse files Browse the repository at this point in the history
Stackit introduced new base urls, so they move to dedicated hosts per API.
  • Loading branch information
nillga authored Oct 18, 2024
1 parent fe53679 commit a301395
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion internal/config/costs/v1.0/include/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var BaseURLs = baseurl.New(
"costs",
"https://api.stackit.cloud/costs-service/v1/",
"https://metering.api.eu01.stackit.cloud/v1/",
)

func NewService(c contracts.BaseClientInterface) *costs.ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/costs/v2.0/include/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var BaseURLs = baseurl.New(
"costs",
"https://api.stackit.cloud/costs-service/v2/",
"https://metering.api.eu01.stackit.cloud/v2/",
)

func NewService(c contracts.BaseClientInterface) *costs.ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/membership/v2.0/include/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const (

var BaseURLs = baseurl.New(
"membership",
"https://api.stackit.cloud/membership/",
"https://authorization.api.stackit.cloud/",
)

func NewService(c contracts.BaseClientInterface) *membership.ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion internal/config/service-accounts/v2.0/include/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import (

var BaseURLs = baseurl.New(
"service_accounts",
"https://api.stackit.cloud/service-account/",
"https://service-account.api.stackit.cloud/",
)

func NewService(c contracts.BaseClientInterface) *serviceaccounts.ClientWithResponses {
Expand Down
4 changes: 2 additions & 2 deletions pkg/clients/key_flow.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ const (

var tokenAPI = baseurl.New(
"token",
"https://api.stackit.cloud/service-account/token",
"https://service-account.api.stackit.cloud/token",
)

var jsksAPI = baseurl.New(
"jwks",
"https://api.stackit.cloud/service-account/.well-known/jwks.json",
"https://service-account.api.stackit.cloud/.well-known/jwks.json",
)

const (
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/costs/v1.0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var BaseURLs = baseurl.New(
"costs",
"https://api.stackit.cloud/costs-service/v1/",
"https://metering.api.eu01.stackit.cloud/v1/",
)

func NewService(c contracts.BaseClientInterface) *ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/costs/v2.0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var BaseURLs = baseurl.New(
"costs",
"https://api.stackit.cloud/costs-service/v2/",
"https://metering.api.eu01.stackit.cloud/v2/",
)

func NewService(c contracts.BaseClientInterface) *ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/membership/v2.0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const (

var BaseURLs = baseurl.New(
"membership",
"https://api.stackit.cloud/membership/",
"https://authorization.api.stackit.cloud/",
)

func NewService(c contracts.BaseClientInterface) *ClientWithResponses {
Expand Down
2 changes: 1 addition & 1 deletion pkg/services/service-accounts/v2.0/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import (

var BaseURLs = baseurl.New(
"service_accounts",
"https://api.stackit.cloud/service-account/",
"https://service-account.api.stackit.cloud/",
)

func NewService(c contracts.BaseClientInterface) *ClientWithResponses {
Expand Down

0 comments on commit a301395

Please sign in to comment.