Skip to content

Commit

Permalink
#736 fix the request/response view on wadl
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Nov 14, 2013
1 parent 407691a commit 01f8568
Showing 1 changed file with 58 additions and 56 deletions.
114 changes: 58 additions & 56 deletions hawtio-web/src/main/webapp/app/api/html/wadl.html
Expand Up @@ -117,63 +117,65 @@ <h4>Parameters</h4>
</tr>
</tbody>
</table>
</div>

<div class="requests" ng-show="method.request.length">
<h4>Request</h4>
<ul>
<li class="request" ng-repeat="request in method.request">
<div ng-repeat="rep in request.representation">
{{rep.mediaType}}
{{rep.element}}
</div>
</li>
</ul>
</div>

<div class="requests" ng-show="method.request.length">
<h4>Request</h4>
<ul>
<li class="request" ng-repeat="request in method.request">
<div ng-repeat="rep in request.representation">
{{rep.mediaType}}
</div>
</li>
</ul>
</div>

<div class="responses" ng-show="method.response.length">
<h4>Response</h4>
<ul>
<li class="response" ng-repeat="response in method.response">
<div ng-repeat="rep in response.representation">
{{rep.mediaType}}
</div>
</li>
</ul>
</div>

<!--
TODO

<div class="errorCodes">
<h4>Error Status Codes</h4>
<table class="fullwidth">
<thead>
<tr>
<th>HTTP Status Code</th>
<th>Reason</th>
</tr>
</thead>
<tbody class="operation-status">

<tr>
<td width="15%" class="code">400</td>
<td>Invalid username supplied</td>
</tr>
<tr>
<td width="15%" class="code">404</td>
<td>User not found</td>
</tr>
</tbody>
</table>
</div>


<div class="sandbox_header">
<input class="submit" name="commit" type="button" value="Try it out!">
<a href="#" class="response_hider" style="display:none">Hide Response</a>
<img alt="Throbber" class="response_throbber" src="images/throbber.gif" style="display:none">
</div>
</form>
-->
<div class="responses" ng-show="method.response.length">
<h4>Response</h4>
<ul>
<li class="response" ng-repeat="response in method.response">
<div ng-repeat="rep in response.representation">
{{rep.mediaType}}
{{rep.element}}
</div>
</li>
</ul>

<!--
TODO

<div class="errorCodes">
<h4>Error Status Codes</h4>
<table class="fullwidth">
<thead>
<tr>
<th>HTTP Status Code</th>
<th>Reason</th>
</tr>
</thead>
<tbody class="operation-status">

<tr>
<td width="15%" class="code">400</td>
<td>Invalid username supplied</td>
</tr>
<tr>
<td width="15%" class="code">404</td>
<td>User not found</td>
</tr>
</tbody>
</table>
</div>


<div class="sandbox_header">
<input class="submit" name="commit" type="button" value="Try it out!">
<a href="#" class="response_hider" style="display:none">Hide Response</a>
<img alt="Throbber" class="response_throbber" src="images/throbber.gif" style="display:none">
</div>
</form>
-->
</div>
</div>
</div>
Expand Down

0 comments on commit 01f8568

Please sign in to comment.