Skip to content

Commit be825a4

Browse files
refactor(api)!: change route to be /beta instead of /v1
1 parent 74e4e50 commit be825a4

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.stats.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 14
22
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/miru-ml%2Fmiru-server-e8b887c478291aecbbf06e532903242a5d5ff682a2a6814921bb770c97a1753d.yml
33
openapi_spec_hash: b15141c2e0e81b8029c620d4aef4188c
4-
config_hash: 3de34a47f7bb67e784afed4170b209b1
4+
config_hash: 95b6fa4e87744247f5bdbf841c16ce0a

option/requestoption.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -263,28 +263,28 @@ func WithRequestTimeout(dur time.Duration) RequestOption {
263263
// environment to be the "prod" environment. An environment specifies which base URL
264264
// to use by default.
265265
func WithEnvironmentProd() RequestOption {
266-
return requestconfig.WithDefaultBaseURL("https://configs.api.miruml.com/v1/")
266+
return requestconfig.WithDefaultBaseURL("https://configs.api.miruml.com/beta/")
267267
}
268268

269269
// WithEnvironmentUat returns a RequestOption that sets the current
270270
// environment to be the "uat" environment. An environment specifies which base URL
271271
// to use by default.
272272
func WithEnvironmentUat() RequestOption {
273-
return requestconfig.WithDefaultBaseURL("https://uat.api.miruml.com/v1/")
273+
return requestconfig.WithDefaultBaseURL("https://uat.api.miruml.com/beta/")
274274
}
275275

276276
// WithEnvironmentStaging returns a RequestOption that sets the current
277277
// environment to be the "staging" environment. An environment specifies which base URL
278278
// to use by default.
279279
func WithEnvironmentStaging() RequestOption {
280-
return requestconfig.WithDefaultBaseURL("https://configs.dev.api.miruml.com/v1/")
280+
return requestconfig.WithDefaultBaseURL("https://configs.dev.api.miruml.com/beta/")
281281
}
282282

283283
// WithEnvironmentLocal returns a RequestOption that sets the current
284284
// environment to be the "local" environment. An environment specifies which base URL
285285
// to use by default.
286286
func WithEnvironmentLocal() RequestOption {
287-
return requestconfig.WithDefaultBaseURL("http://localhost:8080/v1/")
287+
return requestconfig.WithDefaultBaseURL("http://localhost:8080/beta/")
288288
}
289289

290290
// WithAPIKey returns a RequestOption that sets the client setting "api_key".

0 commit comments

Comments
 (0)