forked from loafle/openapi-generator-original
Merge remote-tracking branch 'origin/master' into 2.3.0
This commit is contained in:
@@ -17,7 +17,7 @@
|
|||||||
## Overview
|
## Overview
|
||||||
This is the swagger codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported:
|
This is the swagger codegen project, which allows generation of API client libraries (SDK generation), server stubs and documentation automatically given an [OpenAPI Spec](https://github.com/OAI/OpenAPI-Specification). Currently, the following languages/frameworks are supported:
|
||||||
|
|
||||||
- **API clients**: **ActionScript**, **Bash**, **C#** (.net 2.0, 4.0 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Go**, **Groovy**, **Haskell**, **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign), **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **Python**, **Ruby**, **Scala**, **Swift** (2.x, 3.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node)
|
- **API clients**: **ActionScript**, **Apex**, **Bash**, **C#** (.net 2.0, 4.0 or later), **C++** (cpprest, Qt5, Tizen), **Clojure**, **Dart**, **Elixir**, **Go**, **Groovy**, **Haskell**, **Java** (Jersey1.x, Jersey2.x, OkHttp, Retrofit1.x, Retrofit2.x, Feign), **Node.js** (ES5, ES6, AngularJS with Google Closure Compiler annotations) **Objective-C**, **Perl**, **PHP**, **Python**, **Ruby**, **Scala**, **Swift** (2.x, 3.x), **Typescript** (Angular1.x, Angular2.x, Fetch, jQuery, Node)
|
||||||
- **Server stubs**: **C#** (ASP.NET Core, NancyFx), **Erlang**, **Go**, **Haskell**, **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy), **PHP** (Lumen, Slim, Silex, [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Scala** ([Finch](https://github.com/finagle/finch), Scalatra)
|
- **Server stubs**: **C#** (ASP.NET Core, NancyFx), **Erlang**, **Go**, **Haskell**, **Java** (MSF4J, Spring, Undertow, JAX-RS: CDI, CXF, Inflector, RestEasy), **PHP** (Lumen, Slim, Silex, [Zend Expressive](https://github.com/zendframework/zend-expressive)), **Python** (Flask), **NodeJS**, **Ruby** (Sinatra, Rails5), **Scala** ([Finch](https://github.com/finagle/finch), Scalatra)
|
||||||
- **API documentation generators**: **HTML**, **Confluence Wiki**
|
- **API documentation generators**: **HTML**, **Confluence Wiki**
|
||||||
- **Others**: **JMeter**
|
- **Others**: **JMeter**
|
||||||
@@ -822,14 +822,16 @@ Presentations/Videos/Tutorials/Books
|
|||||||
- 2016/01/12 - [Generate client side code using Swagger Codegen](http://rnavagamuwa.com/open-source/generate-client-side-code-using-swagger-codegen/) by [RNAVAGAMUWA](http://rnavagamuwa.com/author/admin/)
|
- 2016/01/12 - [Generate client side code using Swagger Codegen](http://rnavagamuwa.com/open-source/generate-client-side-code-using-swagger-codegen/) by [RNAVAGAMUWA](http://rnavagamuwa.com/author/admin/)
|
||||||
- 2016/01/15 - [How to end manual REST-API client coding](https://www.youtube.com/watch?v=RzZRdqZp6Oo) by [Johannes Fiala](https://github.com/jfiala) @ dotJS 2015
|
- 2016/01/15 - [How to end manual REST-API client coding](https://www.youtube.com/watch?v=RzZRdqZp6Oo) by [Johannes Fiala](https://github.com/jfiala) @ dotJS 2015
|
||||||
- 2016/04/27 - [Automated REST API Development](https://yos.io/2016/04/27/automated-api-development/) by [Yos Riady](https://www.linkedin.com/in/yosriady)
|
- 2016/04/27 - [Automated REST API Development](https://yos.io/2016/04/27/automated-api-development/) by [Yos Riady](https://www.linkedin.com/in/yosriady)
|
||||||
- 2016/05/29 - [Generating Java Spring-MVC code from Swagger Spec](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/) by @icha024
|
- 2016/05/29 - [Generating Java Spring-MVC code from Swagger Spec](https://www.clianz.com/2016/05/29/java-mvc-swagger-gen/) by [@icha024](https://github.com/icha024)
|
||||||
- 2016/11/05 - [How to generate a REST Application](https://www.youtube.com/watch?v=iyC9BWMe75Q) by [Johannes Fiala](https://github.com/jfiala) @ DevFest Vienna 2016
|
- 2016/11/05 - [How to generate a REST Application](https://www.youtube.com/watch?v=iyC9BWMe75Q) by [Johannes Fiala](https://github.com/jfiala) @ DevFest Vienna 2016
|
||||||
- 2016/11/10 - [Building an AEM API clients ecosystem](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/) by Cliffano Subagio, Michael Diender, Stephen Shim from Shine Solutions @ [Adobe Marketing Cloud Community Expo (AMCCE)](https://www.meetup.com/Melbourne-AEM-CQ-Meetup/events/233363101/)
|
- 2016/11/10 - [Building an AEM API clients ecosystem](http://blog.cliffano.com/2016/11/10/adobe-marketing-cloud-community-expo/) by Cliffano Subagio, Michael Diender, Stephen Shim from Shine Solutions @ [Adobe Marketing Cloud Community Expo (AMCCE)](https://www.meetup.com/Melbourne-AEM-CQ-Meetup/events/233363101/)
|
||||||
- 2016/11/18 - [How to generate a REST CXF3 application from Swagger-Contract](https://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-cxf3-application-from-swagger-apacheconeu-2016) by [Johannes Fiala](https://github.com/jfiala) @ ApacheConEU 2016
|
- 2016/11/18 - [How to generate a REST CXF3 application from Swagger-Contract](https://www.slideshare.net/johannes_fiala/how-to-generate-a-rest-cxf3-application-from-swagger-apacheconeu-2016) by [Johannes Fiala](https://github.com/jfiala) @ ApacheConEU 2016
|
||||||
- 2016/11/25 - [Swagger Codegen for Swift3 and NodeJS](https://normand1.github.io/blog/swift/swagger/codegen/2016/11/25/Swagger-Codegen-for-Swift3-and-NodeJS.html) by [David Norman](https://github.com/normand1)
|
- 2016/11/25 - [Swagger Codegen for Swift3 and NodeJS](https://normand1.github.io/blog/swift/swagger/codegen/2016/11/25/Swagger-Codegen-for-Swift3-and-NodeJS.html) by [David Norman](https://github.com/normand1)
|
||||||
- 2017/03/03 - [Swagger Codegen の使い方の簡単な説明です](https://speakerdeck.com/wagyu298/swagger-codegen) by [wagyu298](https://github.com/wagyu298)
|
- 2017/03/03 - [Swagger Codegen の使い方の簡単な説明です](https://speakerdeck.com/wagyu298/swagger-codegen) by [wagyu298](https://github.com/wagyu298)
|
||||||
|
- 2017/03/24 - [Using Open API Specification To Put Lyft SDK Support in the Fast Lane](https://medium.com/lyft-developer-platform/using-open-api-specification-to-put-lyft-sdk-support-in-the-fast-lane-7b623218e4ee) by [Val Polouchkine](https://github.com/vpolouchkine)
|
||||||
- 2017/04/27 - [Swagger Codegen のPHP実装があまりにアレだったので、ライブラリ自作して公開してみた](http://qiita.com/imunew/items/2e9c472e0097e329f2cd) by [imunew](http://qiita.com/imunew)
|
- 2017/04/27 - [Swagger Codegen のPHP実装があまりにアレだったので、ライブラリ自作して公開してみた](http://qiita.com/imunew/items/2e9c472e0097e329f2cd) by [imunew](http://qiita.com/imunew)
|
||||||
- 2017/05/17 - [Diseño de APIs con OpenAPI](https://www.slideshare.net/pjmolina/diseo-de-apis-con-openapi) by [Pedro J. Molina](https://github.com/pjmolina) @ [JSDayES 2017](http://2017.jsday.es/)
|
- 2017/05/17 - [Diseño de APIs con OpenAPI](https://www.slideshare.net/pjmolina/diseo-de-apis-con-openapi) by [Pedro J. Molina](https://github.com/pjmolina) @ [JSDayES 2017](http://2017.jsday.es/)
|
||||||
|
- 2017/05/22 - [Presentation of the Vert.x-Swagger project](http://vertx.io/blog/presentation-of-the-vert-x-swagger-project/) by [@phiz71](http://github.com/phiz71)
|
||||||
|
|
||||||
# Swagger Codegen Core Team
|
# Swagger Codegen Core Team
|
||||||
|
|
||||||
|
|||||||
@@ -38,6 +38,7 @@ public class CodegenOperation {
|
|||||||
public String nickname; // legacy support
|
public String nickname; // legacy support
|
||||||
public String operationIdLowerCase; // for markdown documentation
|
public String operationIdLowerCase; // for markdown documentation
|
||||||
public String operationIdCamelCase; // for class names
|
public String operationIdCamelCase; // for class names
|
||||||
|
public String operationIdSnakeCase;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Check if there's at least one parameter
|
* Check if there's at least one parameter
|
||||||
|
|||||||
@@ -2887,6 +2887,7 @@ public class DefaultCodegen {
|
|||||||
co.operationId = uniqueName;
|
co.operationId = uniqueName;
|
||||||
co.operationIdLowerCase = uniqueName.toLowerCase();
|
co.operationIdLowerCase = uniqueName.toLowerCase();
|
||||||
co.operationIdCamelCase = DefaultCodegen.camelize(uniqueName);
|
co.operationIdCamelCase = DefaultCodegen.camelize(uniqueName);
|
||||||
|
co.operationIdSnakeCase = DefaultCodegen.underscore(uniqueName);
|
||||||
opList.add(co);
|
opList.add(co);
|
||||||
co.baseName = tag;
|
co.baseName = tag;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -190,6 +190,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
|
|||||||
}
|
}
|
||||||
op.vendorExtensions.put("x-codegen-hasRequiredParams", lastRequired != null);
|
op.vendorExtensions.put("x-codegen-hasRequiredParams", lastRequired != null);
|
||||||
|
|
||||||
|
op.vendorExtensions.put("x-codegen-httpMethodUpperCase", httpMethod.toUpperCase());
|
||||||
|
|
||||||
return op;
|
return op;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -224,7 +224,7 @@
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-{{baseName}}-{{nickname}}-0-curl">
|
<div class="tab-pane active" id="examples-{{baseName}}-{{nickname}}-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">{{httpMethod}}</span>{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]"{{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}}{{#hasProduces}} -H "Accept: {{#produces}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/produces}}"{{/hasProduces}}{{#hasConsumes}} -H "Content-Type: {{#consumes}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/consumes}}"{{/hasConsumes}} -H "Authorization: Basic [[basicHash]]"{{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{baseName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X {{vendorExtensions.x-codegen-httpMethodUpperCase}}{{#authMethods}}{{#isApiKey}}{{#isKeyInHeader}} -H "{{keyParamName}}: [[apiKey]]"{{/isKeyInHeader}}{{/isApiKey}}{{#isBasic}}{{#hasProduces}} -H "Accept: {{#produces}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/produces}}"{{/hasProduces}}{{#hasConsumes}} -H "Content-Type: {{#consumes}}{{{mediaType}}}{{#hasMore}},{{/hasMore}}{{/consumes}}"{{/hasConsumes}} -H "Authorization: Basic [[basicHash]]"{{/isBasic}}{{/authMethods}} "{{basePath}}{{path}}{{#hasQueryParams}}?{{#queryParams}}{{^-first}}&{{/-first}}{{baseName}}={{vendorExtensions.x-eg}}{{/queryParams}}{{/hasQueryParams}}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-{{baseName}}-{{nickname}}-0-java">
|
<div class="tab-pane" id="examples-{{baseName}}-{{nickname}}-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">{{>sample_java}}</code></pre>
|
<pre class="prettyprint"><code class="language-java">{{>sample_java}}</code></pre>
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ api_instance = {{{pythonPackageName}}}.{{{classname}}}()
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
{{#summary}} # {{{.}}}
|
{{#summary}} # {{{.}}}
|
||||||
{{/summary}} {{#returnType}}api_response = {{/returnType}}api_instance.{{{operationId}}}({{#allParams}}{{#required}}{{paramName}}{{/required}}{{^required}}{{paramName}}={{paramName}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{#returnType}}
|
{{/summary}} {{#returnType}}api_response = {{/returnType}}api_instance.{{{operationIdSnakeCase}}}({{#allParams}}{{#required}}{{paramName}}{{/required}}{{^required}}{{paramName}}={{paramName}}{{/required}}{{#hasMore}}, {{/hasMore}}{{/allParams}}){{#returnType}}
|
||||||
pprint(api_response){{/returnType}}
|
pprint(api_response){{/returnType}}
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e)
|
print("Exception when calling {{classname}}->{{operationId}}: %s\n" % e)
|
||||||
@@ -19,7 +19,7 @@ Method | HTTP request | Description
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import {{{packageName}}}
|
import {{{packageName}}}
|
||||||
from {{{packageName}}}.rest import ApiException
|
from {{{packageName}}}.rest import ApiException
|
||||||
|
|||||||
@@ -14,7 +14,7 @@ To test code injection */ ' \" =end -- \\r\\n \\n \\r
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
|||||||
@@ -610,16 +610,17 @@ class ApiClient(object):
|
|||||||
:param klass: class literal.
|
:param klass: class literal.
|
||||||
:return: model object.
|
:return: model object.
|
||||||
"""
|
"""
|
||||||
instance = klass()
|
if not klass.swagger_types:
|
||||||
|
|
||||||
if not instance.swagger_types:
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
for attr, attr_type in iteritems(instance.swagger_types):
|
kwargs = {}
|
||||||
|
for attr, attr_type in iteritems(klass.swagger_types):
|
||||||
if data is not None \
|
if data is not None \
|
||||||
and instance.attribute_map[attr] in data \
|
and klass.attribute_map[attr] in data \
|
||||||
and isinstance(data, (list, dict)):
|
and isinstance(data, (list, dict)):
|
||||||
value = data[instance.attribute_map[attr]]
|
value = data[klass.attribute_map[attr]]
|
||||||
setattr(instance, attr, self.__deserialize(value, attr_type))
|
kwargs[attr] = self.__deserialize(value, attr_type)
|
||||||
|
|
||||||
|
instance = klass(**kwargs)
|
||||||
|
|
||||||
return instance
|
return instance
|
||||||
|
|||||||
@@ -21,28 +21,30 @@ class ModelReturn(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
'_return': 'int'
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'_return': 'return'
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self, _return=None):
|
def __init__(self, _return=None):
|
||||||
"""
|
"""
|
||||||
ModelReturn - a model defined in Swagger
|
ModelReturn - a model defined in Swagger
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
and the value is attribute type.
|
|
||||||
:param dict attributeMap: The key is attribute name
|
|
||||||
and the value is json key in definition.
|
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
|
||||||
'_return': 'int'
|
|
||||||
}
|
|
||||||
|
|
||||||
self.attribute_map = {
|
|
||||||
'_return': 'return'
|
|
||||||
}
|
|
||||||
|
|
||||||
self.__return = None
|
self.__return = None
|
||||||
|
|
||||||
# TODO: let required properties as mandatory parameter in the constructor.
|
|
||||||
# - to check if required property is not None (e.g. by calling setter)
|
|
||||||
# - ApiClient.__deserialize_model has to be adapted as well
|
|
||||||
if _return is not None:
|
if _return is not None:
|
||||||
self._return = _return
|
self._return = _return
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -0,0 +1,8 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the BuildConfig class actually packed into the APK */
|
||||||
|
public final class BuildConfig {
|
||||||
|
public final static boolean DEBUG = Boolean.parseBoolean(null);
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the Manifest class actually packed into the APK */
|
||||||
|
public final class Manifest {
|
||||||
|
}
|
||||||
@@ -0,0 +1,7 @@
|
|||||||
|
/*___Generated_by_IDEA___*/
|
||||||
|
|
||||||
|
package io.swagger.client;
|
||||||
|
|
||||||
|
/* This stub is only used by the IDE. It is NOT the R class actually packed into the APK */
|
||||||
|
public final class R {
|
||||||
|
}
|
||||||
@@ -108,11 +108,9 @@ Class | Method | HTTP request | Description
|
|||||||
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
- [ArrayOfNumberOnly](docs/ArrayOfNumberOnly.md)
|
||||||
- [ArrayTest](docs/ArrayTest.md)
|
- [ArrayTest](docs/ArrayTest.md)
|
||||||
- [Capitalization](docs/Capitalization.md)
|
- [Capitalization](docs/Capitalization.md)
|
||||||
- [Cat](docs/Cat.md)
|
|
||||||
- [Category](docs/Category.md)
|
- [Category](docs/Category.md)
|
||||||
- [ClassModel](docs/ClassModel.md)
|
- [ClassModel](docs/ClassModel.md)
|
||||||
- [Client](docs/Client.md)
|
- [Client](docs/Client.md)
|
||||||
- [Dog](docs/Dog.md)
|
|
||||||
- [EnumArrays](docs/EnumArrays.md)
|
- [EnumArrays](docs/EnumArrays.md)
|
||||||
- [EnumClass](docs/EnumClass.md)
|
- [EnumClass](docs/EnumClass.md)
|
||||||
- [EnumTest](docs/EnumTest.md)
|
- [EnumTest](docs/EnumTest.md)
|
||||||
@@ -136,6 +134,8 @@ Class | Method | HTTP request | Description
|
|||||||
- [SpecialModelName](docs/SpecialModelName.md)
|
- [SpecialModelName](docs/SpecialModelName.md)
|
||||||
- [Tag](docs/Tag.md)
|
- [Tag](docs/Tag.md)
|
||||||
- [User](docs/User.md)
|
- [User](docs/User.md)
|
||||||
|
- [Cat](docs/Cat.md)
|
||||||
|
- [Dog](docs/Dog.md)
|
||||||
|
|
||||||
|
|
||||||
## Documentation For Authorization
|
## Documentation For Authorization
|
||||||
|
|||||||
@@ -22,7 +22,7 @@ Test serialization of outer boolean types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -69,7 +69,7 @@ Test serialization of object with outer number type
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -116,7 +116,7 @@ Test serialization of outer number types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -163,7 +163,7 @@ Test serialization of outer string types
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -210,7 +210,7 @@ To test \"client\" model
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -258,7 +258,7 @@ Fake endpoint for testing various parameters 假端點 偽のエンドポイン
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -336,7 +336,7 @@ To test enum parameters
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ Add a new pet to the store
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -74,7 +74,7 @@ Deletes a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -127,7 +127,7 @@ Multiple status values can be provided with comma separated strings
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -179,7 +179,7 @@ Multiple tags can be provided with comma separated strings. Use tag1, tag2, tag3
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -231,7 +231,7 @@ Returns a single pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -285,7 +285,7 @@ Update an existing pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -336,7 +336,7 @@ Updates a pet in the store with form data
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -391,7 +391,7 @@ uploads an image
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ For valid response try integer IDs with value < 1000. Anything above 1000 or non
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -66,7 +66,7 @@ Returns a map of status codes to quantities
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -116,7 +116,7 @@ For valid response try integer IDs with value <= 5 or > 10. Other values will ge
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -164,7 +164,7 @@ Place an order for a pet
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
|||||||
@@ -23,7 +23,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -70,7 +70,7 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -117,7 +117,7 @@ Creates list of users with given input array
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -164,7 +164,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -211,7 +211,7 @@ Get user by user name
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -259,7 +259,7 @@ Logs user into the system
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -309,7 +309,7 @@ Logs out current logged in user session
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
@@ -352,7 +352,7 @@ This can only be done by the logged in user.
|
|||||||
|
|
||||||
### Example
|
### Example
|
||||||
```python
|
```python
|
||||||
from __future__ import print_statement
|
from __future__ import print_function
|
||||||
import time
|
import time
|
||||||
import petstore_api
|
import petstore_api
|
||||||
from petstore_api.rest import ApiException
|
from petstore_api.rest import ApiException
|
||||||
|
|||||||
@@ -22,11 +22,9 @@ from .models.array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
|||||||
from .models.array_of_number_only import ArrayOfNumberOnly
|
from .models.array_of_number_only import ArrayOfNumberOnly
|
||||||
from .models.array_test import ArrayTest
|
from .models.array_test import ArrayTest
|
||||||
from .models.capitalization import Capitalization
|
from .models.capitalization import Capitalization
|
||||||
from .models.cat import Cat
|
|
||||||
from .models.category import Category
|
from .models.category import Category
|
||||||
from .models.class_model import ClassModel
|
from .models.class_model import ClassModel
|
||||||
from .models.client import Client
|
from .models.client import Client
|
||||||
from .models.dog import Dog
|
|
||||||
from .models.enum_arrays import EnumArrays
|
from .models.enum_arrays import EnumArrays
|
||||||
from .models.enum_class import EnumClass
|
from .models.enum_class import EnumClass
|
||||||
from .models.enum_test import EnumTest
|
from .models.enum_test import EnumTest
|
||||||
@@ -50,6 +48,8 @@ from .models.read_only_first import ReadOnlyFirst
|
|||||||
from .models.special_model_name import SpecialModelName
|
from .models.special_model_name import SpecialModelName
|
||||||
from .models.tag import Tag
|
from .models.tag import Tag
|
||||||
from .models.user import User
|
from .models.user import User
|
||||||
|
from .models.cat import Cat
|
||||||
|
from .models.dog import Dog
|
||||||
|
|
||||||
# import apis into sdk package
|
# import apis into sdk package
|
||||||
from .apis.fake_api import FakeApi
|
from .apis.fake_api import FakeApi
|
||||||
|
|||||||
@@ -100,7 +100,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@@ -193,7 +193,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@@ -286,7 +286,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
@@ -379,7 +379,7 @@ class FakeApi(object):
|
|||||||
|
|
||||||
path_params = {}
|
path_params = {}
|
||||||
|
|
||||||
query_params = {}
|
query_params = []
|
||||||
|
|
||||||
header_params = {}
|
header_params = {}
|
||||||
|
|
||||||
|
|||||||
@@ -22,11 +22,9 @@ from .array_of_array_of_number_only import ArrayOfArrayOfNumberOnly
|
|||||||
from .array_of_number_only import ArrayOfNumberOnly
|
from .array_of_number_only import ArrayOfNumberOnly
|
||||||
from .array_test import ArrayTest
|
from .array_test import ArrayTest
|
||||||
from .capitalization import Capitalization
|
from .capitalization import Capitalization
|
||||||
from .cat import Cat
|
|
||||||
from .category import Category
|
from .category import Category
|
||||||
from .class_model import ClassModel
|
from .class_model import ClassModel
|
||||||
from .client import Client
|
from .client import Client
|
||||||
from .dog import Dog
|
|
||||||
from .enum_arrays import EnumArrays
|
from .enum_arrays import EnumArrays
|
||||||
from .enum_class import EnumClass
|
from .enum_class import EnumClass
|
||||||
from .enum_test import EnumTest
|
from .enum_test import EnumTest
|
||||||
@@ -50,3 +48,5 @@ from .read_only_first import ReadOnlyFirst
|
|||||||
from .special_model_name import SpecialModelName
|
from .special_model_name import SpecialModelName
|
||||||
from .tag import Tag
|
from .tag import Tag
|
||||||
from .user import User
|
from .user import User
|
||||||
|
from .cat import Cat
|
||||||
|
from .dog import Dog
|
||||||
|
|||||||
@@ -21,22 +21,28 @@ class OuterBoolean(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterBoolean - a model defined in Swagger
|
OuterBoolean - a model defined in Swagger
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
and the value is attribute type.
|
|
||||||
:param dict attributeMap: The key is attribute name
|
|
||||||
and the value is json key in definition.
|
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
self.attribute_map = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
|
|||||||
@@ -21,30 +21,42 @@ class OuterComposite(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
'my_number': 'OuterNumber',
|
||||||
|
'my_string': 'OuterString',
|
||||||
|
'my_boolean': 'OuterBoolean'
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
'my_number': 'my_number',
|
||||||
|
'my_string': 'my_string',
|
||||||
|
'my_boolean': 'my_boolean'
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self, my_number=None, my_string=None, my_boolean=None):
|
def __init__(self, my_number=None, my_string=None, my_boolean=None):
|
||||||
"""
|
"""
|
||||||
OuterComposite - a model defined in Swagger
|
OuterComposite - a model defined in Swagger
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
and the value is attribute type.
|
|
||||||
:param dict attributeMap: The key is attribute name
|
|
||||||
and the value is json key in definition.
|
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
|
||||||
'my_number': 'OuterNumber',
|
|
||||||
'my_string': 'OuterString',
|
|
||||||
'my_boolean': 'OuterBoolean'
|
|
||||||
}
|
|
||||||
|
|
||||||
self.attribute_map = {
|
self._my_number = None
|
||||||
'my_number': 'my_number',
|
self._my_string = None
|
||||||
'my_string': 'my_string',
|
self._my_boolean = None
|
||||||
'my_boolean': 'my_boolean'
|
|
||||||
}
|
|
||||||
|
|
||||||
self._my_number = my_number
|
if my_number is not None:
|
||||||
self._my_string = my_string
|
self.my_number = my_number
|
||||||
self._my_boolean = my_boolean
|
if my_string is not None:
|
||||||
|
self.my_string = my_string
|
||||||
|
if my_boolean is not None:
|
||||||
|
self.my_boolean = my_boolean
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def my_number(self):
|
def my_number(self):
|
||||||
|
|||||||
@@ -21,22 +21,28 @@ class OuterNumber(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterNumber - a model defined in Swagger
|
OuterNumber - a model defined in Swagger
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
and the value is attribute type.
|
|
||||||
:param dict attributeMap: The key is attribute name
|
|
||||||
and the value is json key in definition.
|
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
self.attribute_map = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
|
|||||||
@@ -21,22 +21,28 @@ class OuterString(object):
|
|||||||
NOTE: This class is auto generated by the swagger code generator program.
|
NOTE: This class is auto generated by the swagger code generator program.
|
||||||
Do not edit the class manually.
|
Do not edit the class manually.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
|
||||||
|
"""
|
||||||
|
Attributes:
|
||||||
|
swagger_types (dict): The key is attribute name
|
||||||
|
and the value is attribute type.
|
||||||
|
attribute_map (dict): The key is attribute name
|
||||||
|
and the value is json key in definition.
|
||||||
|
"""
|
||||||
|
swagger_types = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
attribute_map = {
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
"""
|
"""
|
||||||
OuterString - a model defined in Swagger
|
OuterString - a model defined in Swagger
|
||||||
|
|
||||||
:param dict swaggerTypes: The key is attribute name
|
|
||||||
and the value is attribute type.
|
|
||||||
:param dict attributeMap: The key is attribute name
|
|
||||||
and the value is json key in definition.
|
|
||||||
"""
|
"""
|
||||||
self.swagger_types = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
self.attribute_map = {
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
def to_dict(self):
|
def to_dict(self):
|
||||||
|
|||||||
1
samples/html2/.swagger-codegen/VERSION
Normal file
1
samples/html2/.swagger-codegen/VERSION
Normal file
@@ -0,0 +1 @@
|
|||||||
|
2.2.3-SNAPSHOT
|
||||||
@@ -1012,7 +1012,7 @@ margin-bottom: 20px;
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-addPet-0-curl">
|
<div class="tab-pane active" id="examples-Pet-addPet-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/pet"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/pet"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-addPet-0-java">
|
<div class="tab-pane" id="examples-Pet-addPet-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -1143,7 +1143,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-addPet-0-php">
|
<div class="tab-pane" id="examples-Pet-addPet-0-php">
|
||||||
@@ -1199,7 +1200,7 @@ body = # Pet | Pet object that needs to be added to the store
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Add a new pet to the store
|
# Add a new pet to the store
|
||||||
api_instance.addPet(body)
|
api_instance.add_pet(body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->addPet: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->addPet: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -1298,7 +1299,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-deletePet-0-curl">
|
<div class="tab-pane active" id="examples-Pet-deletePet-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-deletePet-0-java">
|
<div class="tab-pane" id="examples-Pet-deletePet-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -1437,7 +1438,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-deletePet-0-php">
|
<div class="tab-pane" id="examples-Pet-deletePet-0-php">
|
||||||
@@ -1496,7 +1498,7 @@ apiKey = apiKey_example # String | (optional)
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Deletes a pet
|
# Deletes a pet
|
||||||
api_instance.deletePet(petId, apiKey=apiKey)
|
api_instance.delete_pet(petId, apiKey=apiKey)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->deletePet: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->deletePet: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -1633,7 +1635,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-findPetsByStatus-0-curl">
|
<div class="tab-pane active" id="examples-Pet-findPetsByStatus-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/pet/findByStatus?status="</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/pet/findByStatus?status="</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-java">
|
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -1770,7 +1772,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-php">
|
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-php">
|
||||||
@@ -1828,7 +1831,7 @@ status = # array[String] | Status values that need to be considered for filter
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Finds Pets by status
|
# Finds Pets by status
|
||||||
api_response = api_instance.findPetsByStatus(status)
|
api_response = api_instance.find_pets_by_status(status)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->findPetsByStatus: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->findPetsByStatus: %s\n" % e)</code></pre>
|
||||||
@@ -1861,8 +1864,8 @@ except ApiException as e:
|
|||||||
"type" : "array",
|
"type" : "array",
|
||||||
"items" : {
|
"items" : {
|
||||||
"type" : "string",
|
"type" : "string",
|
||||||
"default" : "available",
|
"enum" : [ "available", "pending", "sold" ],
|
||||||
"enum" : [ "available", "pending", "sold" ]
|
"default" : "available"
|
||||||
},
|
},
|
||||||
"collectionFormat" : "csv"
|
"collectionFormat" : "csv"
|
||||||
};
|
};
|
||||||
@@ -1978,7 +1981,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-findPetsByTags-0-curl">
|
<div class="tab-pane active" id="examples-Pet-findPetsByTags-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/pet/findByTags?tags="</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/pet/findByTags?tags="</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-java">
|
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -2115,7 +2118,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-php">
|
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-php">
|
||||||
@@ -2173,7 +2177,7 @@ tags = # array[String] | Tags to filter by
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Finds Pets by tags
|
# Finds Pets by tags
|
||||||
api_response = api_instance.findPetsByTags(tags)
|
api_response = api_instance.find_pets_by_tags(tags)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->findPetsByTags: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->findPetsByTags: %s\n" % e)</code></pre>
|
||||||
@@ -2321,7 +2325,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-getPetById-0-curl">
|
<div class="tab-pane active" id="examples-Pet-getPetById-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-getPetById-0-java">
|
<div class="tab-pane" id="examples-Pet-getPetById-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -2466,7 +2470,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-getPetById-0-php">
|
<div class="tab-pane" id="examples-Pet-getPetById-0-php">
|
||||||
@@ -2530,7 +2535,7 @@ petId = 789 # Long | ID of pet to return
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Find pet by ID
|
# Find pet by ID
|
||||||
api_response = api_instance.getPetById(petId)
|
api_response = api_instance.get_pet_by_id(petId)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->getPetById: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->getPetById: %s\n" % e)</code></pre>
|
||||||
@@ -2680,7 +2685,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-updatePet-0-curl">
|
<div class="tab-pane active" id="examples-Pet-updatePet-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "http://petstore.swagger.io/v2/pet"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X PUT "http://petstore.swagger.io/v2/pet"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-updatePet-0-java">
|
<div class="tab-pane" id="examples-Pet-updatePet-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -2811,7 +2816,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-updatePet-0-php">
|
<div class="tab-pane" id="examples-Pet-updatePet-0-php">
|
||||||
@@ -2867,7 +2873,7 @@ body = # Pet | Pet object that needs to be added to the store
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Update an existing pet
|
# Update an existing pet
|
||||||
api_instance.updatePet(body)
|
api_instance.update_pet(body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->updatePet: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->updatePet: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -2982,7 +2988,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-updatePetWithForm-0-curl">
|
<div class="tab-pane active" id="examples-Pet-updatePetWithForm-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/pet/{petId}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-java">
|
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -3127,7 +3133,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-php">
|
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-php">
|
||||||
@@ -3189,7 +3196,7 @@ status = status_example # String | Updated status of the pet (optional)
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Updates a pet in the store with form data
|
# Updates a pet in the store with form data
|
||||||
api_instance.updatePetWithForm(petId, name=name, status=status)
|
api_instance.update_pet_with_form(petId, name=name, status=status)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->updatePetWithForm: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->updatePetWithForm: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -3360,7 +3367,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Pet-uploadFile-0-curl">
|
<div class="tab-pane active" id="examples-Pet-uploadFile-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/pet/{petId}/uploadImage"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/pet/{petId}/uploadImage"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Pet-uploadFile-0-java">
|
<div class="tab-pane" id="examples-Pet-uploadFile-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -3511,7 +3518,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Pet-uploadFile-0-php">
|
<div class="tab-pane" id="examples-Pet-uploadFile-0-php">
|
||||||
@@ -3575,7 +3583,7 @@ file = /path/to/file.txt # File | file to upload (optional)
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# uploads an image
|
# uploads an image
|
||||||
api_response = api_instance.uploadFile(petId, additionalMetadata=additionalMetadata, file=file)
|
api_response = api_instance.upload_file(petId, additionalMetadata=additionalMetadata, file=file)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling PetApi->uploadFile: %s\n" % e)</code></pre>
|
print("Exception when calling PetApi->uploadFile: %s\n" % e)</code></pre>
|
||||||
@@ -3785,7 +3793,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Store-deleteOrder-0-curl">
|
<div class="tab-pane active" id="examples-Store-deleteOrder-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://petstore.swagger.io/v2/store/order/{orderId}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE "http://petstore.swagger.io/v2/store/order/{orderId}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Store-deleteOrder-0-java">
|
<div class="tab-pane" id="examples-Store-deleteOrder-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -3898,7 +3906,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Store-deleteOrder-0-php">
|
<div class="tab-pane" id="examples-Store-deleteOrder-0-php">
|
||||||
@@ -3945,7 +3954,7 @@ orderId = orderId_example # String | ID of the order that needs to be deleted
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Delete purchase order by ID
|
# Delete purchase order by ID
|
||||||
api_instance.deleteOrder(orderId)
|
api_instance.delete_order(orderId)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling StoreApi->deleteOrder: %s\n" % e)</code></pre>
|
print("Exception when calling StoreApi->deleteOrder: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -4050,7 +4059,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Store-getInventory-0-curl">
|
<div class="tab-pane active" id="examples-Store-getInventory-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/store/inventory"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET -H "api_key: [[apiKey]]" "http://petstore.swagger.io/v2/store/inventory"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Store-getInventory-0-java">
|
<div class="tab-pane" id="examples-Store-getInventory-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -4188,7 +4197,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Store-getInventory-0-php">
|
<div class="tab-pane" id="examples-Store-getInventory-0-php">
|
||||||
@@ -4249,7 +4259,7 @@ api_instance = swagger_client.StoreApi()
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Returns pet inventories by status
|
# Returns pet inventories by status
|
||||||
api_response = api_instance.getInventory()
|
api_response = api_instance.get_inventory()
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling StoreApi->getInventory: %s\n" % e)</code></pre>
|
print("Exception when calling StoreApi->getInventory: %s\n" % e)</code></pre>
|
||||||
@@ -4346,7 +4356,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Store-getOrderById-0-curl">
|
<div class="tab-pane active" id="examples-Store-getOrderById-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/store/order/{orderId}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/store/order/{orderId}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Store-getOrderById-0-java">
|
<div class="tab-pane" id="examples-Store-getOrderById-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -4465,7 +4475,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Store-getOrderById-0-php">
|
<div class="tab-pane" id="examples-Store-getOrderById-0-php">
|
||||||
@@ -4514,7 +4525,7 @@ orderId = 789 # Long | ID of pet that needs to be fetched
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Find purchase order by ID
|
# Find purchase order by ID
|
||||||
api_response = api_instance.getOrderById(orderId)
|
api_response = api_instance.get_order_by_id(orderId)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling StoreApi->getOrderById: %s\n" % e)</code></pre>
|
print("Exception when calling StoreApi->getOrderById: %s\n" % e)</code></pre>
|
||||||
@@ -4666,7 +4677,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-Store-placeOrder-0-curl">
|
<div class="tab-pane active" id="examples-Store-placeOrder-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/store/order"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/store/order"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-Store-placeOrder-0-java">
|
<div class="tab-pane" id="examples-Store-placeOrder-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -4785,7 +4796,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-Store-placeOrder-0-php">
|
<div class="tab-pane" id="examples-Store-placeOrder-0-php">
|
||||||
@@ -4834,7 +4846,7 @@ body = # Order | order placed for purchasing the pet
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Place an order for a pet
|
# Place an order for a pet
|
||||||
api_response = api_instance.placeOrder(body)
|
api_response = api_instance.place_order(body)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling StoreApi->placeOrder: %s\n" % e)</code></pre>
|
print("Exception when calling StoreApi->placeOrder: %s\n" % e)</code></pre>
|
||||||
@@ -4980,7 +4992,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-createUser-0-curl">
|
<div class="tab-pane active" id="examples-User-createUser-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/user"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/user"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-createUser-0-java">
|
<div class="tab-pane" id="examples-User-createUser-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -5093,7 +5105,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-createUser-0-php">
|
<div class="tab-pane" id="examples-User-createUser-0-php">
|
||||||
@@ -5140,7 +5153,7 @@ body = # User | Created user object
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Create user
|
# Create user
|
||||||
api_instance.createUser(body)
|
api_instance.create_user(body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->createUser: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->createUser: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -5239,7 +5252,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-createUsersWithArrayInput-0-curl">
|
<div class="tab-pane active" id="examples-User-createUsersWithArrayInput-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/user/createWithArray"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/user/createWithArray"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-java">
|
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -5352,7 +5365,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-php">
|
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-php">
|
||||||
@@ -5399,7 +5413,7 @@ body = # array[User] | List of user object
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Creates list of users with given input array
|
# Creates list of users with given input array
|
||||||
api_instance.createUsersWithArrayInput(body)
|
api_instance.create_users_with_array_input(body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->createUsersWithArrayInput: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->createUsersWithArrayInput: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -5501,7 +5515,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-createUsersWithListInput-0-curl">
|
<div class="tab-pane active" id="examples-User-createUsersWithListInput-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">post</span> "http://petstore.swagger.io/v2/user/createWithList"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X POST "http://petstore.swagger.io/v2/user/createWithList"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-java">
|
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -5614,7 +5628,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-php">
|
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-php">
|
||||||
@@ -5661,7 +5676,7 @@ body = # array[User] | List of user object
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Creates list of users with given input array
|
# Creates list of users with given input array
|
||||||
api_instance.createUsersWithListInput(body)
|
api_instance.create_users_with_list_input(body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->createUsersWithListInput: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->createUsersWithListInput: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -5763,7 +5778,7 @@ $(document).ready(function() {
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-deleteUser-0-curl">
|
<div class="tab-pane active" id="examples-User-deleteUser-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">delete</span> "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X DELETE "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-deleteUser-0-java">
|
<div class="tab-pane" id="examples-User-deleteUser-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -5876,7 +5891,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-deleteUser-0-php">
|
<div class="tab-pane" id="examples-User-deleteUser-0-php">
|
||||||
@@ -5923,7 +5939,7 @@ username = username_example # String | The name that needs to be deleted
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Delete user
|
# Delete user
|
||||||
api_instance.deleteUser(username)
|
api_instance.delete_user(username)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->deleteUser: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->deleteUser: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -6028,7 +6044,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-getUserByName-0-curl">
|
<div class="tab-pane active" id="examples-User-getUserByName-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-getUserByName-0-java">
|
<div class="tab-pane" id="examples-User-getUserByName-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -6147,7 +6163,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-getUserByName-0-php">
|
<div class="tab-pane" id="examples-User-getUserByName-0-php">
|
||||||
@@ -6196,7 +6213,7 @@ username = username_example # String | The name that needs to be fetched. Use us
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Get user by user name
|
# Get user by user name
|
||||||
api_response = api_instance.getUserByName(username)
|
api_response = api_instance.get_user_by_name(username)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->getUserByName: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->getUserByName: %s\n" % e)</code></pre>
|
||||||
@@ -6345,7 +6362,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-loginUser-0-curl">
|
<div class="tab-pane active" id="examples-User-loginUser-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/user/login?username=&password="</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/user/login?username=&password="</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-loginUser-0-java">
|
<div class="tab-pane" id="examples-User-loginUser-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -6471,7 +6488,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-loginUser-0-php">
|
<div class="tab-pane" id="examples-User-loginUser-0-php">
|
||||||
@@ -6523,7 +6541,7 @@ password = password_example # String | The password for login in clear text
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Logs user into the system
|
# Logs user into the system
|
||||||
api_response = api_instance.loginUser(username, password)
|
api_response = api_instance.login_user(username, password)
|
||||||
pprint(api_response)
|
pprint(api_response)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->loginUser: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->loginUser: %s\n" % e)</code></pre>
|
||||||
@@ -6734,7 +6752,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-logoutUser-0-curl">
|
<div class="tab-pane active" id="examples-User-logoutUser-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">get</span> "http://petstore.swagger.io/v2/user/logout"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X GET "http://petstore.swagger.io/v2/user/logout"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-logoutUser-0-java">
|
<div class="tab-pane" id="examples-User-logoutUser-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -6840,7 +6858,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-logoutUser-0-php">
|
<div class="tab-pane" id="examples-User-logoutUser-0-php">
|
||||||
@@ -6884,7 +6903,7 @@ api_instance = swagger_client.UserApi()
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Logs out current logged in user session
|
# Logs out current logged in user session
|
||||||
api_instance.logoutUser()
|
api_instance.logout_user()
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->logoutUser: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->logoutUser: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
@@ -6941,7 +6960,7 @@ except ApiException as e:
|
|||||||
|
|
||||||
<div class="tab-content">
|
<div class="tab-content">
|
||||||
<div class="tab-pane active" id="examples-User-updateUser-0-curl">
|
<div class="tab-pane active" id="examples-User-updateUser-0-curl">
|
||||||
<pre class="prettyprint"><code class="language-bsh">curl -X <span style="text-transform: uppercase;">put</span> "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
<pre class="prettyprint"><code class="language-bsh">curl -X PUT "http://petstore.swagger.io/v2/user/{username}"</code></pre>
|
||||||
</div>
|
</div>
|
||||||
<div class="tab-pane" id="examples-User-updateUser-0-java">
|
<div class="tab-pane" id="examples-User-updateUser-0-java">
|
||||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||||
@@ -7061,7 +7080,8 @@ namespace Example
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}</code></pre>
|
}
|
||||||
|
</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="tab-pane" id="examples-User-updateUser-0-php">
|
<div class="tab-pane" id="examples-User-updateUser-0-php">
|
||||||
@@ -7111,7 +7131,7 @@ body = # User | Updated user object
|
|||||||
|
|
||||||
try:
|
try:
|
||||||
# Updated user
|
# Updated user
|
||||||
api_instance.updateUser(username, body)
|
api_instance.update_user(username, body)
|
||||||
except ApiException as e:
|
except ApiException as e:
|
||||||
print("Exception when calling UserApi->updateUser: %s\n" % e)</code></pre>
|
print("Exception when calling UserApi->updateUser: %s\n" % e)</code></pre>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user