droptheplot/apipony

View on GitHub
app/views/apipony/documentation/_endpoint.html.erb

Summary

Maintainability
Test Coverage
<h5 class="m-b-2">
  <%= render "method", endpoint: endpoint %>
  <%= link_to endpoint.path, endpoint.console_path, class: 'link' %>
</h5>

<% if endpoint.description %>
  <div class="text-muted m-b-2">
    <%= endpoint.description %>
  </div>
<% end %>

<% if endpoint.request? %>
  <%= render "request", endpoint: endpoint %>
<% end %>

<% if endpoint.response? %>
  <%= render "response", response: endpoint.response %>
<% end %>