forked from loafle/openapi-generator-original
This commit is contained in:
parent
e2c91967a1
commit
84df23f025
@ -190,6 +190,8 @@ public class StaticHtml2Generator extends DefaultCodegen implements CodegenConfi
|
||||
}
|
||||
op.vendorExtensions.put("x-codegen-hasRequiredParams", lastRequired != null);
|
||||
|
||||
op.vendorExtensions.put("x-codegen-httpMethodUpperCase", httpMethod.toUpperCase());
|
||||
|
||||
return op;
|
||||
}
|
||||
|
||||
|
@ -224,7 +224,7 @@
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-{{baseName}}-{{nickname}}-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">{{>sample_java}}</code></pre>
|
||||
|
@ -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 {
|
||||
}
|
@ -1012,7 +1012,7 @@ margin-bottom: 20px;
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-addPet-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -1143,7 +1143,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-addPet-0-php">
|
||||
@ -1298,7 +1299,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-deletePet-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -1437,7 +1438,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-deletePet-0-php">
|
||||
@ -1633,7 +1635,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-findPetsByStatus-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -1770,7 +1772,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByStatus-0-php">
|
||||
@ -1861,8 +1864,8 @@ except ApiException as e:
|
||||
"type" : "array",
|
||||
"items" : {
|
||||
"type" : "string",
|
||||
"default" : "available",
|
||||
"enum" : [ "available", "pending", "sold" ]
|
||||
"enum" : [ "available", "pending", "sold" ],
|
||||
"default" : "available"
|
||||
},
|
||||
"collectionFormat" : "csv"
|
||||
};
|
||||
@ -1978,7 +1981,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-findPetsByTags-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -2115,7 +2118,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-findPetsByTags-0-php">
|
||||
@ -2321,7 +2325,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-getPetById-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -2466,7 +2470,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-getPetById-0-php">
|
||||
@ -2680,7 +2685,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-updatePet-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -2811,7 +2816,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-updatePet-0-php">
|
||||
@ -2982,7 +2988,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-updatePetWithForm-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -3127,7 +3133,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-updatePetWithForm-0-php">
|
||||
@ -3360,7 +3367,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Pet-uploadFile-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -3511,7 +3518,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Pet-uploadFile-0-php">
|
||||
@ -3785,7 +3793,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Store-deleteOrder-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -3898,7 +3906,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Store-deleteOrder-0-php">
|
||||
@ -4050,7 +4059,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Store-getInventory-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -4188,7 +4197,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Store-getInventory-0-php">
|
||||
@ -4346,7 +4356,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Store-getOrderById-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -4465,7 +4475,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Store-getOrderById-0-php">
|
||||
@ -4666,7 +4677,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-Store-placeOrder-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -4785,7 +4796,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-Store-placeOrder-0-php">
|
||||
@ -4980,7 +4992,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-createUser-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -5093,7 +5105,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUser-0-php">
|
||||
@ -5239,7 +5252,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-createUsersWithArrayInput-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -5352,7 +5365,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUsersWithArrayInput-0-php">
|
||||
@ -5501,7 +5515,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-createUsersWithListInput-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -5614,7 +5628,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-createUsersWithListInput-0-php">
|
||||
@ -5763,7 +5778,7 @@ $(document).ready(function() {
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-deleteUser-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -5876,7 +5891,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-deleteUser-0-php">
|
||||
@ -6028,7 +6044,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-getUserByName-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -6147,7 +6163,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-getUserByName-0-php">
|
||||
@ -6345,7 +6362,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-loginUser-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -6471,7 +6488,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-loginUser-0-php">
|
||||
@ -6734,7 +6752,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-logoutUser-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -6840,7 +6858,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-logoutUser-0-php">
|
||||
@ -6941,7 +6960,7 @@ except ApiException as e:
|
||||
|
||||
<div class="tab-content">
|
||||
<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 class="tab-pane" id="examples-User-updateUser-0-java">
|
||||
<pre class="prettyprint"><code class="language-java">import io.swagger.client.*;
|
||||
@ -7061,7 +7080,8 @@ namespace Example
|
||||
}
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
}
|
||||
</code></pre>
|
||||
</div>
|
||||
|
||||
<div class="tab-pane" id="examples-User-updateUser-0-php">
|
||||
|
Loading…
x
Reference in New Issue
Block a user