forked from loafle/openapi-generator-original
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:
parent
4ae1113c00
commit
dcd26ece71
@ -27,6 +27,6 @@ fi
|
||||
|
||||
# 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"
|
||||
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
|
||||
|
@ -27,6 +27,6 @@ fi
|
||||
|
||||
# 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"
|
||||
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}
|
||||
|
@ -96,12 +96,12 @@ public class ScalaGatlingCodegen extends AbstractScalaCodegen implements Codegen
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
modelPackage = "io.swagger.client.model";
|
||||
modelPackage = "org.openapitools.client.model";
|
||||
|
||||
/**
|
||||
* 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
|
||||
*
|
||||
* @param operation Swagger Operation
|
||||
* @param parameters Swagger Parameters
|
||||
* @param parameterType Swagger Parameter Type
|
||||
* @param operation OpoenAPI Operation
|
||||
* @param parameters OpenAPI Parameters
|
||||
* @param parameterType OpenAPI Parameter Type
|
||||
*/
|
||||
private void prepareGatlingData(Operation operation, Set<Parameter> parameters, String parameterType) {
|
||||
if (parameters.size() > 0) {
|
||||
|
@ -50,8 +50,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
|
||||
protected String artifactVersion = "1.0.0";
|
||||
protected String jsProjectName;
|
||||
protected String jsModuleName;
|
||||
protected String perlModuleName = "WWW::SwaggerClient";
|
||||
protected String pythonPackageName = "swagger_client";
|
||||
protected String perlModuleName = "WWW::OPenAPIClient";
|
||||
protected String pythonPackageName = "openapi_client";
|
||||
|
||||
public StaticHtml2Generator() {
|
||||
super();
|
||||
@ -77,8 +77,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
|
||||
|
||||
additionalProperties.put("appName", "OpenAPI Sample");
|
||||
additionalProperties.put("appDescription", "A sample openapi server");
|
||||
additionalProperties.put("infoUrl", "https://helloreverb.com");
|
||||
additionalProperties.put("infoEmail", "hello@helloreverb.com");
|
||||
additionalProperties.put("infoUrl", "https://openapi-generator.tech");
|
||||
additionalProperties.put("infoEmail", "contributors@openapitools.org");
|
||||
additionalProperties.put("licenseInfo", "All rights reserved");
|
||||
additionalProperties.put("licenseUrl", "http://apache.org/licenses/LICENSE-2.0.html");
|
||||
additionalProperties.put(CodegenConstants.INVOKER_PACKAGE, invokerPackage);
|
||||
@ -161,7 +161,7 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
|
||||
|
||||
// default values
|
||||
if (StringUtils.isBlank(jsProjectName)) {
|
||||
jsProjectName = "swagger-js-client";
|
||||
jsProjectName = "openapi-js-client";
|
||||
}
|
||||
if (StringUtils.isBlank(jsModuleName)) {
|
||||
jsModuleName = camelize(underscore(jsProjectName));
|
||||
|
@ -38,7 +38,7 @@ function Get-FunctionsToExport {
|
||||
}
|
||||
|
||||
$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\" $_}
|
||||
$BinPath = "$ScriptDir\src\Org.OpenAPITools\Bin"
|
||||
|
||||
|
@ -14,7 +14,7 @@ This PowerShell module is automatically generated by the [OpenAPI Generator](htt
|
||||
|
||||
<a name="dependencies"></a>
|
||||
## 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>
|
||||
## Installation
|
||||
|
@ -1 +1 @@
|
||||
2.4.0-SNAPSHOT
|
||||
3.0.0-SNAPSHOT
|
@ -1,5 +1,5 @@
|
||||
plugins {
|
||||
id 'com.github.lkishalmi.gatling' version '0.4.1'
|
||||
id 'com.github.lkishalmi.gatling' version '0.7.1'
|
||||
}
|
||||
|
||||
repositories {
|
||||
|
@ -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 io.gatling.core.Predef._
|
||||
@ -68,27 +68,21 @@ class PetApiSimulation extends Simulation {
|
||||
val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]()
|
||||
|
||||
// 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 deletePetPATHFeeder = csv(userDataDirectory + File.separator + "deletePet-pathParams.csv").random
|
||||
val findPetsByStatusQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByStatus-queryParams.csv").random
|
||||
val findPetsByTagsQUERYFeeder = csv(userDataDirectory + File.separator + "findPetsByTags-queryParams.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 uploadFileFORMFeeder = csv(userDataDirectory + File.separator + "uploadFile-formParams.csv").random
|
||||
val uploadFilePATHFeeder = csv(userDataDirectory + File.separator + "uploadFile-pathParams.csv").random
|
||||
|
||||
// Setup all scenarios
|
||||
|
||||
|
||||
val scnaddPet = scenario("addPetSimulation")
|
||||
.feed(addPetBodyFeeder)
|
||||
.exec(http("addPet")
|
||||
.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
|
||||
scenarioBuilders += scnaddPet.inject(
|
||||
@ -159,11 +153,9 @@ class PetApiSimulation extends Simulation {
|
||||
|
||||
|
||||
val scnupdatePet = scenario("updatePetSimulation")
|
||||
.feed(updatePetBodyFeeder)
|
||||
.exec(http("updatePet")
|
||||
.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
|
||||
scenarioBuilders += scnupdatePet.inject(
|
||||
@ -174,12 +166,9 @@ class PetApiSimulation extends Simulation {
|
||||
|
||||
|
||||
val scnupdatePetWithForm = scenario("updatePetWithFormSimulation")
|
||||
.feed(updatePetWithFormFORMFeeder)
|
||||
.feed(updatePetWithFormPATHFeeder)
|
||||
.exec(http("updatePetWithForm")
|
||||
.httpRequest("POST","/pet/${petId}")
|
||||
.formParam("name","${name}")
|
||||
.formParam("status","${status}")
|
||||
)
|
||||
|
||||
// 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")
|
||||
.feed(uploadFileFORMFeeder)
|
||||
.feed(uploadFilePATHFeeder)
|
||||
.exec(http("uploadFile")
|
||||
.httpRequest("POST","/pet/${petId}/uploadImage")
|
||||
.formParam("file","${file}")
|
||||
.formParam("additionalMetadata","${additionalMetadata}")
|
||||
)
|
||||
|
||||
// Run scnuploadFile with warm up and reach a constant rate for entire duration
|
@ -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 io.gatling.core.Predef._
|
||||
@ -66,7 +66,6 @@ class StoreApiSimulation extends Simulation {
|
||||
// Set up CSV feeders
|
||||
val deleteOrderPATHFeeder = csv(userDataDirectory + File.separator + "deleteOrder-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
|
||||
|
||||
@ -113,11 +112,9 @@ class StoreApiSimulation extends Simulation {
|
||||
|
||||
|
||||
val scnplaceOrder = scenario("placeOrderSimulation")
|
||||
.feed(placeOrderBodyFeeder)
|
||||
.exec(http("placeOrder")
|
||||
.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
|
||||
scenarioBuilders += scnplaceOrder.inject(
|
@ -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 io.gatling.core.Predef._
|
||||
@ -68,22 +68,18 @@ class UserApiSimulation extends Simulation {
|
||||
val scenarioBuilders: mutable.MutableList[PopulationBuilder] = new mutable.MutableList[PopulationBuilder]()
|
||||
|
||||
// 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 getUserByNamePATHFeeder = csv(userDataDirectory + File.separator + "getUserByName-pathParams.csv").random
|
||||
val loginUserQUERYFeeder = csv(userDataDirectory + File.separator + "loginUser-queryParams.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
|
||||
|
||||
|
||||
val scncreateUser = scenario("createUserSimulation")
|
||||
.feed(createUserBodyFeeder)
|
||||
.exec(http("createUser")
|
||||
.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
|
||||
scenarioBuilders += scncreateUser.inject(
|
||||
@ -96,8 +92,7 @@ class UserApiSimulation extends Simulation {
|
||||
val scncreateUsersWithArrayInput = scenario("createUsersWithArrayInputSimulation")
|
||||
.exec(http("createUsersWithArrayInput")
|
||||
.httpRequest("POST","/user/createWithArray")
|
||||
.body(StringBody(StringBody("[]")))
|
||||
)
|
||||
)
|
||||
|
||||
// Run scncreateUsersWithArrayInput with warm up and reach a constant rate for entire duration
|
||||
scenarioBuilders += scncreateUsersWithArrayInput.inject(
|
||||
@ -110,8 +105,7 @@ class UserApiSimulation extends Simulation {
|
||||
val scncreateUsersWithListInput = scenario("createUsersWithListInputSimulation")
|
||||
.exec(http("createUsersWithListInput")
|
||||
.httpRequest("POST","/user/createWithList")
|
||||
.body(StringBody(StringBody("[]")))
|
||||
)
|
||||
)
|
||||
|
||||
// Run scncreateUsersWithListInput with warm up and reach a constant rate for entire duration
|
||||
scenarioBuilders += scncreateUsersWithListInput.inject(
|
||||
@ -179,12 +173,10 @@ class UserApiSimulation extends Simulation {
|
||||
|
||||
|
||||
val scnupdateUser = scenario("updateUserSimulation")
|
||||
.feed(updateUserBodyFeeder)
|
||||
.feed(updateUserPATHFeeder)
|
||||
.exec(http("updateUser")
|
||||
.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
|
||||
scenarioBuilders += scnupdateUser.inject(
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
|
||||
case class ApiResponse (
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
|
||||
case class Category (
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
import java.util.Date
|
||||
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
|
||||
case class Pet (
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
|
||||
case class Tag (
|
@ -1,5 +1,5 @@
|
||||
|
||||
package io.swagger.client.model
|
||||
package org.openapitools.client.model
|
||||
|
||||
|
||||
case class User (
|
@ -1151,14 +1151,14 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-addPet-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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 $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet |
|
||||
my $api_instance = WWW::OPenAPIClient::PetApi->new();
|
||||
my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet |
|
||||
|
||||
eval {
|
||||
$api_instance->addPet(pet => $pet);
|
||||
@ -1171,15 +1171,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-addPet-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
pet = # Pet |
|
||||
|
||||
try:
|
||||
@ -1437,13 +1437,13 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-deletePet-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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 $apiKey = apiKey_example; # String |
|
||||
|
||||
@ -1458,15 +1458,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-deletePet-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
petId = 789 # Long | Pet id to delete
|
||||
apiKey = apiKey_example # String | (optional)
|
||||
|
||||
@ -1746,13 +1746,13 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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
|
||||
|
||||
eval {
|
||||
@ -1767,15 +1767,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
status = # array[String] | Status values that need to be considered for filter
|
||||
|
||||
try:
|
||||
@ -2086,13 +2086,13 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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
|
||||
|
||||
eval {
|
||||
@ -2107,15 +2107,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
tags = # array[String] | Tags to filter by
|
||||
|
||||
try:
|
||||
@ -2436,15 +2436,15 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-getPetById-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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
|
||||
#$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
|
||||
|
||||
eval {
|
||||
@ -2459,17 +2459,17 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-getPetById-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
petId = 789 # Long | ID of pet to return
|
||||
|
||||
try:
|
||||
@ -2778,14 +2778,14 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-updatePet-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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 $pet = WWW::SwaggerClient::Object::Pet->new(); # Pet |
|
||||
my $api_instance = WWW::OPenAPIClient::PetApi->new();
|
||||
my $pet = WWW::OPenAPIClient::Object::Pet->new(); # Pet |
|
||||
|
||||
eval {
|
||||
$api_instance->updatePet(pet => $pet);
|
||||
@ -2798,15 +2798,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-updatePet-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
pet = # Pet |
|
||||
|
||||
try:
|
||||
@ -3087,13 +3087,13 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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 $name = name_example; # String | Updated name 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">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
petId = 789 # Long | ID of pet that needs to be updated
|
||||
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)
|
||||
@ -3437,13 +3437,13 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-uploadFile-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::PetApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::PetApi;
|
||||
|
||||
# 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 $additionalMetadata = additionalMetadata_example; # String | Additional data to pass to server
|
||||
my $file = BINARY_DATA_HERE; # File | file to upload
|
||||
@ -3460,15 +3460,15 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Pet-uploadFile-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
api_instance = swagger_client.PetApi()
|
||||
api_instance = openapi_client.PetApi()
|
||||
petId = 789 # Long | ID of pet to update
|
||||
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)
|
||||
@ -3790,10 +3790,10 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Store-deleteOrder-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::StoreApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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
|
||||
|
||||
eval {
|
||||
@ -3807,12 +3807,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Store-deleteOrder-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
|
||||
try:
|
||||
@ -4075,15 +4075,15 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Store-getInventory-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::StoreApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::StoreApi;
|
||||
|
||||
# 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
|
||||
#$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 {
|
||||
my $result = $api_instance->getInventory();
|
||||
@ -4097,17 +4097,17 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Store-getInventory-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
# 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
|
||||
api_instance = swagger_client.StoreApi()
|
||||
api_instance = openapi_client.StoreApi()
|
||||
|
||||
try:
|
||||
# Returns pet inventories by status
|
||||
@ -4351,10 +4351,10 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Store-getOrderById-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::StoreApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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
|
||||
|
||||
eval {
|
||||
@ -4369,12 +4369,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Store-getOrderById-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
|
||||
try:
|
||||
@ -4669,11 +4669,11 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-Store-placeOrder-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::StoreApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::StoreApi;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::StoreApi->new();
|
||||
my $order = WWW::SwaggerClient::Object::Order->new(); # Order |
|
||||
my $api_instance = WWW::OPenAPIClient::StoreApi->new();
|
||||
my $order = WWW::OPenAPIClient::Object::Order->new(); # Order |
|
||||
|
||||
eval {
|
||||
my $result = $api_instance->placeOrder(order => $order);
|
||||
@ -4687,12 +4687,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-Store-placeOrder-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_client.StoreApi()
|
||||
api_instance = openapi_client.StoreApi()
|
||||
order = # Order |
|
||||
|
||||
try:
|
||||
@ -4976,11 +4976,11 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUser-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::UserApi;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::UserApi->new();
|
||||
my $user = WWW::SwaggerClient::Object::User->new(); # User |
|
||||
my $api_instance = WWW::OPenAPIClient::UserApi->new();
|
||||
my $user = WWW::OPenAPIClient::Object::User->new(); # User |
|
||||
|
||||
eval {
|
||||
$api_instance->createUser(user => $user);
|
||||
@ -4993,12 +4993,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-createUser-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_client.UserApi()
|
||||
api_instance = openapi_client.UserApi()
|
||||
user = # User |
|
||||
|
||||
try:
|
||||
@ -5226,11 +5226,11 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::UserApi;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::UserApi->new();
|
||||
my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] |
|
||||
my $api_instance = WWW::OPenAPIClient::UserApi->new();
|
||||
my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] |
|
||||
|
||||
eval {
|
||||
$api_instance->createUsersWithArrayInput(user => $user);
|
||||
@ -5243,12 +5243,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_client.UserApi()
|
||||
api_instance = openapi_client.UserApi()
|
||||
user = # array[User] |
|
||||
|
||||
try:
|
||||
@ -5476,11 +5476,11 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::UserApi;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::UserApi->new();
|
||||
my $user = [WWW::SwaggerClient::Object::array[User]->new()]; # array[User] |
|
||||
my $api_instance = WWW::OPenAPIClient::UserApi->new();
|
||||
my $user = [WWW::OPenAPIClient::Object::array[User]->new()]; # array[User] |
|
||||
|
||||
eval {
|
||||
$api_instance->createUsersWithListInput(user => $user);
|
||||
@ -5493,12 +5493,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_client.UserApi()
|
||||
api_instance = openapi_client.UserApi()
|
||||
user = # array[User] |
|
||||
|
||||
try:
|
||||
@ -5726,10 +5726,10 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-deleteUser-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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
|
||||
|
||||
eval {
|
||||
@ -5743,12 +5743,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-deleteUser-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
|
||||
try:
|
||||
@ -5987,10 +5987,10 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-getUserByName-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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.
|
||||
|
||||
eval {
|
||||
@ -6005,12 +6005,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-getUserByName-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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.
|
||||
|
||||
try:
|
||||
@ -6309,10 +6309,10 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-loginUser-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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 $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">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
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">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
use WWW::OPenAPIClient::UserApi;
|
||||
|
||||
my $api_instance = WWW::SwaggerClient::UserApi->new();
|
||||
my $api_instance = WWW::OPenAPIClient::UserApi->new();
|
||||
|
||||
eval {
|
||||
$api_instance->logoutUser();
|
||||
@ -6684,12 +6684,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-logoutUser-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# create an instance of the API class
|
||||
api_instance = swagger_client.UserApi()
|
||||
api_instance = openapi_client.UserApi()
|
||||
|
||||
try:
|
||||
# Logs out current logged in user session
|
||||
@ -6889,12 +6889,12 @@ try {
|
||||
|
||||
<div class="tab-pane" id="examples-User-updateUser-0-perl">
|
||||
<pre class="prettyprint"><code class="language-perl">use Data::Dumper;
|
||||
use WWW::SwaggerClient::Configuration;
|
||||
use WWW::SwaggerClient::UserApi;
|
||||
use WWW::OPenAPIClient::Configuration;
|
||||
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 $user = WWW::SwaggerClient::Object::User->new(); # User |
|
||||
my $user = WWW::OPenAPIClient::Object::User->new(); # User |
|
||||
|
||||
eval {
|
||||
$api_instance->updateUser(username => $username, user => $user);
|
||||
@ -6907,12 +6907,12 @@ if ($@) {
|
||||
<div class="tab-pane" id="examples-User-updateUser-0-python">
|
||||
<pre class="prettyprint"><code class="language-python">from __future__ import print_statement
|
||||
import time
|
||||
import swagger_client
|
||||
from swagger_client.rest import ApiException
|
||||
import openapi_client
|
||||
from openapi_client.rest import ApiException
|
||||
from pprint import pprint
|
||||
|
||||
# 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
|
||||
user = # User |
|
||||
|
||||
@ -7020,8 +7020,8 @@ $(document).ready(function() {
|
||||
<div id="footer">
|
||||
<div id="api-_footer">
|
||||
<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">Contact Info: <a href="hello@helloreverb.com">hello@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="contributors@openapitools.org">contributors@openapitools.org</a></div>
|
||||
</p>
|
||||
<div class="license-info">Apache-2.0</div>
|
||||
<div class="license-url">http://www.apache.org/licenses/LICENSE-2.0.html</div>
|
||||
|
Loading…
x
Reference in New Issue
Block a user