Sha256: b3005f0ee1b9f54477b24eb2085f535d09230bc877a480696a43e328cd095a95

Contents?: true

Size: 981 Bytes

Versions: 2

Compression:

Stored size: 981 Bytes

Contents

<table class='table table-bordered table-condensed' id='api-doc-table'>
  
  <tr class='info'>
    <th>Request</th>
    <td>
      <span class='label label-info'><%= action['method']%></span>
      <code><%= action['path']%></code>
    </td>
  </tr>
  
  <% if action['description'].present? %>
    <tr>
      <th>Description</th>
      <td><%= action['description']%></td>
    </tr>
  <% end %>
  
  <% if action['params'].is_a?(Hash) %>
    <tr>
      <th>Parameters</th>
      <td>
        <%= render :partial => 'request_params', :object => action['params'] %>
      </td>
    </tr>
  <% end %>
  
  <tr class='info'>
    <th>Response</th>
    <td>
      <span class='label <%= action['status'].to_s[0] == '4' ? 'label-important' : 'label-success' %>'>
        <%= action['status'] %>
      </span>
    </td>
  </tr>
  
  <tr>
    <th>Body</th>
    <td>
      <pre><%= JSON.pretty_generate(JSON.parse(action['body'])) rescue action['body']%></pre>
    </td>
  </tr>
  
</table>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
api_docs-1.0.6 app/views/api_docs/docs/_action.html.erb
api_docs-1.0.5 app/views/api_docs/docs/_action.html.erb