All URIs are relative to http://petstore.swagger.io:80/v2, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| error() | GET /error | Will always generate an error |
| fooGet() | GET /foo |
error()Will always generate an error
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\DefaultApi(
// 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()
);
try {
$apiInstance->error();
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->error: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
void (empty response body)
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
fooGet(): \OpenAPI\Client\Model\FooGetDefaultResponse<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\DefaultApi(
// 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()
);
try {
$result = $apiInstance->fooGet();
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->fooGet: ', $e->getMessage(), PHP_EOL;
}This endpoint does not need any parameter.
\OpenAPI\Client\Model\FooGetDefaultResponse
No authorization required
- Content-Type: Not defined
- Accept:
application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]