Emilien Escalle 7f551bb9a0
feat(php-nextgen-client): add support for streaming (#19192)
Signed-off-by: Emilien Escalle <emilien.escalle@escemi.com>
2024-07-31 17:32:10 +08:00

16 KiB

OpenAPI\Client\QueryApi

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

Method HTTP request Description
testEnumRefString() GET /query/enum_ref_string Test query parameter(s)
testQueryDatetimeDateString() GET /query/datetime/date/string Test query parameter(s)
testQueryIntegerBooleanString() GET /query/integer/boolean/string Test query parameter(s)
testQueryStyleDeepObjectExplodeTrueObject() GET /query/style_deepObject/explode_true/object Test query parameter(s)
testQueryStyleDeepObjectExplodeTrueObjectAllOf() GET /query/style_deepObject/explode_true/object/allOf Test query parameter(s)
testQueryStyleFormExplodeFalseArrayInteger() GET /query/style_form/explode_false/array_integer Test query parameter(s)
testQueryStyleFormExplodeFalseArrayString() GET /query/style_form/explode_false/array_string Test query parameter(s)
testQueryStyleFormExplodeTrueArrayString() GET /query/style_form/explode_true/array_string Test query parameter(s)
testQueryStyleFormExplodeTrueObject() GET /query/style_form/explode_true/object Test query parameter(s)
testQueryStyleFormExplodeTrueObjectAllOf() GET /query/style_form/explode_true/object/allOf Test query parameter(s)

testEnumRefString()

testEnumRefString($enum_nonref_string_query, $enum_ref_string_query): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$enum_nonref_string_query = 'enum_nonref_string_query_example'; // string
$enum_ref_string_query = new \OpenAPI\Client\Model\StringEnumRef(); // StringEnumRef

try {
    $result = $apiInstance->testEnumRefString($enum_nonref_string_query, $enum_ref_string_query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testEnumRefString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
enum_nonref_string_query string [optional]
enum_ref_string_query StringEnumRef [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]

testQueryDatetimeDateString()

testQueryDatetimeDateString($datetime_query, $date_query, $string_query): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$datetime_query = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$date_query = new \DateTime("2013-10-20T19:20:30+01:00"); // \DateTime
$string_query = 'string_query_example'; // string

try {
    $result = $apiInstance->testQueryDatetimeDateString($datetime_query, $date_query, $string_query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryDatetimeDateString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
datetime_query \DateTime [optional]
date_query \DateTime [optional]
string_query 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]

testQueryIntegerBooleanString()

testQueryIntegerBooleanString($integer_query, $boolean_query, $string_query): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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_query = 56; // int
$boolean_query = True; // bool
$string_query = 'string_query_example'; // string

try {
    $result = $apiInstance->testQueryIntegerBooleanString($integer_query, $boolean_query, $string_query);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryIntegerBooleanString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
integer_query int [optional]
boolean_query bool [optional]
string_query 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]

testQueryStyleDeepObjectExplodeTrueObject()

testQueryStyleDeepObjectExplodeTrueObject($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = new \OpenAPI\Client\Model\Pet(); // Pet

try {
    $result = $apiInstance->testQueryStyleDeepObjectExplodeTrueObject($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleDeepObjectExplodeTrueObject: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object Pet [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]

testQueryStyleDeepObjectExplodeTrueObjectAllOf()

testQueryStyleDeepObjectExplodeTrueObjectAllOf($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = new \OpenAPI\Client\Model\TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter(); // TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter

try {
    $result = $apiInstance->testQueryStyleDeepObjectExplodeTrueObjectAllOf($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleDeepObjectExplodeTrueObjectAllOf: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object TestQueryStyleDeepObjectExplodeTrueObjectAllOfQueryObjectParameter [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]

testQueryStyleFormExplodeFalseArrayInteger()

testQueryStyleFormExplodeFalseArrayInteger($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = array(56); // int[]

try {
    $result = $apiInstance->testQueryStyleFormExplodeFalseArrayInteger($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleFormExplodeFalseArrayInteger: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object int[] [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]

testQueryStyleFormExplodeFalseArrayString()

testQueryStyleFormExplodeFalseArrayString($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = array('query_object_example'); // string[]

try {
    $result = $apiInstance->testQueryStyleFormExplodeFalseArrayString($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleFormExplodeFalseArrayString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object 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]

testQueryStyleFormExplodeTrueArrayString()

testQueryStyleFormExplodeTrueArrayString($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = new \OpenAPI\Client\Model\TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter(); // TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter

try {
    $result = $apiInstance->testQueryStyleFormExplodeTrueArrayString($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleFormExplodeTrueArrayString: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object TestQueryStyleFormExplodeTrueArrayStringQueryObjectParameter [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]

testQueryStyleFormExplodeTrueObject()

testQueryStyleFormExplodeTrueObject($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = new \OpenAPI\Client\Model\Pet(); // Pet

try {
    $result = $apiInstance->testQueryStyleFormExplodeTrueObject($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleFormExplodeTrueObject: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object Pet [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]

testQueryStyleFormExplodeTrueObjectAllOf()

testQueryStyleFormExplodeTrueObjectAllOf($query_object): string

Test query parameter(s)

Test query parameter(s)

Example

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



$apiInstance = new OpenAPI\Client\Api\QueryApi(
    // 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()
);
$query_object = new \OpenAPI\Client\Model\DataQuery(); // DataQuery

try {
    $result = $apiInstance->testQueryStyleFormExplodeTrueObjectAllOf($query_object);
    print_r($result);
} catch (Exception $e) {
    echo 'Exception when calling QueryApi->testQueryStyleFormExplodeTrueObjectAllOf: ', $e->getMessage(), PHP_EOL;
}

Parameters

Name Type Description Notes
query_object DataQuery [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]