We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfc1493 commit 61ea956Copy full SHA for 61ea956
src/main/resources/php/Swagger.mustache
@@ -66,7 +66,7 @@ class APIClient {
66
}
67
68
if (is_object($postData) or is_array($postData)) {
69
- $postData = http_build_query($this->sanitizeForSerialization($postData));
+ $postData = json_encode($this->sanitizeForSerialization($postData));
70
71
72
$url = $this->apiServer . $resourcePath;
src/main/resources/php/api.mustache
@@ -77,6 +77,8 @@ class {{classname}} {
77
{{/formParams}}
78
if (empty($body)) {
79
$body = null;
80
+ } else if (strpos($headerParams['Content-Type'], "application/x-www-form-urlencoded") > -1) {
81
+ $body = http_build_query($body);
82
83
84
// Make the API Call
0 commit comments