update php, ruby petstore

This commit is contained in:
wing328
2017-08-02 23:38:46 +08:00
parent 8c487d5dbe
commit 54d00084f7
7 changed files with 39 additions and 3 deletions

View File

@@ -283,6 +283,11 @@ class Fake_classname_tags123Api
}
}
// this endpoint requires API key authentication
$apiKey = $this->config->getApiKeyWithPrefix('api_key_query');
if ($apiKey !== null) {
$queryParams['api_key_query'] = $apiKey;
}
$query = \GuzzleHttp\Psr7\build_query($queryParams);
$url = $this->config->getHost() . $resourcePath . ($query ? '?' . $query : '');