diff --git a/modules/swagger-codegen/src/main/resources/php/ApiClient.mustache b/modules/swagger-codegen/src/main/resources/php/ApiClient.mustache index 98a6ad5df8cf..5b21f922c6b8 100644 --- a/modules/swagger-codegen/src/main/resources/php/ApiClient.mustache +++ b/modules/swagger-codegen/src/main/resources/php/ApiClient.mustache @@ -123,11 +123,12 @@ class ApiClient * @param array $postData parameters to be placed in POST body * @param array $headerParams parameters to be place in request header * @param string $responseType expected response type of the endpoint + * @param string $endpointPath path to method endpoint before expanding parameters * * @throws \{{invokerPackage}}\ApiException on a non 2xx response * @return mixed */ - public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null) + public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null) { $headers = array(); diff --git a/modules/swagger-codegen/src/main/resources/php/api.mustache b/modules/swagger-codegen/src/main/resources/php/api.mustache index 85bc71d2dadc..dfc079874e9e 100644 --- a/modules/swagger-codegen/src/main/resources/php/api.mustache +++ b/modules/swagger-codegen/src/main/resources/php/api.mustache @@ -266,8 +266,14 @@ use \{{invokerPackage}}\ObjectSerializer; '{{httpMethod}}', $queryParams, $httpBody, - $headerParams{{#returnType}}, - '{{returnType}}'{{/returnType}} + $headerParams, + {{#returnType}} + '{{returnType}}', + {{/returnType}} + {{^returnType}} + null, + {{/returnType}} + '{{path}}' ); {{#returnType}}