forked from loafle/openapi-generator-original
[PHP] Improve docs and README (#6935)
* Fix wrong client class, add details about client * Improve example for Configuration * camelcase * Improve README like api doc * Update samples
This commit is contained in:
committed by
William Cheng
parent
62444a7aaf
commit
9ca9887de4
@@ -17,11 +17,15 @@ To test code injection *_/ ' \" =end -- \\r\\n \\n \\r
|
||||
<?php
|
||||
require_once(__DIR__ . '/vendor/autoload.php');
|
||||
|
||||
$api_instance = new Swagger\Client\Api\FakeApi(new \Http\Adapter\Guzzle6\Client());
|
||||
$apiInstance = new Swagger\Client\Api\FakeApi(
|
||||
// If you want use custom http client, pass your client which implements `GuzzleHttp\ClientInterface`.
|
||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||
new GuzzleHttp\Client()
|
||||
);
|
||||
$test_code_inject____end____rn_n_r = "test_code_inject____end____rn_n_r_example"; // string | To test code injection *_/ ' \" =end -- \\r\\n \\n \\r
|
||||
|
||||
try {
|
||||
$api_instance->testCodeInjectEndRnNR($test_code_inject____end____rn_n_r);
|
||||
$apiInstance->testCodeInjectEndRnNR($test_code_inject____end____rn_n_r);
|
||||
} catch (Exception $e) {
|
||||
echo 'Exception when calling FakeApi->testCodeInjectEndRnNR: ', $e->getMessage(), PHP_EOL;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user