Support multiple swagger documents. Add custom_ui_generator. Update readme

This commit is contained in:
domaindrivendev
2016-02-05 14:47:55 -08:00
parent df4b9c80c9
commit 4b40fb9efe
18 changed files with 298 additions and 14 deletions

View File

@@ -33,7 +33,7 @@
if (url && url.length > 1) {
url = decodeURIComponent(url[1]);
} else {
url = "<%= SwaggerRails.swagger_docs.values.first %>";
url = "<%= @discovery_paths.values.first %>";
}
// Pre load translate...
@@ -110,7 +110,7 @@
<div class='input'><input placeholder="api_key" id="input_apiKey" name="apiKey" type="text"/></div>
<div class='input'>
<select id="select_version">
<% SwaggerRails.swagger_docs.each do |name, path| %>
<% @discovery_paths.each do |name, path| %>
<option value="<%= path %>"><%= name %></option>
<% end %>
</select>