mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2025-10-14 08:23:45 +00:00
Update php related samples (#375)
* Update php client (OAS3) bin/openapi3/php-petstore.sh * Update symfony server (OAS2) bin/php-symfony-petstore.sh * Lumen: remove 'swagger' * Update lumen server (OAS2) * Update php client (security): deleted 'SwaggerClient-php' folder * Update TEST_DIR * Update php client tests (OAS3) bin/openapi3/php-petstore.sh * Update php client (OAS2) bin/php-petstore.sh * Fix * Fix lumen -> php-lumen * Update lumen server (security) * Delete moved files currently it will generate into under 'lib' folder. * Fix slim -> php-slim * Update slim server (security) bin/security/slim-petstore-server.sh * Fix * Update dot files
This commit is contained in:
parent
d35bf1a388
commit
872dd546f4
4
.gitignore
vendored
4
.gitignore
vendored
@ -84,8 +84,8 @@ samples/client/petstore/java/retrofit2/hello.txt
|
|||||||
samples/client/petstore/java/feign/hello.txt
|
samples/client/petstore/java/feign/hello.txt
|
||||||
|
|
||||||
#PHP
|
#PHP
|
||||||
samples/client/petstore/php/SwaggerClient-php/composer.lock
|
samples/client/petstore/php/OpenAPIToolsClient-php/composer.lock
|
||||||
samples/client/petstore/php/SwaggerClient-php/vendor/
|
samples/client/petstore/php/OpenAPIToolsClient-php/vendor/
|
||||||
samples/client/petstore/silex/SwaggerServer/composer.lock
|
samples/client/petstore/silex/SwaggerServer/composer.lock
|
||||||
samples/client/petstore/silex/SwaggerServer/venodr/
|
samples/client/petstore/silex/SwaggerServer/venodr/
|
||||||
**/vendor/
|
**/vendor/
|
||||||
|
@ -9,7 +9,7 @@ cache:
|
|||||||
- $HOME/.ivy2
|
- $HOME/.ivy2
|
||||||
- $HOME/.gradle/caches/
|
- $HOME/.gradle/caches/
|
||||||
- $HOME/.gradle/wrapper/
|
- $HOME/.gradle/wrapper/
|
||||||
- $HOME/samples/client/petstore/php/SwaggerClient-php/vendor
|
- $HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor
|
||||||
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
||||||
- $HOME/samples/client/petstore/python/.venv/
|
- $HOME/samples/client/petstore/python/.venv/
|
||||||
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
||||||
|
@ -8,7 +8,7 @@ cache:
|
|||||||
- $HOME/.gradle/caches/
|
- $HOME/.gradle/caches/
|
||||||
- $HOME/.gradle/wrapper/
|
- $HOME/.gradle/wrapper/
|
||||||
- $HOME/.stack
|
- $HOME/.stack
|
||||||
- $HOME/samples/client/petstore/php/SwaggerClient-php/vendor
|
- $HOME/samples/client/petstore/php/OpenAPIToolsClient-php/vendor
|
||||||
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
- $HOME/samples/client/petstore/ruby/venodr/bundle
|
||||||
- $HOME/samples/client/petstore/python/.venv/
|
- $HOME/samples/client/petstore/python/.venv/
|
||||||
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
- $HOME/samples/client/petstore/typescript-node/npm/node_modules
|
||||||
|
@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# cleanup tests
|
# cleanup tests
|
||||||
TEST_DIR="./samples/openapi3/client/petstore/php/SwaggerClient-php/test"
|
TEST_DIR="./samples/openapi3/client/petstore/php/OpenAPIToolsClient-php/test"
|
||||||
if [ -d $TEST_DIR ]; then
|
if [ -d $TEST_DIR ]; then
|
||||||
rm -rf $TEST_DIR
|
rm -rf $TEST_DIR
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# cleanup tests
|
# cleanup tests
|
||||||
TEST_DIR="./samples/client/petstore-security-test/php/SwaggerClient-php/test"
|
TEST_DIR="./samples/client/petstore-security-test/php/OpenAPIToolsClient-php/test"
|
||||||
if [ -d $TEST_DIR ]; then
|
if [ -d $TEST_DIR ]; then
|
||||||
rm -rf $TEST_DIR
|
rm -rf $TEST_DIR
|
||||||
fi
|
fi
|
||||||
|
@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# cleanup tests
|
# cleanup tests
|
||||||
TEST_DIR="./samples/client/petstore/php/SwaggerClient-php/test"
|
TEST_DIR="./samples/client/petstore/php/OpenAPIToolsClient-php/test"
|
||||||
if [ -d $TEST_DIR ]; then
|
if [ -d $TEST_DIR ]; then
|
||||||
rm -rf $TEST_DIR
|
rm -rf $TEST_DIR
|
||||||
fi
|
fi
|
||||||
|
@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ generate -t modules/openapi-generator/src/main/resources/lumen -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -l lumen -o samples/server/petstore-security-test/lumen"
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/lumen -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -l php-lumen -o samples/server/petstore-security-test/lumen"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -26,7 +26,7 @@ then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# cleanup tests
|
# cleanup tests
|
||||||
TEST_DIR="./samples/client/petstore-security-test/php/SwaggerClient-php/test"
|
TEST_DIR="./samples/client/petstore-security-test/php/OpenAPIToolsClient-php/test"
|
||||||
if [ -d $TEST_DIR ]; then
|
if [ -d $TEST_DIR ]; then
|
||||||
rm -rf $TEST_DIR
|
rm -rf $TEST_DIR
|
||||||
fi
|
fi
|
||||||
|
@ -27,6 +27,6 @@ fi
|
|||||||
|
|
||||||
# if you've executed sbt assembly previously it will use that instead.
|
# if you've executed sbt assembly previously it will use that instead.
|
||||||
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
export JAVA_OPTS="${JAVA_OPTS} -XX:MaxPermSize=256M -Xmx1024M -DloggerPath=conf/log4j.properties"
|
||||||
ags="$@ generate -t modules/openapi-generator/src/main/resources/slim -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -l slim -o samples/server/petstore-security-test/slim"
|
ags="$@ generate -t modules/openapi-generator/src/main/resources/slim -i modules/openapi-generator/src/test/resources/2_0/petstore-security-test.yaml -l php-slim -o samples/server/petstore-security-test/slim"
|
||||||
|
|
||||||
java $JAVA_OPTS -jar $executable $ags
|
java $JAVA_OPTS -jar $executable $ags
|
||||||
|
@ -124,14 +124,12 @@ public class PhpLumenServerCodegen extends AbstractPhpCodegen {
|
|||||||
for (CodegenOperation op : operations) {
|
for (CodegenOperation op : operations) {
|
||||||
op.httpMethod = op.httpMethod.toLowerCase();
|
op.httpMethod = op.httpMethod.toLowerCase();
|
||||||
// check to see if the path contains ".", which is not supported by Lumen
|
// check to see if the path contains ".", which is not supported by Lumen
|
||||||
// ref: https://github.com/swagger-api/swagger-codegen/issues/6897
|
|
||||||
if (op.path != null && op.path.contains(".")) {
|
if (op.path != null && op.path.contains(".")) {
|
||||||
throw new IllegalArgumentException("'.' (dot) is not supported by PHP Lumen. Please refer to https://github.com/swagger-api/swagger-codegen/issues/6897 for more info.");
|
throw new IllegalArgumentException("'.' (dot) is not supported by PHP Lumen.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// sort the endpoints in ascending to avoid the route priority issure.
|
// sort the endpoints in ascending to avoid the route priority issure.
|
||||||
// https://github.com/swagger-api/swagger-codegen/issues/2643
|
|
||||||
Collections.sort(operations, new Comparator<CodegenOperation>() {
|
Collections.sort(operations, new Comparator<CodegenOperation>() {
|
||||||
@Override
|
@Override
|
||||||
public int compare(CodegenOperation lhs, CodegenOperation rhs) {
|
public int compare(CodegenOperation lhs, CodegenOperation rhs) {
|
||||||
|
@ -43,7 +43,7 @@ import java.util.Map;
|
|||||||
|
|
||||||
public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfig {
|
public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfig {
|
||||||
protected String invokerPackage = "org.openapitools.client"; // default for Java and Android
|
protected String invokerPackage = "org.openapitools.client"; // default for Java and Android
|
||||||
protected String phpInvokerPackage = "Swagger\\Client"; // default for PHP
|
protected String phpInvokerPackage = "OpenAPITools\\Client"; // default for PHP
|
||||||
protected String packageName = "IO.Swagger"; // default for C#
|
protected String packageName = "IO.Swagger"; // default for C#
|
||||||
protected String groupId = "org.openapitools";
|
protected String groupId = "org.openapitools";
|
||||||
protected String artifactId = "openapi-client";
|
protected String artifactId = "openapi-client";
|
||||||
|
@ -12,7 +12,7 @@ require_once(__DIR__ . '/vendor/autoload.php');
|
|||||||
{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
{{phpInvokerPackage}}\Configuration::getDefaultConfiguration()->setAccessToken('YOUR_ACCESS_TOKEN');{{/isOAuth}}{{/authMethods}}
|
||||||
{{/hasAuthMethods}}
|
{{/hasAuthMethods}}
|
||||||
|
|
||||||
$api_instance = new Swagger\Client\Api\{{classname}}();
|
$api_instance = new OpenAPITools\Client\Api\{{classname}}();
|
||||||
{{#allParams}}${{paramName}} = {{{example}}}; // {{{dataType}}} | {{{unescapedDescription}}}
|
{{#allParams}}${{paramName}} = {{{example}}}; // {{{dataType}}} | {{{unescapedDescription}}}
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -5,7 +5,8 @@
|
|||||||
{{/artifactVersion}}
|
{{/artifactVersion}}
|
||||||
"description": "{{description}}",
|
"description": "{{description}}",
|
||||||
"keywords": [
|
"keywords": [
|
||||||
"swagger",
|
"openapi",
|
||||||
|
"openapitools",
|
||||||
"php",
|
"php",
|
||||||
"sdk",
|
"sdk",
|
||||||
"api"
|
"api"
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||||
* https://github.com/swagger-api/swagger-codegen.git
|
* https://openapi-generator.tech
|
||||||
* Do not edit the class manually.
|
* Do not edit the class manually.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
# Swagger generated server
|
# OpenAPITools generated server
|
||||||
|
|
||||||
## Overview
|
## Overview
|
||||||
This server was generated by the [swagger-codegen](https://github.com/swagger-api/swagger-codegen) project. By using the
|
This server was generated by the [OpenAPI Generator](https://openapi-generator.tech) project. By using the
|
||||||
[OpenAPI-Spec](https://github.com/swagger-api/swagger-core/wiki) from a remote server, you can easily generate a server stub. This
|
[OpenAPI-Spec](https://github.com/OAI/OpenAPI-Specification/) from a remote server, you can easily generate a server stub. This
|
||||||
is an example of building a PHP server.
|
is an example of building a PHP server.
|
||||||
|
|
||||||
This example uses the [Lumen Framework](http://lumen.laravel.com/). To see how to make this your own, please take a look at the template here:
|
This example uses the [Lumen Framework](http://lumen.laravel.com/). To see how to make this your own, please take a look at the template here:
|
||||||
|
|
||||||
[TEMPLATES](https://github.com/swagger-api/swagger-codegen/tree/master/modules/swagger-codegen/src/main/resources/slim/)
|
[TEMPLATES](https://github.com/openapitools/openapi-generator/tree/master/modules/openapi-generator/src/main/resources/lumen/)
|
||||||
|
|
||||||
## Installation & Usage
|
## Installation & Usage
|
||||||
### Composer
|
### Composer
|
||||||
|
@ -30,13 +30,13 @@ public class PhpClientOptionsProvider implements OptionsProvider {
|
|||||||
public static final String SORT_PARAMS_VALUE = "false";
|
public static final String SORT_PARAMS_VALUE = "false";
|
||||||
public static final String ENSURE_UNIQUE_PARAMS_VALUE = "true";
|
public static final String ENSURE_UNIQUE_PARAMS_VALUE = "true";
|
||||||
public static final String VARIABLE_NAMING_CONVENTION_VALUE = "snake_case";
|
public static final String VARIABLE_NAMING_CONVENTION_VALUE = "snake_case";
|
||||||
public static final String INVOKER_PACKAGE_VALUE = "Swagger\\Client\\Php";
|
public static final String INVOKER_PACKAGE_VALUE = "OpenAPITools\\Client\\Php";
|
||||||
public static final String PACKAGE_PATH_VALUE = "SwaggerClient-php";
|
public static final String PACKAGE_PATH_VALUE = "OpenAPIToolsClient-php";
|
||||||
public static final String SRC_BASE_PATH_VALUE = "libPhp";
|
public static final String SRC_BASE_PATH_VALUE = "libPhp";
|
||||||
public static final String COMPOSER_VENDOR_NAME_VALUE = "swaggerPhp";
|
public static final String COMPOSER_VENDOR_NAME_VALUE = "openAPIToolsPhp";
|
||||||
public static final String COMPOSER_PROJECT_NAME_VALUE = "swagger-client-php";
|
public static final String COMPOSER_PROJECT_NAME_VALUE = "openapi-tools-client-php";
|
||||||
public static final String GIT_USER_ID_VALUE = "gitSwaggerPhp";
|
public static final String GIT_USER_ID_VALUE = "gitOpenAPIToolsPhp";
|
||||||
public static final String GIT_REPO_ID_VALUE = "git-swagger-client-php";
|
public static final String GIT_REPO_ID_VALUE = "git-openapi-tools-client-php";
|
||||||
public static final String ARTIFACT_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
public static final String ARTIFACT_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
||||||
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
||||||
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
||||||
|
@ -33,8 +33,8 @@ public class PhpLumenServerOptionsProvider implements OptionsProvider {
|
|||||||
public static final String INVOKER_PACKAGE_VALUE = "lumen";
|
public static final String INVOKER_PACKAGE_VALUE = "lumen";
|
||||||
public static final String PACKAGE_PATH_VALUE = "php";
|
public static final String PACKAGE_PATH_VALUE = "php";
|
||||||
public static final String SRC_BASE_PATH_VALUE = "libPhp";
|
public static final String SRC_BASE_PATH_VALUE = "libPhp";
|
||||||
public static final String GIT_USER_ID_VALUE = "gitSwaggerPhp";
|
public static final String GIT_USER_ID_VALUE = "gitOpenAPIToolsPhp";
|
||||||
public static final String GIT_REPO_ID_VALUE = "git-swagger-php";
|
public static final String GIT_REPO_ID_VALUE = "git-openapi-tools-php";
|
||||||
public static final String ARTIFACT_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
public static final String ARTIFACT_VERSION_VALUE = "1.0.0-SNAPSHOT";
|
||||||
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
public static final String ALLOW_UNICODE_IDENTIFIERS_VALUE = "false";
|
||||||
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
public static final String PREPEND_FORM_OR_BODY_PARAMETERS_VALUE = "true";
|
||||||
|
2
pom.xml
2
pom.xml
@ -878,7 +878,7 @@
|
|||||||
<module>samples/client/petstore/groovy</module>
|
<module>samples/client/petstore/groovy</module>
|
||||||
<module>samples/client/petstore/rust</module>
|
<module>samples/client/petstore/rust</module>
|
||||||
<module>samples/client/petstore/perl</module>
|
<module>samples/client/petstore/perl</module>
|
||||||
<module>samples/client/petstore/php/SwaggerClient-php</module>
|
<module>samples/client/petstore/php/OpenAPIToolsClient-php</module>
|
||||||
<module>samples/client/petstore/scala</module>
|
<module>samples/client/petstore/scala</module>
|
||||||
<module>samples/client/petstore/akka-scala</module>
|
<module>samples/client/petstore/akka-scala</module>
|
||||||
<module>samples/client/petstore/javascript</module>
|
<module>samples/client/petstore/javascript</module>
|
||||||
|
@ -1,201 +0,0 @@
|
|||||||
Apache License
|
|
||||||
Version 2.0, January 2004
|
|
||||||
http://www.apache.org/licenses/
|
|
||||||
|
|
||||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
||||||
|
|
||||||
1. Definitions.
|
|
||||||
|
|
||||||
"License" shall mean the terms and conditions for use, reproduction,
|
|
||||||
and distribution as defined by Sections 1 through 9 of this document.
|
|
||||||
|
|
||||||
"Licensor" shall mean the copyright owner or entity authorized by
|
|
||||||
the copyright owner that is granting the License.
|
|
||||||
|
|
||||||
"Legal Entity" shall mean the union of the acting entity and all
|
|
||||||
other entities that control, are controlled by, or are under common
|
|
||||||
control with that entity. For the purposes of this definition,
|
|
||||||
"control" means (i) the power, direct or indirect, to cause the
|
|
||||||
direction or management of such entity, whether by contract or
|
|
||||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
||||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
||||||
|
|
||||||
"You" (or "Your") shall mean an individual or Legal Entity
|
|
||||||
exercising permissions granted by this License.
|
|
||||||
|
|
||||||
"Source" form shall mean the preferred form for making modifications,
|
|
||||||
including but not limited to software source code, documentation
|
|
||||||
source, and configuration files.
|
|
||||||
|
|
||||||
"Object" form shall mean any form resulting from mechanical
|
|
||||||
transformation or translation of a Source form, including but
|
|
||||||
not limited to compiled object code, generated documentation,
|
|
||||||
and conversions to other media types.
|
|
||||||
|
|
||||||
"Work" shall mean the work of authorship, whether in Source or
|
|
||||||
Object form, made available under the License, as indicated by a
|
|
||||||
copyright notice that is included in or attached to the work
|
|
||||||
(an example is provided in the Appendix below).
|
|
||||||
|
|
||||||
"Derivative Works" shall mean any work, whether in Source or Object
|
|
||||||
form, that is based on (or derived from) the Work and for which the
|
|
||||||
editorial revisions, annotations, elaborations, or other modifications
|
|
||||||
represent, as a whole, an original work of authorship. For the purposes
|
|
||||||
of this License, Derivative Works shall not include works that remain
|
|
||||||
separable from, or merely link (or bind by name) to the interfaces of,
|
|
||||||
the Work and Derivative Works thereof.
|
|
||||||
|
|
||||||
"Contribution" shall mean any work of authorship, including
|
|
||||||
the original version of the Work and any modifications or additions
|
|
||||||
to that Work or Derivative Works thereof, that is intentionally
|
|
||||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
||||||
or by an individual or Legal Entity authorized to submit on behalf of
|
|
||||||
the copyright owner. For the purposes of this definition, "submitted"
|
|
||||||
means any form of electronic, verbal, or written communication sent
|
|
||||||
to the Licensor or its representatives, including but not limited to
|
|
||||||
communication on electronic mailing lists, source code control systems,
|
|
||||||
and issue tracking systems that are managed by, or on behalf of, the
|
|
||||||
Licensor for the purpose of discussing and improving the Work, but
|
|
||||||
excluding communication that is conspicuously marked or otherwise
|
|
||||||
designated in writing by the copyright owner as "Not a Contribution."
|
|
||||||
|
|
||||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
||||||
on behalf of whom a Contribution has been received by Licensor and
|
|
||||||
subsequently incorporated within the Work.
|
|
||||||
|
|
||||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
copyright license to reproduce, prepare Derivative Works of,
|
|
||||||
publicly display, publicly perform, sublicense, and distribute the
|
|
||||||
Work and such Derivative Works in Source or Object form.
|
|
||||||
|
|
||||||
3. Grant of Patent License. Subject to the terms and conditions of
|
|
||||||
this License, each Contributor hereby grants to You a perpetual,
|
|
||||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
||||||
(except as stated in this section) patent license to make, have made,
|
|
||||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
||||||
where such license applies only to those patent claims licensable
|
|
||||||
by such Contributor that are necessarily infringed by their
|
|
||||||
Contribution(s) alone or by combination of their Contribution(s)
|
|
||||||
with the Work to which such Contribution(s) was submitted. If You
|
|
||||||
institute patent litigation against any entity (including a
|
|
||||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
||||||
or a Contribution incorporated within the Work constitutes direct
|
|
||||||
or contributory patent infringement, then any patent licenses
|
|
||||||
granted to You under this License for that Work shall terminate
|
|
||||||
as of the date such litigation is filed.
|
|
||||||
|
|
||||||
4. Redistribution. You may reproduce and distribute copies of the
|
|
||||||
Work or Derivative Works thereof in any medium, with or without
|
|
||||||
modifications, and in Source or Object form, provided that You
|
|
||||||
meet the following conditions:
|
|
||||||
|
|
||||||
(a) You must give any other recipients of the Work or
|
|
||||||
Derivative Works a copy of this License; and
|
|
||||||
|
|
||||||
(b) You must cause any modified files to carry prominent notices
|
|
||||||
stating that You changed the files; and
|
|
||||||
|
|
||||||
(c) You must retain, in the Source form of any Derivative Works
|
|
||||||
that You distribute, all copyright, patent, trademark, and
|
|
||||||
attribution notices from the Source form of the Work,
|
|
||||||
excluding those notices that do not pertain to any part of
|
|
||||||
the Derivative Works; and
|
|
||||||
|
|
||||||
(d) If the Work includes a "NOTICE" text file as part of its
|
|
||||||
distribution, then any Derivative Works that You distribute must
|
|
||||||
include a readable copy of the attribution notices contained
|
|
||||||
within such NOTICE file, excluding those notices that do not
|
|
||||||
pertain to any part of the Derivative Works, in at least one
|
|
||||||
of the following places: within a NOTICE text file distributed
|
|
||||||
as part of the Derivative Works; within the Source form or
|
|
||||||
documentation, if provided along with the Derivative Works; or,
|
|
||||||
within a display generated by the Derivative Works, if and
|
|
||||||
wherever such third-party notices normally appear. The contents
|
|
||||||
of the NOTICE file are for informational purposes only and
|
|
||||||
do not modify the License. You may add Your own attribution
|
|
||||||
notices within Derivative Works that You distribute, alongside
|
|
||||||
or as an addendum to the NOTICE text from the Work, provided
|
|
||||||
that such additional attribution notices cannot be construed
|
|
||||||
as modifying the License.
|
|
||||||
|
|
||||||
You may add Your own copyright statement to Your modifications and
|
|
||||||
may provide additional or different license terms and conditions
|
|
||||||
for use, reproduction, or distribution of Your modifications, or
|
|
||||||
for any such Derivative Works as a whole, provided Your use,
|
|
||||||
reproduction, and distribution of the Work otherwise complies with
|
|
||||||
the conditions stated in this License.
|
|
||||||
|
|
||||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
||||||
any Contribution intentionally submitted for inclusion in the Work
|
|
||||||
by You to the Licensor shall be under the terms and conditions of
|
|
||||||
this License, without any additional terms or conditions.
|
|
||||||
Notwithstanding the above, nothing herein shall supersede or modify
|
|
||||||
the terms of any separate license agreement you may have executed
|
|
||||||
with Licensor regarding such Contributions.
|
|
||||||
|
|
||||||
6. Trademarks. This License does not grant permission to use the trade
|
|
||||||
names, trademarks, service marks, or product names of the Licensor,
|
|
||||||
except as required for reasonable and customary use in describing the
|
|
||||||
origin of the Work and reproducing the content of the NOTICE file.
|
|
||||||
|
|
||||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
||||||
agreed to in writing, Licensor provides the Work (and each
|
|
||||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
||||||
implied, including, without limitation, any warranties or conditions
|
|
||||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
||||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
||||||
appropriateness of using or redistributing the Work and assume any
|
|
||||||
risks associated with Your exercise of permissions under this License.
|
|
||||||
|
|
||||||
8. Limitation of Liability. In no event and under no legal theory,
|
|
||||||
whether in tort (including negligence), contract, or otherwise,
|
|
||||||
unless required by applicable law (such as deliberate and grossly
|
|
||||||
negligent acts) or agreed to in writing, shall any Contributor be
|
|
||||||
liable to You for damages, including any direct, indirect, special,
|
|
||||||
incidental, or consequential damages of any character arising as a
|
|
||||||
result of this License or out of the use or inability to use the
|
|
||||||
Work (including but not limited to damages for loss of goodwill,
|
|
||||||
work stoppage, computer failure or malfunction, or any and all
|
|
||||||
other commercial damages or losses), even if such Contributor
|
|
||||||
has been advised of the possibility of such damages.
|
|
||||||
|
|
||||||
9. Accepting Warranty or Additional Liability. While redistributing
|
|
||||||
the Work or Derivative Works thereof, You may choose to offer,
|
|
||||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
||||||
or other liability obligations and/or rights consistent with this
|
|
||||||
License. However, in accepting such obligations, You may act only
|
|
||||||
on Your own behalf and on Your sole responsibility, not on behalf
|
|
||||||
of any other Contributor, and only if You agree to indemnify,
|
|
||||||
defend, and hold each Contributor harmless for any liability
|
|
||||||
incurred by, or claims asserted against, such Contributor by reason
|
|
||||||
of your accepting any such warranty or additional liability.
|
|
||||||
|
|
||||||
END OF TERMS AND CONDITIONS
|
|
||||||
|
|
||||||
APPENDIX: How to apply the Apache License to your work.
|
|
||||||
|
|
||||||
To apply the Apache License to your work, attach the following
|
|
||||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
|
||||||
replaced with your own identifying information. (Don't include
|
|
||||||
the brackets!) The text should be enclosed in the appropriate
|
|
||||||
comment syntax for the file format. We also recommend that a
|
|
||||||
file or class name and description of purpose be included on the
|
|
||||||
same "printed page" as the copyright notice for easier
|
|
||||||
identification within third-party archives.
|
|
||||||
|
|
||||||
Copyright {yyyy} {name of copyright owner}
|
|
||||||
|
|
||||||
Licensed under the Apache License, Version 2.0 (the "License");
|
|
||||||
you may not use this file except in compliance with the License.
|
|
||||||
You may obtain a copy of the License at
|
|
||||||
|
|
||||||
http://www.apache.org/licenses/LICENSE-2.0
|
|
||||||
|
|
||||||
Unless required by applicable law or agreed to in writing, software
|
|
||||||
distributed under the License is distributed on an "AS IS" BASIS,
|
|
||||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
||||||
See the License for the specific language governing permissions and
|
|
||||||
limitations under the License.
|
|
@ -1,54 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
*
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
* Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* An example of a project-specific implementation.
|
|
||||||
*
|
|
||||||
* After registering this autoload function with SPL, the following line
|
|
||||||
* would cause the function to attempt to load the \Swagger\Client\Baz\Qux class
|
|
||||||
* from /path/to/project/lib/Baz/Qux.php:
|
|
||||||
*
|
|
||||||
* new \Swagger\Client\Baz\Qux;
|
|
||||||
*
|
|
||||||
* @param string $class The fully-qualified class name.
|
|
||||||
*
|
|
||||||
* @return void
|
|
||||||
*/
|
|
||||||
spl_autoload_register(function ($class) {
|
|
||||||
|
|
||||||
// project-specific namespace prefix
|
|
||||||
$prefix = 'Swagger\\Client\\';
|
|
||||||
|
|
||||||
// base directory for the namespace prefix
|
|
||||||
$base_dir = __DIR__ . '/lib/';
|
|
||||||
|
|
||||||
// does the class use the namespace prefix?
|
|
||||||
$len = strlen($prefix);
|
|
||||||
if (strncmp($prefix, $class, $len) !== 0) {
|
|
||||||
// no, move to the next registered autoloader
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
// get the relative class name
|
|
||||||
$relative_class = substr($class, $len);
|
|
||||||
|
|
||||||
// replace the namespace prefix with the base directory, replace namespace
|
|
||||||
// separators with directory separators in the relative class name, append
|
|
||||||
// with .php
|
|
||||||
$file = $base_dir . str_replace('\\', '/', $relative_class) . '.php';
|
|
||||||
|
|
||||||
// if the file exists, require it
|
|
||||||
if (file_exists($file)) {
|
|
||||||
require $file;
|
|
||||||
}
|
|
||||||
});
|
|
File diff suppressed because it is too large
Load Diff
@ -1,371 +0,0 @@
|
|||||||
<?php
|
|
||||||
/**
|
|
||||||
* ApiClient
|
|
||||||
*
|
|
||||||
* PHP version 5
|
|
||||||
*
|
|
||||||
* @category Class
|
|
||||||
* @package Swagger\Client
|
|
||||||
* @author Swagger Codegen team
|
|
||||||
* @link https://github.com/swagger-api/swagger-codegen
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Swagger Petstore *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
*
|
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\ *_/ ' \" =end --
|
|
||||||
*
|
|
||||||
* OpenAPI spec version: 1.0.0 *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
* Contact: apiteam@swagger.io *_/ ' \" =end -- \\r\\n \\n \\r
|
|
||||||
* Generated by: https://github.com/swagger-api/swagger-codegen.git
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
/**
|
|
||||||
* NOTE: This class is auto generated by the swagger code generator program.
|
|
||||||
* https://github.com/swagger-api/swagger-codegen
|
|
||||||
* Do not edit the class manually.
|
|
||||||
*/
|
|
||||||
|
|
||||||
namespace Swagger\Client;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* ApiClient Class Doc Comment
|
|
||||||
*
|
|
||||||
* @category Class
|
|
||||||
* @package Swagger\Client
|
|
||||||
* @author Swagger Codegen team
|
|
||||||
* @link https://github.com/swagger-api/swagger-codegen
|
|
||||||
*/
|
|
||||||
class ApiClient
|
|
||||||
{
|
|
||||||
public static $PATCH = "PATCH";
|
|
||||||
public static $POST = "POST";
|
|
||||||
public static $GET = "GET";
|
|
||||||
public static $HEAD = "HEAD";
|
|
||||||
public static $OPTIONS = "OPTIONS";
|
|
||||||
public static $PUT = "PUT";
|
|
||||||
public static $DELETE = "DELETE";
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Configuration
|
|
||||||
*
|
|
||||||
* @var Configuration
|
|
||||||
*/
|
|
||||||
protected $config;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Object Serializer
|
|
||||||
*
|
|
||||||
* @var ObjectSerializer
|
|
||||||
*/
|
|
||||||
protected $serializer;
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Constructor of the class
|
|
||||||
*
|
|
||||||
* @param Configuration $config config for this ApiClient
|
|
||||||
*/
|
|
||||||
public function __construct(\Swagger\Client\Configuration $config = null)
|
|
||||||
{
|
|
||||||
if ($config === null) {
|
|
||||||
$config = Configuration::getDefaultConfiguration();
|
|
||||||
}
|
|
||||||
|
|
||||||
$this->config = $config;
|
|
||||||
$this->serializer = new ObjectSerializer();
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the config
|
|
||||||
*
|
|
||||||
* @return Configuration
|
|
||||||
*/
|
|
||||||
public function getConfig()
|
|
||||||
{
|
|
||||||
return $this->config;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get the serializer
|
|
||||||
*
|
|
||||||
* @return ObjectSerializer
|
|
||||||
*/
|
|
||||||
public function getSerializer()
|
|
||||||
{
|
|
||||||
return $this->serializer;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Get API key (with prefix if set)
|
|
||||||
*
|
|
||||||
* @param string $apiKeyIdentifier name of apikey
|
|
||||||
*
|
|
||||||
* @return string API key with the prefix
|
|
||||||
*/
|
|
||||||
public function getApiKeyWithPrefix($apiKeyIdentifier)
|
|
||||||
{
|
|
||||||
$prefix = $this->config->getApiKeyPrefix($apiKeyIdentifier);
|
|
||||||
$apiKey = $this->config->getApiKey($apiKeyIdentifier);
|
|
||||||
|
|
||||||
if (!isset($apiKey)) {
|
|
||||||
return null;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($prefix)) {
|
|
||||||
$keyWithPrefix = $prefix." ".$apiKey;
|
|
||||||
} else {
|
|
||||||
$keyWithPrefix = $apiKey;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $keyWithPrefix;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Make the HTTP call (Sync)
|
|
||||||
*
|
|
||||||
* @param string $resourcePath path to method endpoint
|
|
||||||
* @param string $method method to call
|
|
||||||
* @param array $queryParams parameters to be place in query URL
|
|
||||||
* @param array $postData parameters to be placed in POST body
|
|
||||||
* @param array $headerParams parameters to be place in request header
|
|
||||||
* @param string $responseType expected response type of the endpoint
|
|
||||||
* @param string $endpointPath path to method endpoint before expanding parameters
|
|
||||||
*
|
|
||||||
* @throws \Swagger\Client\ApiException on a non 2xx response
|
|
||||||
* @return mixed
|
|
||||||
*/
|
|
||||||
public function callApi($resourcePath, $method, $queryParams, $postData, $headerParams, $responseType = null, $endpointPath = null)
|
|
||||||
{
|
|
||||||
$headers = [];
|
|
||||||
|
|
||||||
// construct the http header
|
|
||||||
$headerParams = array_merge(
|
|
||||||
(array)$this->config->getDefaultHeaders(),
|
|
||||||
(array)$headerParams
|
|
||||||
);
|
|
||||||
|
|
||||||
foreach ($headerParams as $key => $val) {
|
|
||||||
$headers[] = "$key: $val";
|
|
||||||
}
|
|
||||||
|
|
||||||
// form data
|
|
||||||
if ($postData and in_array('Content-Type: application/x-www-form-urlencoded', $headers, true)) {
|
|
||||||
$postData = http_build_query($postData);
|
|
||||||
} elseif ((is_object($postData) or is_array($postData)) and !in_array('Content-Type: multipart/form-data', $headers, true)) { // json model
|
|
||||||
$postData = json_encode(\Swagger\Client\ObjectSerializer::sanitizeForSerialization($postData));
|
|
||||||
}
|
|
||||||
|
|
||||||
$url = $this->config->getHost() . $resourcePath;
|
|
||||||
|
|
||||||
$curl = curl_init();
|
|
||||||
// set timeout, if needed
|
|
||||||
if ($this->config->getCurlTimeout() !== 0) {
|
|
||||||
curl_setopt($curl, CURLOPT_TIMEOUT, $this->config->getCurlTimeout());
|
|
||||||
}
|
|
||||||
// set connect timeout, if needed
|
|
||||||
if ($this->config->getCurlConnectTimeout() != 0) {
|
|
||||||
curl_setopt($curl, CURLOPT_CONNECTTIMEOUT, $this->config->getCurlConnectTimeout());
|
|
||||||
}
|
|
||||||
|
|
||||||
// return the result on success, rather than just true
|
|
||||||
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
|
|
||||||
|
|
||||||
curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
|
|
||||||
|
|
||||||
// disable SSL verification, if needed
|
|
||||||
if ($this->config->getSSLVerification() === false) {
|
|
||||||
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 0);
|
|
||||||
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->config->getCurlProxyHost()) {
|
|
||||||
curl_setopt($curl, CURLOPT_PROXY, $this->config->getCurlProxyHost());
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->config->getCurlProxyPort()) {
|
|
||||||
curl_setopt($curl, CURLOPT_PROXYPORT, $this->config->getCurlProxyPort());
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->config->getCurlProxyType()) {
|
|
||||||
curl_setopt($curl, CURLOPT_PROXYTYPE, $this->config->getCurlProxyType());
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->config->getCurlProxyUser()) {
|
|
||||||
curl_setopt($curl, CURLOPT_PROXYUSERPWD, $this->config->getCurlProxyUser() . ':' .$this->config->getCurlProxyPassword());
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!empty($queryParams)) {
|
|
||||||
$url = ($url . '?' . http_build_query($queryParams));
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($this->config->getAllowEncoding()) {
|
|
||||||
curl_setopt($curl, CURLOPT_ENCODING, '');
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($method === self::$POST) {
|
|
||||||
curl_setopt($curl, CURLOPT_POST, true);
|
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
|
||||||
} elseif ($method === self::$HEAD) {
|
|
||||||
curl_setopt($curl, CURLOPT_NOBODY, true);
|
|
||||||
} elseif ($method === self::$OPTIONS) {
|
|
||||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "OPTIONS");
|
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
|
||||||
} elseif ($method === self::$PATCH) {
|
|
||||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PATCH");
|
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
|
||||||
} elseif ($method === self::$PUT) {
|
|
||||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PUT");
|
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
|
||||||
} elseif ($method === self::$DELETE) {
|
|
||||||
curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "DELETE");
|
|
||||||
curl_setopt($curl, CURLOPT_POSTFIELDS, $postData);
|
|
||||||
} elseif ($method !== self::$GET) {
|
|
||||||
throw new ApiException('Method ' . $method . ' is not recognized.');
|
|
||||||
}
|
|
||||||
curl_setopt($curl, CURLOPT_URL, $url);
|
|
||||||
|
|
||||||
// Set user agent
|
|
||||||
curl_setopt($curl, CURLOPT_USERAGENT, $this->config->getUserAgent());
|
|
||||||
|
|
||||||
// debugging for curl
|
|
||||||
if ($this->config->getDebug()) {
|
|
||||||
error_log("[DEBUG] HTTP Request body ~BEGIN~".PHP_EOL.print_r($postData, true).PHP_EOL."~END~".PHP_EOL, 3, $this->config->getDebugFile());
|
|
||||||
|
|
||||||
curl_setopt($curl, CURLOPT_VERBOSE, 1);
|
|
||||||
curl_setopt($curl, CURLOPT_STDERR, fopen($this->config->getDebugFile(), 'a'));
|
|
||||||
} else {
|
|
||||||
curl_setopt($curl, CURLOPT_VERBOSE, 0);
|
|
||||||
}
|
|
||||||
|
|
||||||
// obtain the HTTP response headers
|
|
||||||
curl_setopt($curl, CURLOPT_HEADER, 1);
|
|
||||||
|
|
||||||
// Make the request
|
|
||||||
$response = curl_exec($curl);
|
|
||||||
$http_header_size = curl_getinfo($curl, CURLINFO_HEADER_SIZE);
|
|
||||||
$http_header = $this->httpParseHeaders(substr($response, 0, $http_header_size));
|
|
||||||
$http_body = substr($response, $http_header_size);
|
|
||||||
$response_info = curl_getinfo($curl);
|
|
||||||
|
|
||||||
// debug HTTP response body
|
|
||||||
if ($this->config->getDebug()) {
|
|
||||||
error_log("[DEBUG] HTTP Response body ~BEGIN~".PHP_EOL.print_r($http_body, true).PHP_EOL."~END~".PHP_EOL, 3, $this->config->getDebugFile());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Handle the response
|
|
||||||
if ($response_info['http_code'] === 0) {
|
|
||||||
$curl_error_message = curl_error($curl);
|
|
||||||
|
|
||||||
// curl_exec can sometimes fail but still return a blank message from curl_error().
|
|
||||||
if (!empty($curl_error_message)) {
|
|
||||||
$error_message = "API call to $url failed: $curl_error_message";
|
|
||||||
} else {
|
|
||||||
$error_message = "API call to $url failed, but for an unknown reason. " .
|
|
||||||
"This could happen if you are disconnected from the network.";
|
|
||||||
}
|
|
||||||
|
|
||||||
$exception = new ApiException($error_message, 0, null, null);
|
|
||||||
$exception->setResponseObject($response_info);
|
|
||||||
throw $exception;
|
|
||||||
} elseif ($response_info['http_code'] >= 200 && $response_info['http_code'] <= 299) {
|
|
||||||
// return raw body if response is a file
|
|
||||||
if ($responseType === '\SplFileObject' || $responseType === 'string') {
|
|
||||||
return [$http_body, $response_info['http_code'], $http_header];
|
|
||||||
}
|
|
||||||
|
|
||||||
$data = json_decode($http_body);
|
|
||||||
if (json_last_error() > 0) { // if response is a string
|
|
||||||
$data = $http_body;
|
|
||||||
}
|
|
||||||
} else {
|
|
||||||
$data = json_decode($http_body);
|
|
||||||
if (json_last_error() > 0) { // if response is a string
|
|
||||||
$data = $http_body;
|
|
||||||
}
|
|
||||||
|
|
||||||
throw new ApiException(
|
|
||||||
"[".$response_info['http_code']."] Error connecting to the API ($url)",
|
|
||||||
$response_info['http_code'],
|
|
||||||
$http_header,
|
|
||||||
$data
|
|
||||||
);
|
|
||||||
}
|
|
||||||
return [$data, $response_info['http_code'], $http_header];
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the header 'Accept' based on an array of Accept provided
|
|
||||||
*
|
|
||||||
* @param string[] $accept Array of header
|
|
||||||
*
|
|
||||||
* @return string Accept (e.g. application/json)
|
|
||||||
*/
|
|
||||||
public function selectHeaderAccept($accept)
|
|
||||||
{
|
|
||||||
if (count($accept) === 0 or (count($accept) === 1 and $accept[0] === '')) {
|
|
||||||
return null;
|
|
||||||
} elseif (preg_grep("/application\/json/i", $accept)) {
|
|
||||||
return 'application/json';
|
|
||||||
} else {
|
|
||||||
return implode(',', $accept);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return the content type based on an array of content-type provided
|
|
||||||
*
|
|
||||||
* @param string[] $content_type Array fo content-type
|
|
||||||
*
|
|
||||||
* @return string Content-Type (e.g. application/json)
|
|
||||||
*/
|
|
||||||
public function selectHeaderContentType($content_type)
|
|
||||||
{
|
|
||||||
if (count($content_type) === 0 or (count($content_type) === 1 and $content_type[0] === '')) {
|
|
||||||
return 'application/json';
|
|
||||||
} elseif (preg_grep("/application\/json/i", $content_type)) {
|
|
||||||
return 'application/json';
|
|
||||||
} else {
|
|
||||||
return implode(',', $content_type);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Return an array of HTTP response headers
|
|
||||||
*
|
|
||||||
* @param string $raw_headers A string of raw HTTP response headers
|
|
||||||
*
|
|
||||||
* @return string[] Array of HTTP response heaers
|
|
||||||
*/
|
|
||||||
protected function httpParseHeaders($raw_headers)
|
|
||||||
{
|
|
||||||
// ref/credit: http://php.net/manual/en/function.http-parse-headers.php#112986
|
|
||||||
$headers = [];
|
|
||||||
$key = '';
|
|
||||||
|
|
||||||
foreach (explode("\n", $raw_headers) as $h) {
|
|
||||||
$h = explode(':', $h, 2);
|
|
||||||
|
|
||||||
if (isset($h[1])) {
|
|
||||||
if (!isset($headers[$h[0]])) {
|
|
||||||
$headers[$h[0]] = trim($h[1]);
|
|
||||||
} elseif (is_array($headers[$h[0]])) {
|
|
||||||
$headers[$h[0]] = array_merge($headers[$h[0]], [trim($h[1])]);
|
|
||||||
} else {
|
|
||||||
$headers[$h[0]] = array_merge([$headers[$h[0]]], [trim($h[1])]);
|
|
||||||
}
|
|
||||||
|
|
||||||
$key = $h[0];
|
|
||||||
} else {
|
|
||||||
if (substr($h[0], 0, 1) === "\t") {
|
|
||||||
$headers[$key] .= "\r\n\t".trim($h[0]);
|
|
||||||
} elseif (!$key) {
|
|
||||||
$headers[0] = trim($h[0]);
|
|
||||||
}
|
|
||||||
trim($h[0]);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
return $headers;
|
|
||||||
}
|
|
||||||
}
|
|
@ -1,59 +0,0 @@
|
|||||||
<project>
|
|
||||||
<modelVersion>4.0.0</modelVersion>
|
|
||||||
<groupId>com.wordnik</groupId>
|
|
||||||
<artifactId>PhpPetstoreClientSecurityTests</artifactId>
|
|
||||||
<packaging>pom</packaging>
|
|
||||||
<version>1.0-SNAPSHOT</version>
|
|
||||||
<name>PHP Swagger Petstore Security Client</name>
|
|
||||||
<build>
|
|
||||||
<plugins>
|
|
||||||
<plugin>
|
|
||||||
<artifactId>maven-dependency-plugin</artifactId>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<phase>package</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>copy-dependencies</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<outputDirectory>${project.build.directory}</outputDirectory>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
<plugin>
|
|
||||||
<groupId>org.codehaus.mojo</groupId>
|
|
||||||
<artifactId>exec-maven-plugin</artifactId>
|
|
||||||
<version>1.2.1</version>
|
|
||||||
<executions>
|
|
||||||
<execution>
|
|
||||||
<id>bundle-install</id>
|
|
||||||
<phase>pre-integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>composer</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>install</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
<execution>
|
|
||||||
<id>bundle-test</id>
|
|
||||||
<phase>integration-test</phase>
|
|
||||||
<goals>
|
|
||||||
<goal>exec</goal>
|
|
||||||
</goals>
|
|
||||||
<configuration>
|
|
||||||
<executable>vendor/bin/phpunit</executable>
|
|
||||||
<arguments>
|
|
||||||
<argument>test</argument>
|
|
||||||
</arguments>
|
|
||||||
</configuration>
|
|
||||||
</execution>
|
|
||||||
</executions>
|
|
||||||
</plugin>
|
|
||||||
</plugins>
|
|
||||||
</build>
|
|
||||||
</project>
|
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -0,0 +1,23 @@
|
|||||||
|
# OpenAPI Generator Ignore
|
||||||
|
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
|
||||||
|
|
||||||
|
# Use this file to prevent files from being overwritten by the generator.
|
||||||
|
# The patterns follow closely to .gitignore or .dockerignore.
|
||||||
|
|
||||||
|
# As an example, the C# client generator defines ApiClient.cs.
|
||||||
|
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
|
||||||
|
#ApiClient.cs
|
||||||
|
|
||||||
|
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
|
||||||
|
#foo/*/qux
|
||||||
|
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
|
||||||
|
#foo/**/qux
|
||||||
|
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
|
||||||
|
|
||||||
|
# You can also negate patterns with an exclamation (!).
|
||||||
|
# For example, you can ignore all files in a docs folder with the file extension .md:
|
||||||
|
#docs/*.md
|
||||||
|
# Then explicitly reverse the ignore rule for a single file:
|
||||||
|
#!docs/README.md
|
@ -180,6 +180,6 @@ Class | Method | HTTP request | Description
|
|||||||
|
|
||||||
## Author
|
## Author
|
||||||
|
|
||||||
apiteam@swagger.io
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -364,7 +364,7 @@ $enum_query_string_array = array('enum_query_string_array_example'); // string[]
|
|||||||
$enum_query_string = '-efg'; // string | Query parameter enum test (string)
|
$enum_query_string = '-efg'; // string | Query parameter enum test (string)
|
||||||
$enum_query_integer = 56; // int | Query parameter enum test (double)
|
$enum_query_integer = 56; // int | Query parameter enum test (double)
|
||||||
$enum_query_double = 3.4; // double | Query parameter enum test (double)
|
$enum_query_double = 3.4; // double | Query parameter enum test (double)
|
||||||
$enum_form_string_array = new \OpenAPITools\Client\Model\array(); // string[] | Form parameter enum test (string array)
|
$enum_form_string_array = '$'; // string[] | Form parameter enum test (string array)
|
||||||
$enum_form_string = '-efg'; // string | Form parameter enum test (string)
|
$enum_form_string = '-efg'; // string | Form parameter enum test (string)
|
||||||
|
|
||||||
try {
|
try {
|
||||||
@ -385,7 +385,7 @@ Name | Type | Description | Notes
|
|||||||
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to '-efg']
|
**enum_query_string** | **string**| Query parameter enum test (string) | [optional] [default to '-efg']
|
||||||
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
**enum_query_integer** | **int**| Query parameter enum test (double) | [optional]
|
||||||
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
|
**enum_query_double** | **double**| Query parameter enum test (double) | [optional]
|
||||||
**enum_form_string_array** | [**string[]**](../Model/array.md)| Form parameter enum test (string array) | [optional]
|
**enum_form_string_array** | **string[]**| Form parameter enum test (string array) | [optional] [default to '$']
|
||||||
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to '-efg']
|
**enum_form_string** | **string**| Form parameter enum test (string) | [optional] [default to '-efg']
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
@ -418,7 +418,7 @@ $apiInstance = new OpenAPITools\Client\Api\FakeApi(
|
|||||||
// This is optional, `GuzzleHttp\Client` will be used as default.
|
// This is optional, `GuzzleHttp\Client` will be used as default.
|
||||||
new GuzzleHttp\Client()
|
new GuzzleHttp\Client()
|
||||||
);
|
);
|
||||||
$request_body = array('key' => 'request_body_example'); // string | request body
|
$request_body = array('key' => 'request_body_example'); // map[string,string] | request body
|
||||||
|
|
||||||
try {
|
try {
|
||||||
$apiInstance->testInlineAdditionalProperties($request_body);
|
$apiInstance->testInlineAdditionalProperties($request_body);
|
||||||
@ -432,7 +432,7 @@ try {
|
|||||||
|
|
||||||
Name | Type | Description | Notes
|
Name | Type | Description | Notes
|
||||||
------------- | ------------- | ------------- | -------------
|
------------- | ------------- | ------------- | -------------
|
||||||
**request_body** | [**string**](../Model/string.md)| request body |
|
**request_body** | [**map[string,string]**](../Model/string.md)| request body |
|
||||||
|
|
||||||
### Return type
|
### Return type
|
||||||
|
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
@ -1743,14 +1743,14 @@ class FakeApi
|
|||||||
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
||||||
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
||||||
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
||||||
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
|
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
|
||||||
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
||||||
*
|
*
|
||||||
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return void
|
* @return void
|
||||||
*/
|
*/
|
||||||
public function testEnumParameters($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = null, $enum_form_string = '-efg')
|
public function testEnumParameters($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = '$', $enum_form_string = '-efg')
|
||||||
{
|
{
|
||||||
$this->testEnumParametersWithHttpInfo($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
$this->testEnumParametersWithHttpInfo($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
||||||
}
|
}
|
||||||
@ -1766,14 +1766,14 @@ class FakeApi
|
|||||||
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
||||||
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
||||||
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
||||||
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
|
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
|
||||||
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
||||||
*
|
*
|
||||||
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
* @return array of null, HTTP status code, HTTP response headers (array of strings)
|
||||||
*/
|
*/
|
||||||
public function testEnumParametersWithHttpInfo($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = null, $enum_form_string = '-efg')
|
public function testEnumParametersWithHttpInfo($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = '$', $enum_form_string = '-efg')
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->testEnumParametersRequest($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
$request = $this->testEnumParametersRequest($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
||||||
@ -1826,13 +1826,13 @@ class FakeApi
|
|||||||
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
||||||
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
||||||
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
||||||
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
|
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
|
||||||
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function testEnumParametersAsync($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = null, $enum_form_string = '-efg')
|
public function testEnumParametersAsync($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = '$', $enum_form_string = '-efg')
|
||||||
{
|
{
|
||||||
return $this->testEnumParametersAsyncWithHttpInfo($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string)
|
return $this->testEnumParametersAsyncWithHttpInfo($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string)
|
||||||
->then(
|
->then(
|
||||||
@ -1853,13 +1853,13 @@ class FakeApi
|
|||||||
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
||||||
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
||||||
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
||||||
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
|
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
|
||||||
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
*/
|
*/
|
||||||
public function testEnumParametersAsyncWithHttpInfo($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = null, $enum_form_string = '-efg')
|
public function testEnumParametersAsyncWithHttpInfo($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = '$', $enum_form_string = '-efg')
|
||||||
{
|
{
|
||||||
$returnType = '';
|
$returnType = '';
|
||||||
$request = $this->testEnumParametersRequest($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
$request = $this->testEnumParametersRequest($enum_header_string_array, $enum_header_string, $enum_query_string_array, $enum_query_string, $enum_query_integer, $enum_query_double, $enum_form_string_array, $enum_form_string);
|
||||||
@ -1896,13 +1896,13 @@ class FakeApi
|
|||||||
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_query_string Query parameter enum test (string) (optional, default to '-efg')
|
||||||
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
* @param int $enum_query_integer Query parameter enum test (double) (optional)
|
||||||
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
* @param double $enum_query_double Query parameter enum test (double) (optional)
|
||||||
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional)
|
* @param string[] $enum_form_string_array Form parameter enum test (string array) (optional, default to '$')
|
||||||
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
* @param string $enum_form_string Form parameter enum test (string) (optional, default to '-efg')
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
*/
|
*/
|
||||||
protected function testEnumParametersRequest($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = null, $enum_form_string = '-efg')
|
protected function testEnumParametersRequest($enum_header_string_array = null, $enum_header_string = '-efg', $enum_query_string_array = null, $enum_query_string = '-efg', $enum_query_integer = null, $enum_query_double = null, $enum_form_string_array = '$', $enum_form_string = '-efg')
|
||||||
{
|
{
|
||||||
|
|
||||||
$resourcePath = '/fake';
|
$resourcePath = '/fake';
|
||||||
@ -2021,7 +2021,7 @@ class FakeApi
|
|||||||
*
|
*
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param string $request_body request body (required)
|
* @param map[string,string] $request_body request body (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
@ -2037,7 +2037,7 @@ class FakeApi
|
|||||||
*
|
*
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param string $request_body request body (required)
|
* @param map[string,string] $request_body request body (required)
|
||||||
*
|
*
|
||||||
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
* @throws \OpenAPITools\Client\ApiException on non-2xx response
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
@ -2090,7 +2090,7 @@ class FakeApi
|
|||||||
*
|
*
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param string $request_body request body (required)
|
* @param map[string,string] $request_body request body (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
@ -2110,7 +2110,7 @@ class FakeApi
|
|||||||
*
|
*
|
||||||
* test inline additionalProperties
|
* test inline additionalProperties
|
||||||
*
|
*
|
||||||
* @param string $request_body request body (required)
|
* @param map[string,string] $request_body request body (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Promise\PromiseInterface
|
* @return \GuzzleHttp\Promise\PromiseInterface
|
||||||
@ -2146,7 +2146,7 @@ class FakeApi
|
|||||||
/**
|
/**
|
||||||
* Create request for operation 'testInlineAdditionalProperties'
|
* Create request for operation 'testInlineAdditionalProperties'
|
||||||
*
|
*
|
||||||
* @param string $request_body request body (required)
|
* @param map[string,string] $request_body request body (required)
|
||||||
*
|
*
|
||||||
* @throws \InvalidArgumentException
|
* @throws \InvalidArgumentException
|
||||||
* @return \GuzzleHttp\Psr7\Request
|
* @return \GuzzleHttp\Psr7\Request
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -10,12 +10,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
@ -11,12 +11,12 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Swagger Petstore
|
* OpenAPI Petstore
|
||||||
*
|
*
|
||||||
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
* This spec is mainly for testing Petstore server and contains fake endpoints, models. Please do not use this for any other purpose. Special characters: \" \\
|
||||||
*
|
*
|
||||||
* OpenAPI spec version: 1.0.0
|
* OpenAPI spec version: 1.0.0
|
||||||
* Contact: apiteam@swagger.io
|
*
|
||||||
* Generated by: https://openapi-generator.tech
|
* Generated by: https://openapi-generator.tech
|
||||||
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
* OpenAPI Generator version: 3.0.0-SNAPSHOT
|
||||||
*/
|
*/
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user