First iteration of rspec driven swagger

This commit is contained in:
domaindrivendev
2016-04-06 09:19:41 -07:00
parent d579dab7d8
commit 63861a3940
17 changed files with 312 additions and 445 deletions

View File

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