All URIs are relative to http://localhost:3000, except if the operation defines another base path.
| Method | HTTP request | Description |
|---|---|---|
| testFormIntegerBooleanString() | POST /form/integer/boolean/string | Test form parameter(s) |
| testFormObjectMultipart() | POST /form/object/multipart | Test form parameter(s) for multipart schema |
| testFormOneof() | POST /form/oneof | Test form parameter(s) for oneOf schema |
testFormIntegerBooleanString($integer_form, $boolean_form, $string_form): stringTest form parameter(s)
Test form parameter(s)
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\FormApi(
// 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_form = 56; // int
$boolean_form = True; // bool
$string_form = 'string_form_example'; // string
try {
$result = $apiInstance->testFormIntegerBooleanString($integer_form, $boolean_form, $string_form);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FormApi->testFormIntegerBooleanString: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| integer_form | int | [optional] | |
| boolean_form | bool | [optional] | |
| string_form | string | [optional] |
string
No authorization required
- Content-Type:
application/x-www-form-urlencoded - Accept:
text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testFormObjectMultipart($marker): stringTest form parameter(s) for multipart schema
Test form parameter(s) for multipart schema
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\FormApi(
// 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()
);
$marker = new \OpenAPI\Client\Model\TestFormObjectMultipartRequestMarker(); // \OpenAPI\Client\Model\TestFormObjectMultipartRequestMarker
try {
$result = $apiInstance->testFormObjectMultipart($marker);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FormApi->testFormObjectMultipart: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| marker | \OpenAPI\Client\Model\TestFormObjectMultipartRequestMarker |
string
No authorization required
- Content-Type:
multipart/form-data - Accept:
text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]
testFormOneof($form1, $form2, $form3, $form4, $id, $name): stringTest form parameter(s) for oneOf schema
Test form parameter(s) for oneOf schema
<?php
require_once(__DIR__ . '/vendor/autoload.php');
$apiInstance = new OpenAPI\Client\Api\FormApi(
// 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()
);
$form1 = 'form1_example'; // string
$form2 = 56; // int
$form3 = 'form3_example'; // string
$form4 = True; // bool
$id = 56; // int
$name = 'name_example'; // string
try {
$result = $apiInstance->testFormOneof($form1, $form2, $form3, $form4, $id, $name);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling FormApi->testFormOneof: ', $e->getMessage(), PHP_EOL;
}| Name | Type | Description | Notes |
|---|---|---|---|
| form1 | string | [optional] | |
| form2 | int | [optional] | |
| form3 | string | [optional] | |
| form4 | bool | [optional] | |
| id | int | [optional] | |
| name | string | [optional] |
string
No authorization required
- Content-Type:
application/x-www-form-urlencoded - Accept:
text/plain
[Back to top] [Back to API list] [Back to Model list] [Back to README]