Skip to content

Commit

Permalink
chore: add json request body in fetch, delete and read operations (#615)
Browse files Browse the repository at this point in the history
  • Loading branch information
tiwarishubham635 authored Sep 25, 2024
1 parent 4e9d15a commit 78f7596
Show file tree
Hide file tree
Showing 10 changed files with 32 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down Expand Up @@ -144,7 +144,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
6 changes: 3 additions & 3 deletions examples/csharp/src/Twilio/Rest/Api/V2010/AccountOptions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand All @@ -119,7 +119,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down Expand Up @@ -175,7 +175,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down Expand Up @@ -78,7 +78,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand All @@ -103,7 +103,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down Expand Up @@ -124,7 +124,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down Expand Up @@ -161,7 +161,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public List<KeyValuePair<string, string>> GetParams()
return p;
}



}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
}
{{/vendorExtensions.x-required-param-exists}}

{{^vendorExtensions.x-is-json}}
{{>options/GetParams}}
{{>options/HeaderParams}}
{{/vendorExtensions.x-is-json}}
{{#vendorExtensions.x-is-json}}
{{>options/GetBody}}
{{/vendorExtensions.x-is-json}}
{{>options/HeaderParams}}
}

Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@
}
{{/vendorExtensions.x-required-param-exists}}

{{^vendorExtensions.x-is-json}}
{{>options/GetParams}}
{{>options/HeaderParams}}
{{/vendorExtensions.x-is-json}}
{{#vendorExtensions.x-is-json}}
{{>options/GetBody}}
{{/vendorExtensions.x-is-json}}
{{>options/HeaderParams}}
}

Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,11 @@
}
{{/vendorExtensions.x-required-param-exists}}

{{^vendorExtensions.x-is-json}}
{{>options/GetParams}}
{{>options/HeaderParams}}
{{/vendorExtensions.x-is-json}}
{{#vendorExtensions.x-is-json}}
{{>options/GetBody}}
{{/vendorExtensions.x-is-json}}
{{>options/HeaderParams}}
}

0 comments on commit 78f7596

Please sign in to comment.