tweaks for swagger

This commit is contained in:
Athou
2013-04-15 22:24:37 +02:00
parent a9eb2595fe
commit e124fdbe8f
23 changed files with 57 additions and 15 deletions

View File

Before

Width:  |  Height:  |  Size: 770 B

After

Width:  |  Height:  |  Size: 770 B

View File

Before

Width:  |  Height:  |  Size: 824 B

After

Width:  |  Height:  |  Size: 824 B

View File

Before

Width:  |  Height:  |  Size: 9.0 KiB

After

Width:  |  Height:  |  Size: 9.0 KiB

View File

Before

Width:  |  Height:  |  Size: 980 B

After

Width:  |  Height:  |  Size: 980 B

View File

@@ -18,8 +18,15 @@
<script type="text/javascript">
$(function () {
var url = window.location.href;
if (url.indexOf('#')> -1) {
url = url.substring(0, url.lastIndexOf('#'));
}
url = url.substring(0, url.length - 1);
url = url.substring(0, url.lastIndexOf('/'));
url = url + '/rest/resources';
window.swaggerUi = new SwaggerUi({
discoveryUrl:"http://petstore.swagger.wordnik.com/api/api-docs.json",
discoveryUrl:url,
apiKey:"special-key",
dom_id:"swagger-ui-container",
supportHeaderParams: false,

View File

@@ -10,7 +10,6 @@
<div>
<form name="settingsForm" class="form-horizontal" ng-submit="save()">
<!-- not needed atm
<div class="control-group">
<label class="control-label" for="publicUrl">Public URL</label>
<div class="controls">
@@ -18,7 +17,6 @@
ng-model="settings.publicUrl" />
</div>
</div>
-->
<div class="control-group">
<label class="control-label" for="allowRegistrations">Allow
registrations</label>