Update html, dynamic-html petstore, fix example value for form parameters (#122)

* update dynamic-html samples with oas2

* update dynamic-html oas3 (no change)

* update html petstore (oas2)

* update html petstore with oas3

* fix example value for form parameters

* fix javadoc string
This commit is contained in:
William Cheng
2018-04-18 17:42:38 +08:00
committed by GitHub
parent 391c75b5b3
commit 05f5c5798b
17 changed files with 299 additions and 314 deletions

View File

@@ -5,7 +5,7 @@
<h2><a name="addPet"></a>addPet</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/pet</code>
<h3 class="section">HTTP Method</h3>
@@ -20,7 +20,7 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-name">Pet</span>
<span class="param-type">Pet(Pet)</span>
<p class="param-description">Pet object that needs to be added to the store</p>
@@ -29,7 +29,7 @@
<h2><a name="deletePet"></a>deletePet</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/pet/{petId}</code>
<h3 class="section">HTTP Method</h3>
@@ -136,7 +136,7 @@
<h2><a name="updatePet"></a>updatePet</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/pet</code>
<h3 class="section">HTTP Method</h3>
@@ -151,7 +151,7 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-name">Pet</span>
<span class="param-type">Pet(Pet)</span>
<p class="param-description">Pet object that needs to be added to the store</p>
@@ -160,7 +160,7 @@
<h2><a name="updatePetWithForm"></a>updatePetWithForm</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/pet/{petId}</code>
<h3 class="section">HTTP Method</h3>
@@ -187,7 +187,7 @@
<span class="param-name">name</span>
<span class="param-type">String</span>
<span class="param-type">String(string)</span>
<p class="param-description">Updated name of the pet</p>
</li>
@@ -198,7 +198,7 @@
<span class="param-name">status</span>
<span class="param-type">String</span>
<span class="param-type">String(string)</span>
<p class="param-description">Updated status of the pet</p>
</li>
@@ -206,7 +206,7 @@
<h2><a name="uploadFile"></a>uploadFile</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/pet/{petId}/uploadImage</code>
<h3 class="section">HTTP Method</h3>
@@ -233,7 +233,7 @@
<span class="param-name">additionalMetadata</span>
<span class="param-type">String</span>
<span class="param-type">String(string)</span>
<p class="param-description">Additional data to pass to server</p>
</li>
@@ -244,7 +244,7 @@
<span class="param-name">file</span>
<span class="param-type">File</span>
<span class="param-type">File(file)</span>
<p class="param-description">file to upload</p>
</li>

View File

@@ -66,7 +66,7 @@
<h2><a name="placeOrder"></a>placeOrder</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/store/order</code>
<h3 class="section">HTTP Method</h3>
@@ -81,7 +81,7 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-name">Order</span>
<span class="param-type">Order(Order)</span>
<p class="param-description">order placed for purchasing the pet</p>

View File

@@ -20,7 +20,7 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-name">User</span>
<span class="param-type">User(User)</span>
<p class="param-description">Created user object</p>
@@ -29,7 +29,7 @@
<h2><a name="createUsersWithArrayInput"></a>createUsersWithArrayInput</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/user/createWithArray</code>
<h3 class="section">HTTP Method</h3>
@@ -44,8 +44,8 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-type">List(User)</span>
<span class="param-name">array</span>
<span class="param-type">List(array)</span>
<p class="param-description">List of user object</p>
</li>
@@ -53,7 +53,7 @@
<h2><a name="createUsersWithListInput"></a>createUsersWithListInput</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/user/createWithList</code>
<h3 class="section">HTTP Method</h3>
@@ -68,8 +68,8 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-type">List(User)</span>
<span class="param-name">array</span>
<span class="param-type">List(array)</span>
<p class="param-description">List of user object</p>
</li>
@@ -101,7 +101,7 @@
<h2><a name="getUserByName"></a>getUserByName</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/user/{username}</code>
<h3 class="section">HTTP Method</h3>
@@ -119,13 +119,13 @@
<span class="param-name">username</span>
<span class="param-type">String</span>
<p class="param-description">The name that needs to be fetched. Use user1 for testing. </p>
<p class="param-description">The name that needs to be fetched. Use user1 for testing.</p>
</li>
</ul>
<h2><a name="loginUser"></a>loginUser</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/user/login</code>
<h3 class="section">HTTP Method</h3>
@@ -160,7 +160,7 @@
<h2><a name="logoutUser"></a>logoutUser</h2>
<hr>
<p></p>
<p></p>
<h3 class="section">URL</h3>
<code>http://petstore.swagger.io/v2/user/logout</code>
<h3 class="section">HTTP Method</h3>
@@ -199,7 +199,7 @@
<span class="param-in">Body: </span>
<span class="param-name">body</span>
<span class="param-name">User</span>
<span class="param-type">User(User)</span>
<p class="param-description">Updated user object</p>