William Cheng 4260c7aaf0
Better tests for php-nextgen (#16569)
* better tests for php nextgen

* add new files
2023-09-13 10:50:29 +08:00

1.8 KiB

OpenAPI\Client\HeaderApi

All URIs are relative to http://localhost:3000, except if the operation defines another base path.

Method HTTP request Description
testHeaderIntegerBooleanString() GET /header/integer/boolean/string Test header parameter(s)

testHeaderIntegerBooleanString()

testHeaderIntegerBooleanString($integer_header, $boolean_header, $string_header): string

Test header parameter(s)

Test header parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\HeaderApi(
    // 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()
);
$integer_header = 56; // int
$boolean_header = True; // bool
$string_header = 'string_header_example'; // string

try {
    $result = $apiInstance->testHeaderIntegerBooleanString($integer_header, $boolean_header, $string_header);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling HeaderApi->testHeaderIntegerBooleanString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
integer_header int [optional]
boolean_header bool [optional]
string_header string [optional]

Return type

string

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain

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