forked from loafle/openapi-generator-original
* test: Tests for enum params in path, query and header * fix: Get enum ref values correctly in path parameters Closes #16688 * fix java tests failure --------- Co-authored-by: William Cheng <wing328hk@gmail.com>
2.4 KiB
2.4 KiB
OpenAPI\Client\PathApi
All URIs are relative to http://localhost:3000, except if the operation defines another base path.
Method | HTTP request | Description |
---|---|---|
testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath() | GET /path/string/{path_string}/integer/{path_integer}/{enum_nonref_string_path}/{enum_ref_string_path} | Test path parameter(s) |
testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath()
testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path): string
Test path parameter(s)
Test path parameter(s)
Example
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\PathApi(
// 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()
);
$path_string = 'path_string_example'; // string
$path_integer = 56; // int
$enum_nonref_string_path = 'enum_nonref_string_path_example'; // string
$enum_ref_string_path = new \OpenAPI\Client\Model\StringEnumRef(); // StringEnumRef
try {
$result = $apiInstance->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath($path_string, $path_integer, $enum_nonref_string_path, $enum_ref_string_path);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling PathApi->testsPathStringPathStringIntegerPathIntegerEnumNonrefStringPathEnumRefStringPath: ', $e->getMessage(), PHP_EOL;
}
Parameters
Name | Type | Description | Notes |
---|---|---|---|
path_string | string | ||
path_integer | int | ||
enum_nonref_string_path | string | ||
enum_ref_string_path | StringEnumRef |
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]