forked from loafle/openapi-generator-original
dynamic-html: refactor parameters view
This commit is contained in:
parent
0248d6fd9f
commit
3bc319d534
@ -151,15 +151,31 @@
|
|||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param {
|
li.parameter {
|
||||||
|
list-style: none;
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
padding-left: 1em;
|
||||||
width: 220px;
|
}
|
||||||
clear: left;
|
|
||||||
|
.param{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.param-name {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.param-in {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
.param-type {
|
||||||
|
margin-left: 1em;
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param-description {
|
.param-description {
|
||||||
float: left;
|
display: block;
|
||||||
font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
|
font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,4 +305,4 @@
|
|||||||
|
|
||||||
.top-bar ul#nav:hover li {
|
.top-bar ul#nav:hover li {
|
||||||
border-color: #222222;
|
border-color: #222222;
|
||||||
}
|
}
|
||||||
|
@ -17,36 +17,19 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
{{#allParams}}
|
{{#allParams}}
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
{{#isContainer}}
|
{{#isFormParam}}<span class="param-in">Form: </span>{{/isFormParam}}
|
||||||
{{#complexType}}
|
{{#isQueryParam}}<span class="param-in">Query: </span>{{/isQueryParam}}
|
||||||
<!-- container / complex -->
|
{{#isPathParam}}<span class="param-in">Path: </span>{{/isPathParam}}
|
||||||
{{/complexType}}
|
{{#isHeaderParam}}<span class="param-in">Header: </span>{{/isHeaderParam}}
|
||||||
{{#simpleType}}
|
{{#isBodyParam}}<span class="param-in">Body: </span>{{/isBodyParam}}
|
||||||
<!-- container / simple -->
|
<span class="param-name">{{paramName}}</span>
|
||||||
<div class="param">{{paramName}} : {{dataType}} ({{type}})</div>
|
<span class="param-type">{{dataType}}{{#baseType}}({{baseType}}){{/baseType}}</span>
|
||||||
<span>{{#optional}}optional{{/optional}}</span>
|
{{#optional}}<span class="param-optional-flag">(optional)</span>{{/optional}}
|
||||||
</div>
|
<p class="param-description">{{description}}</p>
|
||||||
{{/simpleType}}
|
</li>
|
||||||
{{/isContainer}}
|
|
||||||
{{#isNotContainer}}
|
|
||||||
{{#simpleType}}
|
|
||||||
<!-- not container / simple -->
|
|
||||||
<div class="param">{{paramName}} : {{dataType}} ({{type}})</div>
|
|
||||||
<span>{{#optional}}optional{{/optional}}</span>
|
|
||||||
</div>
|
|
||||||
{{/simpleType}}
|
|
||||||
{{/isNotContainer}}
|
|
||||||
|
|
||||||
{{#foo}}
|
|
||||||
<div class="param">{{paramName}} : {{#complexType}} <div class="model" id="{{complexType}}"><a href="#">{{dataType}}</a>{{/complexType}}{{#simpleType}}{{dataType}}{{/simpleType}} ({{type}})</div>
|
|
||||||
<span>{{#optional}}optional{{/optional}}</span>
|
|
||||||
</div>
|
|
||||||
{{/foo}}
|
|
||||||
<p class="param-description">{{description}}</p>
|
|
||||||
</div>
|
|
||||||
{{/allParams}}
|
{{/allParams}}
|
||||||
</ul>
|
</ul>
|
||||||
{{/operation}}
|
{{/operation}}
|
||||||
{{/operations}}
|
{{/operations}}
|
||||||
</div>
|
</div>
|
||||||
|
@ -151,15 +151,31 @@
|
|||||||
padding-top: 20px;
|
padding-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param {
|
li.parameter {
|
||||||
|
list-style: none;
|
||||||
display: block;
|
display: block;
|
||||||
float: left;
|
padding-left: 1em;
|
||||||
width: 220px;
|
}
|
||||||
clear: left;
|
|
||||||
|
.param{
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
|
.param-name {
|
||||||
|
margin-left: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.param-in {
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
.param-type {
|
||||||
|
margin-left: 1em;
|
||||||
|
font-style: italic;
|
||||||
}
|
}
|
||||||
|
|
||||||
.param-description {
|
.param-description {
|
||||||
float: left;
|
display: block;
|
||||||
font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
|
font-family: 'Helvetica Neue', Arial, 'Liberation Sans', FreeSans, sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -289,4 +305,4 @@
|
|||||||
|
|
||||||
.top-bar ul#nav:hover li {
|
.top-bar ul#nav:hover li {
|
||||||
border-color: #222222;
|
border-color: #222222;
|
||||||
}
|
}
|
||||||
|
@ -17,13 +17,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Pet object that needs to be added to the store</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">Pet</span>
|
||||||
|
|
||||||
|
<p class="param-description">Pet object that needs to be added to the store</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -40,13 +44,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Pet object that needs to be added to the store</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">Pet</span>
|
||||||
|
|
||||||
|
<p class="param-description">Pet object that needs to be added to the store</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -63,13 +71,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
<span class="param-in">Query: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Status values that need to be considered for filter</p>
|
<span class="param-name">status</span>
|
||||||
</div>
|
<span class="param-type">List(String)</span>
|
||||||
|
|
||||||
|
<p class="param-description">Status values that need to be considered for filter</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -86,13 +98,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
<span class="param-in">Query: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Tags to filter by</p>
|
<span class="param-name">tags</span>
|
||||||
</div>
|
<span class="param-type">List(String)</span>
|
||||||
|
|
||||||
|
<p class="param-description">Tags to filter by</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -109,13 +125,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">ID of pet that needs to be fetched</p>
|
|
||||||
</div>
|
<span class="param-name">petId</span>
|
||||||
|
<span class="param-type">Long</span>
|
||||||
|
|
||||||
|
<p class="param-description">ID of pet that needs to be fetched</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -132,29 +152,41 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">ID of pet that needs to be updated</p>
|
|
||||||
</div>
|
<span class="param-name">petId</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">ID of pet that needs to be updated</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
<span class="param-in">Form: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Updated name of the pet</p>
|
|
||||||
</div>
|
<span class="param-name">name</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">Updated name of the pet</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
<span class="param-in">Form: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Updated status of the pet</p>
|
|
||||||
</div>
|
<span class="param-name">status</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">Updated status of the pet</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -171,21 +203,29 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description"></p>
|
<span class="param-in">Header: </span>
|
||||||
</div>
|
|
||||||
|
<span class="param-name">api_key</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description"></p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">Pet id to delete</p>
|
|
||||||
</div>
|
<span class="param-name">petId</span>
|
||||||
|
<span class="param-type">Long</span>
|
||||||
|
|
||||||
|
<p class="param-description">Pet id to delete</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -202,31 +242,43 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">ID of pet to update</p>
|
|
||||||
</div>
|
<span class="param-name">petId</span>
|
||||||
|
<span class="param-type">Long</span>
|
||||||
|
|
||||||
|
<p class="param-description">ID of pet to update</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
<span class="param-in">Form: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Additional data to pass to server</p>
|
|
||||||
</div>
|
<span class="param-name">additionalMetadata</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">Additional data to pass to server</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
<span class="param-in">Form: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">file to upload</p>
|
|
||||||
</div>
|
<span class="param-name">file</span>
|
||||||
|
<span class="param-type">file</span>
|
||||||
|
|
||||||
|
<p class="param-description">file to upload</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -32,13 +32,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">order placed for purchasing the pet</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">Order</span>
|
||||||
|
|
||||||
|
<p class="param-description">order placed for purchasing the pet</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -55,13 +59,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">ID of pet that needs to be fetched</p>
|
|
||||||
</div>
|
<span class="param-name">orderId</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">ID of pet that needs to be fetched</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -78,15 +86,19 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">ID of the order that needs to be deleted</p>
|
|
||||||
</div>
|
<span class="param-name">orderId</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">ID of the order that needs to be deleted</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
@ -17,13 +17,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Created user object</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">User</span>
|
||||||
|
|
||||||
|
<p class="param-description">Created user object</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -40,16 +44,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">List of user object</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">List</span>
|
||||||
|
|
||||||
|
<p class="param-description">List of user object</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -66,16 +71,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">List of user object</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">List</span>
|
||||||
|
|
||||||
|
<p class="param-description">List of user object</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -92,21 +98,29 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
<span class="param-in">Query: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">The user name for login</p>
|
<span class="param-name">username</span>
|
||||||
</div>
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">The user name for login</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
<span class="param-in">Query: </span>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">The password for login in clear text</p>
|
<span class="param-name">password</span>
|
||||||
</div>
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">The password for login in clear text</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -138,13 +152,17 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">The name that needs to be fetched. Use user1 for testing. </p>
|
|
||||||
</div>
|
<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>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -161,21 +179,29 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">name that need to be deleted</p>
|
|
||||||
</div>
|
<span class="param-name">username</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">name that need to be deleted</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<p class="param-description">Updated user object</p>
|
|
||||||
</div>
|
<span class="param-in">Body: </span>
|
||||||
|
<span class="param-name">body</span>
|
||||||
|
<span class="param-type">User</span>
|
||||||
|
|
||||||
|
<p class="param-description">Updated user object</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
@ -192,15 +218,19 @@
|
|||||||
<h3 class="section">Parameters</h3>
|
<h3 class="section">Parameters</h3>
|
||||||
<ul>
|
<ul>
|
||||||
|
|
||||||
<div class="parameter">
|
<li class="parameter">
|
||||||
|
|
||||||
|
|
||||||
|
<span class="param-in">Path: </span>
|
||||||
|
|
||||||
<p class="param-description">The name that needs to be deleted</p>
|
|
||||||
</div>
|
<span class="param-name">username</span>
|
||||||
|
<span class="param-type">String</span>
|
||||||
|
|
||||||
|
<p class="param-description">The name that needs to be deleted</p>
|
||||||
|
</li>
|
||||||
|
|
||||||
</ul>
|
</ul>
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user