Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Operation method independent #526

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
{{>resource/GeneratePath}}
return new Request(
HttpMethod.Post,
HttpMethod.{{#lambda.titlecasewithnumbers}}{{httpMethod}}{{/lambda.titlecasewithnumbers}},
Rest.Domain.{{domainPackage}},
path,
postParams: options.GetParams(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
{
{{>resource/GeneratePath}}
return new Request(
HttpMethod.Delete,
HttpMethod.{{#lambda.titlecasewithnumbers}}{{httpMethod}}{{/lambda.titlecasewithnumbers}},
Rest.Domain.{{domainPackage}},
path,
queryParams: options.GetParams(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
{{>resource/GeneratePath}}
return new Request(
HttpMethod.Get,
HttpMethod.{{#lambda.titlecasewithnumbers}}{{httpMethod}}{{/lambda.titlecasewithnumbers}},
Rest.Domain.{{domainPackage}},
path,
queryParams: options.GetParams(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
{{>resource/GeneratePath}}
return new Request(
HttpMethod.Get,
HttpMethod.{{#lambda.titlecasewithnumbers}}{{httpMethod}}{{/lambda.titlecasewithnumbers}},
Rest.Domain.{{domainPackage}},
path,
queryParams: options.GetParams(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
{
{{>resource/GeneratePath}}
return new Request(
HttpMethod.Post,
HttpMethod.{{#lambda.titlecasewithnumbers}}{{httpMethod}}{{/lambda.titlecasewithnumbers}},
Rest.Domain.{{domainPackage}},
path,
postParams: options.GetParams(),
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/twilio-java/creator.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ public class {{apiName}}Creator extends Creator<{{apiName}}>{
public {{apiName}} create(final TwilioRestClient client){
{{>generate_uri}}
Request request = new Request(
HttpMethod.POST,
HttpMethod.{{httpMethod}},
Domains.{{#lambda.uppercase}}{{domainName}}{{/lambda.uppercase}}.toString(),
path
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/twilio-java/deleter.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public class {{apiName}}Deleter extends Deleter<{{apiName}}> {
public boolean delete(final TwilioRestClient client) {
{{>generate_uri}}
Request request = new Request(
HttpMethod.DELETE,
HttpMethod.{{httpMethod}},
Domains.{{#lambda.uppercase}}{{domainName}}{{/lambda.uppercase}}.toString(),
path
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/twilio-java/fetcher.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public class {{apiName}}Fetcher extends Fetcher<{{apiName}}> {
public {{apiName}} fetch(final TwilioRestClient client) {
{{>generate_uri}}
Request request = new Request(
HttpMethod.GET,
HttpMethod.{{httpMethod}},
Domains.{{#lambda.uppercase}}{{domainName}}{{/lambda.uppercase}}.toString(),
path
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/twilio-java/reader.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public class {{apiName}}Reader extends Reader<{{apiName}}> {
{{/requiredParams}}

Request request = new Request(
HttpMethod.GET,
HttpMethod.{{httpMethod}},
Domains.{{#lambda.uppercase}}{{domainName}}{{/lambda.uppercase}}.toString(),
path
);
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/twilio-java/updater.mustache
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public class {{apiName}}Updater extends Updater<{{apiName}}>{
public {{apiName}} update(final TwilioRestClient client){
{{>generate_uri}}
Request request = new Request(
HttpMethod.POST,
HttpMethod.{{httpMethod}},
Domains.{{#lambda.uppercase}}{{domainName}}{{/lambda.uppercase}}.toString(),
path
);
Expand Down