Update Scala gatling's default value (#390)

* update powershell script

* update powershell bin script (oas3)

* update html2 generator's default value

* update scala gatling default value
This commit is contained in:
William Cheng 2018-05-09 16:34:54 +08:00 committed by GitHub
parent 4ae1113c00
commit dcd26ece71
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
18 changed files with 186 additions and 211 deletions

View File

@ -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/powershell -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@" ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/3_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\OpenAPIClient $@"
java $JAVA_OPTS -jar $executable $ags java $JAVA_OPTS -jar $executable $ags

View File

@ -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/powershell -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\SwaggerClient $@" ags="generate -t modules/openapi-generator/src/main/resources/powershell -i modules/openapi-generator/src/test/resources/2_0/petstore.yaml -l powershell -o samples/client/petstore/powershell --additional-properties packageGuid=a27b908d-2a20-467f-bc32-af6f3a654ac5,csharpClientPath=\$ScriptDir\..\..\petstore\csharp\OpenAPIClient $@"
java ${JAVA_OPTS} -jar ${executable} ${ags} java ${JAVA_OPTS} -jar ${executable} ${ags}

View File

@ -96,12 +96,12 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
/** /**
* Api Package. Optional, if needed, this can be used in templates * Api Package. Optional, if needed, this can be used in templates
*/ */
apiPackage = "io.swagger.client.api"; apiPackage = "org.openapitools.client.api";
/** /**
* Model Package. Optional, if needed, this can be used in templates * Model Package. Optional, if needed, this can be used in templates
*/ */
modelPackage = "io.swagger.client.model"; modelPackage = "org.openapitools.client.model";
/** /**
* Additional Properties. These values can be passed to the templates and * Additional Properties. These values can be passed to the templates and
@ -305,9 +305,9 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
/** /**
* Creates all the necessary openapi vendor extensions and feeder files for gatling * Creates all the necessary openapi vendor extensions and feeder files for gatling
* *
* @param operation Swagger Operation * @param operation OpoenAPI Operation
* @param parameters Swagger Parameters * @param parameters OpenAPI Parameters
* @param parameterType Swagger Parameter Type * @param parameterType OpenAPI Parameter Type
*/ */
private void prepareGatlingData(Operation operation, Set<Parameter> parameters, String parameterType) { private void prepareGatlingData(Operation operation, Set<Parameter> parameters, String parameterType) {
if (parameters.size() > 0) { if (parameters.size() > 0) {

View File

@ -50,8 +50,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
protected String artifactVersion = "1.0.0"; protected String artifactVersion = "1.0.0";
protected String jsProjectName; protected String jsProjectName;
protected String jsModuleName; protected String jsModuleName;
protected String perlModuleName = "WWW::SwaggerClient"; protected String perlModuleName = "WWW::OPenAPIClient";
protected String pythonPackageName = "swagger_client"; protected String pythonPackageName = "openapi_client";
public StaticHtml2Generator() { public StaticHtml2Generator() {
super(); super();
@ -77,8 +77,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
additionalProperties.put("appName", "OpenAPI Sample"); additionalProperties.put("appName", "OpenAPI Sample");
additionalProperties.put("appDescription", "A sample openapi server"); additionalProperties.put("appDescription", "A sample openapi server");
additionalProperties.put("infoUrl", "https://helloreverb.com"); additionalProperties.put("infoUrl", "https://openapi-generator.tech");
additionalProperties.put("infoEmail", "hello@helloreverb.com"); additionalProperties.put("infoEmail", "contributors@openapitools.org");
additionalProperties.put("licenseInfo", "All rights reserved"); additionalProperties.put("licenseInfo", "All rights reserved");
additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html"); additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html");
additionalProperties.put(CodegenConstants.INVOKER_PACKAGE, invokerPackage); additionalProperties.put(CodegenConstants.INVOKER_PACKAGE, invokerPackage);
@ -161,7 +161,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
// default values // default values
if (StringUtils.isBlank(jsProjectName)) { if (StringUtils.isBlank(jsProjectName)) {
jsProjectName = "swagger-js-client"; jsProjectName = "openapi-js-client";
} }
if (StringUtils.isBlank(jsModuleName)) { if (StringUtils.isBlank(jsModuleName)) {
jsModuleName = camelize(underscore(jsProjectName)); jsModuleName = camelize(underscore(jsProjectName));

View File

@ -38,7 +38,7 @@ function Get-FunctionsToExport {
} }
$ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path $ScriptDir = Split-Path $script:MyInvocation.MyCommand.Path
$ClientPath = ("$ScriptDir\..\..\petstore\csharp\SwaggerClient" | Resolve-Path).ProviderPath $ClientPath = ("$ScriptDir\..\..\petstore\csharp\OpenAPIClient" | Resolve-Path).ProviderPath
$FunctionPath = 'API', 'Model' | ForEach-Object {Join-Path "$ScriptDir\src\Org.OpenAPITools\" $_} $FunctionPath = 'API', 'Model' | ForEach-Object {Join-Path "$ScriptDir\src\Org.OpenAPITools\" $_}
$BinPath = "$ScriptDir\src\Org.OpenAPITools\Bin" $BinPath = "$ScriptDir\src\Org.OpenAPITools\Bin"

View File

@ -14,7 +14,7 @@ This PowerShell module is automatically generated by the [OpenAPI Generator](htt
<a name="dependencies"></a> <a name="dependencies"></a>
## Dependencies ## Dependencies
- C# API client generated by OpenAPI Generator AND should be located in $ScriptDir\..\..\petstore\csharp\SwaggerClient as stated in Build.ps1 - C# API client generated by OpenAPI Generator AND should be located in $ScriptDir\..\..\petstore\csharp\OpenAPIClient as stated in Build.ps1
<a name="installation"></a> <a name="installation"></a>
## Installation ## Installation

View File

@ -1 +1 @@
2.4.0-SNAPSHOT 3.0.0-SNAPSHOT

View File

@ -1,5 +1,5 @@
plugins { plugins {
id 'com.github.lkishalmi.gatling' version '0.4.1' id 'com.github.lkishalmi.gatling' version '0.7.1'
} }
repositories { repositories {

View File

@ -1,6 +1,6 @@
package io.swagger.client.api package org.openapitools.client.api
import io.swagger.client.model._ import org.openapitools.client.model._
import com.typesafe.config.ConfigFactory import com.typesafe.config.ConfigFactory
import io.gatling.core.Predef._ import io.gatling.core.Predef._
@ -68,26 +68,20 @@ class PetApiSimulation extends Simulation {
val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]() val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]()
// Set up CSV feeders // Set up CSV feeders
val addPetBodyFeeder = csv(userDataDirectory + File.separator + "addPet-bodyParams.csv", escapeChar = '\\').random
val deletePetHEADERFeeder = csv(userDataDirectory + File.separator + "deletePet-headerParams.csv").random val deletePetHEADERFeeder = csv(userDataDirectory + File.separator + "deletePet-headerParams.csv").random
val deletePetPATHFeeder = csv(userDataDirectory + File.separator + "deletePet-pathParams.csv").random val deletePetPATHFeeder = csv(userDataDirectory + File.separator + "deletePet-pathParams.csv").random
val findPetsByStatusQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByStatus-queryParams.csv").random val findPetsByStatusQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByStatus-queryParams.csv").random
val findPetsByTagsQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByTags-queryParams.csv").random val findPetsByTagsQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByTags-queryParams.csv").random
val getPetByIdPATHFeeder = csv(userDataDirectory + File.separator + "getPetById-pathParams.csv").random val getPetByIdPATHFeeder = csv(userDataDirectory + File.separator + "getPetById-pathParams.csv").random
val updatePetBodyFeeder = csv(userDataDirectory + File.separator + "updatePet-bodyParams.csv", escapeChar = '\\').random
val updatePetWithFormFORMFeeder = csv(userDataDirectory + File.separator + "updatePetWithForm-formParams.csv").random
val updatePetWithFormPATHFeeder = csv(userDataDirectory + File.separator + "updatePetWithForm-pathParams.csv").random val updatePetWithFormPATHFeeder = csv(userDataDirectory + File.separator + "updatePetWithForm-pathParams.csv").random
val uploadFileFORMFeeder = csv(userDataDirectory + File.separator + "uploadFile-formParams.csv").random
val uploadFilePATHFeeder = csv(userDataDirectory + File.separator + "uploadFile-pathParams.csv").random val uploadFilePATHFeeder = csv(userDataDirectory + File.separator + "uploadFile-pathParams.csv").random
// Setup all scenarios // Setup all scenarios
val scnaddPet = scenario("addPetSimulation") val scnaddPet = scenario("addPetSimulation")
.feed(addPetBodyFeeder)
.exec(http("addPet") .exec(http("addPet")
.httpRequest("POST","/pet") .httpRequest("POST","/pet")
.body(StringBody(Pet.toStringBody("${id}","${category}","${name}","${tags}","${status}","${photoUrls}")))
) )
// Run scnaddPet with warm up and reach a constant rate for entire duration // Run scnaddPet with warm up and reach a constant rate for entire duration
@ -159,10 +153,8 @@ class PetApiSimulation extends Simulation {
val scnupdatePet = scenario("updatePetSimulation") val scnupdatePet = scenario("updatePetSimulation")
.feed(updatePetBodyFeeder)
.exec(http("updatePet") .exec(http("updatePet")
.httpRequest("PUT","/pet") .httpRequest("PUT","/pet")
.body(StringBody(Pet.toStringBody("${id}","${category}","${name}","${tags}","${status}","${photoUrls}")))
) )
// Run scnupdatePet with warm up and reach a constant rate for entire duration // Run scnupdatePet with warm up and reach a constant rate for entire duration
@ -174,12 +166,9 @@ class PetApiSimulation extends Simulation {
val scnupdatePetWithForm = scenario("updatePetWithFormSimulation") val scnupdatePetWithForm = scenario("updatePetWithFormSimulation")
.feed(updatePetWithFormFORMFeeder)
.feed(updatePetWithFormPATHFeeder) .feed(updatePetWithFormPATHFeeder)
.exec(http("updatePetWithForm") .exec(http("updatePetWithForm")
.httpRequest("POST","/pet/${petId}") .httpRequest("POST","/pet/${petId}")
.formParam("name","${name}")
.formParam("status","${status}")
) )
// Run scnupdatePetWithForm with warm up and reach a constant rate for entire duration // Run scnupdatePetWithForm with warm up and reach a constant rate for entire duration
@ -191,12 +180,9 @@ class PetApiSimulation extends Simulation {
val scnuploadFile = scenario("uploadFileSimulation") val scnuploadFile = scenario("uploadFileSimulation")
.feed(uploadFileFORMFeeder)
.feed(uploadFilePATHFeeder) .feed(uploadFilePATHFeeder)
.exec(http("uploadFile") .exec(http("uploadFile")
.httpRequest("POST","/pet/${petId}/uploadImage") .httpRequest("POST","/pet/${petId}/uploadImage")
.formParam("file","${file}")
.formParam("additionalMetadata","${additionalMetadata}")
) )
// Run scnuploadFile with warm up and reach a constant rate for entire duration // Run scnuploadFile with warm up and reach a constant rate for entire duration

View File

@ -1,6 +1,6 @@
package io.swagger.client.api package org.openapitools.client.api
import io.swagger.client.model._ import org.openapitools.client.model._
import com.typesafe.config.ConfigFactory import com.typesafe.config.ConfigFactory
import io.gatling.core.Predef._ import io.gatling.core.Predef._
@ -66,7 +66,6 @@ class StoreApiSimulation extends Simulation {
// Set up CSV feeders // Set up CSV feeders
val deleteOrderPATHFeeder = csv(userDataDirectory + File.separator + "deleteOrder-pathParams.csv").random val deleteOrderPATHFeeder = csv(userDataDirectory + File.separator + "deleteOrder-pathParams.csv").random
val getOrderByIdPATHFeeder = csv(userDataDirectory + File.separator + "getOrderById-pathParams.csv").random val getOrderByIdPATHFeeder = csv(userDataDirectory + File.separator + "getOrderById-pathParams.csv").random
val placeOrderBodyFeeder = csv(userDataDirectory + File.separator + "placeOrder-bodyParams.csv", escapeChar = '\\').random
// Setup all scenarios // Setup all scenarios
@ -113,10 +112,8 @@ class StoreApiSimulation extends Simulation {
val scnplaceOrder = scenario("placeOrderSimulation") val scnplaceOrder = scenario("placeOrderSimulation")
.feed(placeOrderBodyFeeder)
.exec(http("placeOrder") .exec(http("placeOrder")
.httpRequest("POST","/store/order") .httpRequest("POST","/store/order")
.body(StringBody(Order.toStringBody("${id}","${shipDate}","${complete}","${quantity}","${status}","${petId}")))
) )
// Run scnplaceOrder with warm up and reach a constant rate for entire duration // Run scnplaceOrder with warm up and reach a constant rate for entire duration

View File

@ -1,6 +1,6 @@
package io.swagger.client.api package org.openapitools.client.api
import io.swagger.client.model._ import org.openapitools.client.model._
import com.typesafe.config.ConfigFactory import com.typesafe.config.ConfigFactory
import io.gatling.core.Predef._ import io.gatling.core.Predef._
@ -68,21 +68,17 @@ class UserApiSimulation extends Simulation {
val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]() val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]()
// Set up CSV feeders // Set up CSV feeders
val createUserBodyFeeder = csv(userDataDirectory + File.separator + "createUser-bodyParams.csv", escapeChar = '\\').random
val deleteUserPATHFeeder = csv(userDataDirectory + File.separator + "deleteUser-pathParams.csv").random val deleteUserPATHFeeder = csv(userDataDirectory + File.separator + "deleteUser-pathParams.csv").random
val getUserByNamePATHFeeder = csv(userDataDirectory + File.separator + "getUserByName-pathParams.csv").random val getUserByNamePATHFeeder = csv(userDataDirectory + File.separator + "getUserByName-pathParams.csv").random
val loginUserQUERYFeeder = csv(userDataDirectory + File.separator + "loginUser-queryParams.csv").random val loginUserQUERYFeeder = csv(userDataDirectory + File.separator + "loginUser-queryParams.csv").random
val updateUserPATHFeeder = csv(userDataDirectory + File.separator + "updateUser-pathParams.csv").random val updateUserPATHFeeder = csv(userDataDirectory + File.separator + "updateUser-pathParams.csv").random
val updateUserBodyFeeder = csv(userDataDirectory + File.separator + "updateUser-bodyParams.csv", escapeChar = '\\').random
// Setup all scenarios // Setup all scenarios
val scncreateUser = scenario("createUserSimulation") val scncreateUser = scenario("createUserSimulation")
.feed(createUserBodyFeeder)
.exec(http("createUser") .exec(http("createUser")
.httpRequest("POST","/user") .httpRequest("POST","/user")
.body(StringBody(User.toStringBody("${password}","${id}","${lastName}","${firstName}","${email}","${userStatus}","${phone}","${username}")))
) )
// Run scncreateUser with warm up and reach a constant rate for entire duration // Run scncreateUser with warm up and reach a constant rate for entire duration
@ -96,7 +92,6 @@ class UserApiSimulation extends Simulation {
val scncreateUsersWithArrayInput = scenario("createUsersWithArrayInputSimulation") val scncreateUsersWithArrayInput = scenario("createUsersWithArrayInputSimulation")
.exec(http("createUsersWithArrayInput") .exec(http("createUsersWithArrayInput")
.httpRequest("POST","/user/createWithArray") .httpRequest("POST","/user/createWithArray")
.body(StringBody(StringBody("[]")))
) )
// Run scncreateUsersWithArrayInput with warm up and reach a constant rate for entire duration // Run scncreateUsersWithArrayInput with warm up and reach a constant rate for entire duration
@ -110,7 +105,6 @@ class UserApiSimulation extends Simulation {
val scncreateUsersWithListInput = scenario("createUsersWithListInputSimulation") val scncreateUsersWithListInput = scenario("createUsersWithListInputSimulation")
.exec(http("createUsersWithListInput") .exec(http("createUsersWithListInput")
.httpRequest("POST","/user/createWithList") .httpRequest("POST","/user/createWithList")
.body(StringBody(StringBody("[]")))
) )
// Run scncreateUsersWithListInput with warm up and reach a constant rate for entire duration // Run scncreateUsersWithListInput with warm up and reach a constant rate for entire duration
@ -179,11 +173,9 @@ class UserApiSimulation extends Simulation {
val scnupdateUser = scenario("updateUserSimulation") val scnupdateUser = scenario("updateUserSimulation")
.feed(updateUserBodyFeeder)
.feed(updateUserPATHFeeder) .feed(updateUserPATHFeeder)
.exec(http("updateUser") .exec(http("updateUser")
.httpRequest("PUT","/user/${username}") .httpRequest("PUT","/user/${username}")
.body(StringBody(User.toStringBody("${password}","${id}","${lastName}","${firstName}","${email}","${userStatus}","${phone}","${username}")))
) )
// Run scnupdateUser with warm up and reach a constant rate for entire duration // Run scnupdateUser with warm up and reach a constant rate for entire duration

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
case class ApiResponse ( case class ApiResponse (

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
case class Category ( case class Category (

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
import java.util.Date import java.util.Date

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
case class Pet ( case class Pet (

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
case class Tag ( case class Tag (

View File

@ -1,5 +1,5 @@
package io.swagger.client.model package org.openapitools.client.model
case class User ( case class User (

View File

@ -1151,14 +1151,14 @@ try {
<div class="tab-pane" id="examples-Pet-addPet-0-perl"> <div class="tab-pane" id="examples-Pet-addPet-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet | my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet |
eval { eval {
$api_instance->addPet(pet => $pet); $api_instance->addPet(pet => $pet);
@ -1171,15 +1171,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-addPet-0-python"> <div class="tab-pane" id="examples-Pet-addPet-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
pet = # Pet | pet = # Pet |
try: try:
@ -1437,13 +1437,13 @@ try {
<div class="tab-pane" id="examples-Pet-deletePet-0-perl"> <div class="tab-pane" id="examples-Pet-deletePet-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $petId = 789; # Long | Pet id to delete my $petId = 789; # Long | Pet id to delete
my $apiKey = apiKey_example; # String | my $apiKey = apiKey_example; # String |
@ -1458,15 +1458,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-deletePet-0-python"> <div class="tab-pane" id="examples-Pet-deletePet-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
petId = 789 # Long | Pet id to delete petId = 789 # Long | Pet id to delete
apiKey = apiKey_example # String | (optional) apiKey = apiKey_example # String | (optional)
@ -1746,13 +1746,13 @@ try {
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-perl"> <div class="tab-pane" id="examples-Pet-findPetsByStatus-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $status = []; # array[String] | Status values that need to be considered for filter my $status = []; # array[String] | Status values that need to be considered for filter
eval { eval {
@ -1767,15 +1767,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-python"> <div class="tab-pane" id="examples-Pet-findPetsByStatus-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
status = # array[String] | Status values that need to be considered for filter status = # array[String] | Status values that need to be considered for filter
try: try:
@ -2086,13 +2086,13 @@ try {
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-perl"> <div class="tab-pane" id="examples-Pet-findPetsByTags-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $tags = []; # array[String] | Tags to filter by my $tags = []; # array[String] | Tags to filter by
eval { eval {
@ -2107,15 +2107,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-python"> <div class="tab-pane" id="examples-Pet-findPetsByTags-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
tags = # array[String] | Tags to filter by tags = # array[String] | Tags to filter by
try: try:
@ -2436,15 +2436,15 @@ try {
<div class="tab-pane" id="examples-Pet-getPetById-0-perl"> <div class="tab-pane" id="examples-Pet-getPetById-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure API key authorization: api_key # Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; $WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer"; #$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $petId = 789; # Long | ID of pet to return my $petId = 789; # Long | ID of pet to return
eval { eval {
@ -2459,17 +2459,17 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-getPetById-0-python"> <div class="tab-pane" id="examples-Pet-getPetById-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure API key authorization: api_key # Configure API key authorization: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY' openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer' # openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
petId = 789 # Long | ID of pet to return petId = 789 # Long | ID of pet to return
try: try:
@ -2778,14 +2778,14 @@ try {
<div class="tab-pane" id="examples-Pet-updatePet-0-perl"> <div class="tab-pane" id="examples-Pet-updatePet-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet | my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet |
eval { eval {
$api_instance->updatePet(pet => $pet); $api_instance->updatePet(pet => $pet);
@ -2798,15 +2798,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-updatePet-0-python"> <div class="tab-pane" id="examples-Pet-updatePet-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
pet = # Pet | pet = # Pet |
try: try:
@ -3087,13 +3087,13 @@ try {
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-perl"> <div class="tab-pane" id="examples-Pet-updatePetWithForm-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $petId = 789; # Long | ID of pet that needs to be updated my $petId = 789; # Long | ID of pet that needs to be updated
my $name = name_example; # String | Updated name of the pet my $name = name_example; # String | Updated name of the pet
my $status = status_example; # String | Updated status of the pet my $status = status_example; # String | Updated status of the pet
@ -3109,15 +3109,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-python"> <div class="tab-pane" id="examples-Pet-updatePetWithForm-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
petId = 789 # Long | ID of pet that needs to be updated petId = 789 # Long | ID of pet that needs to be updated
name = name_example # String | Updated name of the pet (optional) (default to null) name = name_example # String | Updated name of the pet (optional) (default to null)
status = status_example # String | Updated status of the pet (optional) (default to null) status = status_example # String | Updated status of the pet (optional) (default to null)
@ -3437,13 +3437,13 @@ try {
<div class="tab-pane" id="examples-Pet-uploadFile-0-perl"> <div class="tab-pane" id="examples-Pet-uploadFile-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::PetApi; use WWW::OPenAPIClient::PetApi;
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
$WWW::SwaggerClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN'; $WWW::OPenAPIClient::Configuration::access_token = 'YOUR_ACCESS_TOKEN';
my $api_instance = WWW::SwaggerClient::PetApi->new(); my $api_instance = WWW::OPenAPIClient::PetApi->new();
my $petId = 789; # Long | ID of pet to update my $petId = 789; # Long | ID of pet to update
my $additionalMetadata = additionalMetadata_example; # String | Additional data to pass to server my $additionalMetadata = additionalMetadata_example; # String | Additional data to pass to server
my $file = BINARY_DATA_HERE; # File | file to upload my $file = BINARY_DATA_HERE; # File | file to upload
@ -3460,15 +3460,15 @@ if ($@) {
<div class="tab-pane" id="examples-Pet-uploadFile-0-python"> <div class="tab-pane" id="examples-Pet-uploadFile-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure OAuth2 access token for authorization: petstore_auth # Configure OAuth2 access token for authorization: petstore_auth
swagger_client.configuration.access_token = 'YOUR_ACCESS_TOKEN' openapi_client.configuration.access_token = 'YOUR_ACCESS_TOKEN'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.PetApi() api_instance = openapi_client.PetApi()
petId = 789 # Long | ID of pet to update petId = 789 # Long | ID of pet to update
additionalMetadata = additionalMetadata_example # String | Additional data to pass to server (optional) (default to null) additionalMetadata = additionalMetadata_example # String | Additional data to pass to server (optional) (default to null)
file = BINARY_DATA_HERE # File | file to upload (optional) (default to null) file = BINARY_DATA_HERE # File | file to upload (optional) (default to null)
@ -3790,10 +3790,10 @@ try {
<div class="tab-pane" id="examples-Store-deleteOrder-0-perl"> <div class="tab-pane" id="examples-Store-deleteOrder-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::StoreApi; use WWW::OPenAPIClient::StoreApi;
my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $api_instance = WWW::OPenAPIClient::StoreApi->new();
my $orderId = orderId_example; # String | ID of the order that needs to be deleted my $orderId = orderId_example; # String | ID of the order that needs to be deleted
eval { eval {
@ -3807,12 +3807,12 @@ if ($@) {
<div class="tab-pane" id="examples-Store-deleteOrder-0-python"> <div class="tab-pane" id="examples-Store-deleteOrder-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.StoreApi() api_instance = openapi_client.StoreApi()
orderId = orderId_example # String | ID of the order that needs to be deleted orderId = orderId_example # String | ID of the order that needs to be deleted
try: try:
@ -4075,15 +4075,15 @@ try {
<div class="tab-pane" id="examples-Store-getInventory-0-perl"> <div class="tab-pane" id="examples-Store-getInventory-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::StoreApi; use WWW::OPenAPIClient::StoreApi;
# Configure API key authorization: api_key # Configure API key authorization: api_key
$WWW::SwaggerClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY'; $WWW::OPenAPIClient::Configuration::api_key->{'api_key'} = 'YOUR_API_KEY';
# uncomment below to setup prefix (e.g. Bearer) for API key, if needed # uncomment below to setup prefix (e.g. Bearer) for API key, if needed
#$WWW::SwaggerClient::Configuration::api_key_prefix->{'api_key'} = "Bearer"; #$WWW::OPenAPIClient::Configuration::api_key_prefix->{'api_key'} = "Bearer";
my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $api_instance = WWW::OPenAPIClient::StoreApi->new();
eval { eval {
my $result = $api_instance->getInventory(); my $result = $api_instance->getInventory();
@ -4097,17 +4097,17 @@ if ($@) {
<div class="tab-pane" id="examples-Store-getInventory-0-python"> <div class="tab-pane" id="examples-Store-getInventory-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# Configure API key authorization: api_key # Configure API key authorization: api_key
swagger_client.configuration.api_key['api_key'] = 'YOUR_API_KEY' openapi_client.configuration.api_key['api_key'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# swagger_client.configuration.api_key_prefix['api_key'] = 'Bearer' # openapi_client.configuration.api_key_prefix['api_key'] = 'Bearer'
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.StoreApi() api_instance = openapi_client.StoreApi()
try: try:
# Returns pet inventories by status # Returns pet inventories by status
@ -4351,10 +4351,10 @@ try {
<div class="tab-pane" id="examples-Store-getOrderById-0-perl"> <div class="tab-pane" id="examples-Store-getOrderById-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::StoreApi; use WWW::OPenAPIClient::StoreApi;
my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $api_instance = WWW::OPenAPIClient::StoreApi->new();
my $orderId = 789; # Long | ID of pet that needs to be fetched my $orderId = 789; # Long | ID of pet that needs to be fetched
eval { eval {
@ -4369,12 +4369,12 @@ if ($@) {
<div class="tab-pane" id="examples-Store-getOrderById-0-python"> <div class="tab-pane" id="examples-Store-getOrderById-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.StoreApi() api_instance = openapi_client.StoreApi()
orderId = 789 # Long | ID of pet that needs to be fetched orderId = 789 # Long | ID of pet that needs to be fetched
try: try:
@ -4669,11 +4669,11 @@ try {
<div class="tab-pane" id="examples-Store-placeOrder-0-perl"> <div class="tab-pane" id="examples-Store-placeOrder-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::StoreApi; use WWW::OPenAPIClient::StoreApi;
my $api_instance = WWW::SwaggerClient::StoreApi->new(); my $api_instance = WWW::OPenAPIClient::StoreApi->new();
my $order = WWW::SwaggerClient::Object::Order->new(); # Order | my $order = WWW::OPenAPIClient::Object::Order->new(); # Order |
eval { eval {
my $result = $api_instance->placeOrder(order => $order); my $result = $api_instance->placeOrder(order => $order);
@ -4687,12 +4687,12 @@ if ($@) {
<div class="tab-pane" id="examples-Store-placeOrder-0-python"> <div class="tab-pane" id="examples-Store-placeOrder-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.StoreApi() api_instance = openapi_client.StoreApi()
order = # Order | order = # Order |
try: try:
@ -4976,11 +4976,11 @@ try {
<div class="tab-pane" id="examples-User-createUser-0-perl"> <div class="tab-pane" id="examples-User-createUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = WWW::SwaggerClient::Object::User->new(); # User | my $user = WWW::OPenAPIClient::Object::User->new(); # User |
eval { eval {
$api_instance->createUser(user => $user); $api_instance->createUser(user => $user);
@ -4993,12 +4993,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-createUser-0-python"> <div class="tab-pane" id="examples-User-createUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
user = # User | user = # User |
try: try:
@ -5226,11 +5226,11 @@ try {
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-perl"> <div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] | my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] |
eval { eval {
$api_instance->createUsersWithArrayInput(user => $user); $api_instance->createUsersWithArrayInput(user => $user);
@ -5243,12 +5243,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-python"> <div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
user = # array[User] | user = # array[User] |
try: try:
@ -5476,11 +5476,11 @@ try {
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-perl"> <div class="tab-pane" id="examples-User-createUsersWithListInput-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] | my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] |
eval { eval {
$api_instance->createUsersWithListInput(user => $user); $api_instance->createUsersWithListInput(user => $user);
@ -5493,12 +5493,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-python"> <div class="tab-pane" id="examples-User-createUsersWithListInput-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
user = # array[User] | user = # array[User] |
try: try:
@ -5726,10 +5726,10 @@ try {
<div class="tab-pane" id="examples-User-deleteUser-0-perl"> <div class="tab-pane" id="examples-User-deleteUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The name that needs to be deleted my $username = username_example; # String | The name that needs to be deleted
eval { eval {
@ -5743,12 +5743,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-deleteUser-0-python"> <div class="tab-pane" id="examples-User-deleteUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
username = username_example # String | The name that needs to be deleted username = username_example # String | The name that needs to be deleted
try: try:
@ -5987,10 +5987,10 @@ try {
<div class="tab-pane" id="examples-User-getUserByName-0-perl"> <div class="tab-pane" id="examples-User-getUserByName-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The name that needs to be fetched. Use user1 for testing. my $username = username_example; # String | The name that needs to be fetched. Use user1 for testing.
eval { eval {
@ -6005,12 +6005,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-getUserByName-0-python"> <div class="tab-pane" id="examples-User-getUserByName-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
username = username_example # String | The name that needs to be fetched. Use user1 for testing. username = username_example # String | The name that needs to be fetched. Use user1 for testing.
try: try:
@ -6309,10 +6309,10 @@ try {
<div class="tab-pane" id="examples-User-loginUser-0-perl"> <div class="tab-pane" id="examples-User-loginUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | The user name for login my $username = username_example; # String | The user name for login
my $password = password_example; # String | The password for login in clear text my $password = password_example; # String | The password for login in clear text
@ -6328,12 +6328,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-loginUser-0-python"> <div class="tab-pane" id="examples-User-loginUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
username = username_example # String | The user name for login username = username_example # String | The user name for login
password = password_example # String | The password for login in clear text password = password_example # String | The password for login in clear text
@ -6668,10 +6668,10 @@ try {
<div class="tab-pane" id="examples-User-logoutUser-0-perl"> <div class="tab-pane" id="examples-User-logoutUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
eval { eval {
$api_instance->logoutUser(); $api_instance->logoutUser();
@ -6684,12 +6684,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-logoutUser-0-python"> <div class="tab-pane" id="examples-User-logoutUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
try: try:
# Logs out current logged in user session # Logs out current logged in user session
@ -6889,12 +6889,12 @@ try {
<div class="tab-pane" id="examples-User-updateUser-0-perl"> <div class="tab-pane" id="examples-User-updateUser-0-perl">
<pre class="prettyprint"><code class="language-perl">use Data::Dumper; <pre class="prettyprint"><code class="language-perl">use Data::Dumper;
use WWW::SwaggerClient::Configuration; use WWW::OPenAPIClient::Configuration;
use WWW::SwaggerClient::UserApi; use WWW::OPenAPIClient::UserApi;
my $api_instance = WWW::SwaggerClient::UserApi->new(); my $api_instance = WWW::OPenAPIClient::UserApi->new();
my $username = username_example; # String | name that need to be deleted my $username = username_example; # String | name that need to be deleted
my $user = WWW::SwaggerClient::Object::User->new(); # User | my $user = WWW::OPenAPIClient::Object::User->new(); # User |
eval { eval {
$api_instance->updateUser(username => $username, user => $user); $api_instance->updateUser(username => $username, user => $user);
@ -6907,12 +6907,12 @@ if ($@) {
<div class="tab-pane" id="examples-User-updateUser-0-python"> <div class="tab-pane" id="examples-User-updateUser-0-python">
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement <pre class="prettyprint"><code class="language-python">from __future__ import print_statement
import time import time
import swagger_client import openapi_client
from swagger_client.rest import ApiException from openapi_client.rest import ApiException
from pprint import pprint from pprint import pprint
# create an instance of the API class # create an instance of the API class
api_instance = swagger_client.UserApi() api_instance = openapi_client.UserApi()
username = username_example # String | name that need to be deleted username = username_example # String | name that need to be deleted
user = # User | user = # User |
@ -7020,8 +7020,8 @@ $(document).ready(function() {
<div id="footer"> <div id="footer">
<div id="api-_footer"> <div id="api-_footer">
<p>Suggestions, contact, support and error reporting; <p>Suggestions, contact, support and error reporting;
<div class="app-desc">Information URL: <a href="https://helloreverb.com">https://helloreverb.com</a></div> <div class="app-desc">Information URL: <a href="https://openapi-generator.tech">https://openapi-generator.tech</a></div>
<div class="app-desc">Contact Info: <a href="hello@helloreverb.com">hello@helloreverb.com</a></div> <div class="app-desc">Contact Info: <a href="contributors@openapitools.org">contributors@openapitools.org</a></div>
</p> </p>
<div class="license-info">Apache-2.0</div> <div class="license-info">Apache-2.0</div>
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div> <div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>