Sha256: db8826a6311e04b4070a34a77b97551604b4f235e7f70bf1efdf2f553239b4c3
Contents?: true
Size: 791 Bytes
Versions: 12
Compression:
Stored size: 791 Bytes
Contents
<% if responses.any? %> <h4 id="<%= id %>">Responses</h4> <table> <thead> <tr><th>Status</th><th>Description</th><th>Schema</th></tr> </thead> <tbody> <% responses.each do |key,response| %> <tr> <td><%= key %></td> <td> <%= render_markdown(response.description) %> <% if response.content['application/json'] if response.content['application/json']["example"] request_body = json_prettyprint(response.content['application/json']["example"]) else request_body = json_output(response.content['application/json'].schema) end end %> <% if !request_body.blank? %> <pre><code><%= request_body %></code></pre> <% end %> </td> <td> <%= if response.content['application/json'] get_schema_link(response.content['application/json'].schema) end %> </td> </tr> <% end %> </tbody> </table> <% end %>
Version data entries
12 entries across 12 versions & 1 rubygems