tweaks for swagger
|
Before Width: | Height: | Size: 770 B After Width: | Height: | Size: 770 B |
|
Before Width: | Height: | Size: 824 B After Width: | Height: | Size: 824 B |
|
Before Width: | Height: | Size: 9.0 KiB After Width: | Height: | Size: 9.0 KiB |
|
Before Width: | Height: | Size: 980 B After Width: | Height: | Size: 980 B |
@@ -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,
|
||||
@@ -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>
|
||||
|
||||