Skip to content

Commit 4895166

Browse files
fix: updated client base url templating and docs (#2)
* Docs update and a fix * Formatting
1 parent f7c84ec commit 4895166

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/resources/twilio-go/README.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{{/appDescriptionWithNewLines}}
66

77
## Overview
8-
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
8+
This API client was generated by the [OpenAPI Generator](https://openapi-generator.tech) project from the OpenAPI specs located at [twilio/twilio-oai](https://github.com/twilio/twilio-oai/tree/main/spec). By using the [OpenAPI-spec](https://www.openapis.org/) from a remote server, you can easily generate an API client.
99

1010
- API version: {{appVersion}}
1111
- Package version: {{packageVersion}}

src/main/resources/twilio-go/api.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ type {{classname}}Service struct {
1919
func New{{classname}}Service(client *twilio.Client) *{{classname}}Service {
2020
return &{{classname}}Service {
2121
client: client,
22-
baseURL: fmt.Sprintf("https://studio.%s", client.BaseURL),
22+
baseURL: fmt.Sprintf("{{#operation}}{{#-first}}{{#servers}}{{url}}{{/servers}}{{/-first}}{{/operation}}"),
2323
}
2424
}
2525
{{#operation}}

0 commit comments

Comments
 (0)