mirror of
https://github.com/ditkrg/rswag.git
synced 2026-01-25 07:16:40 +00:00
First iteration of rspec driven swagger
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user