Matt Melling a8cbae4dc8 [PHP] Upgrade php-cs-fixer to 2.12, enables PHP >= 7.2 support (#769)
* upgrade php-cs-fixer to 2.12

* ran petstore-security-test for php

* updating openapi3 php petstore example
2018-09-06 20:48:00 +09:00

1.8 KiB

OpenAPI\Client\FakeApi

All URIs are relative to *http://petstore.swagger.io / ' " =end -- \r\n \n \r/v2 */ ' " =end -- \r\n \n \r

Method HTTP request Description
testCodeInjectEndRnNR PUT /fake To test code injection *_/ ' " =end -- \r\n \n \r

testCodeInjectEndRnNR

testCodeInjectEndRnNR($unknown_base_type)

To test code injection *_/ ' " =end -- \r\n \n \r

To test code injection *_/ ' " =end -- \r\n \n \r

Example

<?php
require_once(__DIR__ . '/vendor/autoload.php');

$apiInstance = new OpenAPI\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()
);
$unknown_base_type = new \OpenAPI\Client\Model\UNKNOWN_BASE_TYPE(); // \OpenAPI\Client\Model\UNKNOWN_BASE_TYPE | 

try {
    $apiInstance->testCodeInjectEndRnNR($unknown_base_type);
} catch (Exception $e) {
    echo 'Exception when calling FakeApi->testCodeInjectEndRnNR: ', $e->getMessage(), PHP_EOL;
}
?>

Parameters

Name Type Description Notes
unknown_base_type \OpenAPI\Client\Model\UNKNOWN_BASE_TYPE [optional]

Return type

void (empty response body)

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json, *_/ " =end --
  • Accept: Not defined

[Back to top] [Back to API list] [Back to Model list] [Back to README]