Sha256: cf705ff56106c33c2f76790eb73213f3589e47a760bfa7411d9f5030146be01a

Contents?: true

Size: 1.36 KB

Versions: 3

Compression:

Stored size: 1.36 KB

Contents

<%= raw method[:full_description] %>

<% unless method[:formats].blank? %>
  <%= heading(t('apipie.supported_formats'), h_level) %>
  <%= method[:formats].join(', ') %>
<% end %>

<% unless method[:errors].blank? %>
  <%= heading(t('apipie.errors'), h_level) %>
  <% method[:errors].each do |err| %>
    <%= err[:code] %>
    <%= err[:description] %>
    <br>
    <% unless err[:metadata].blank? %>
      Metadata:
      <pre class="prettyprint lang-yaml"><%= err[:metadata].to_yaml %></pre>
    <% end %>
  <% end %>
<% end %>

<% unless method[:metadata].blank? %>
  <%= heading(t('apipie.metadata'), h_level) %>
  <%= render(:partial => "metadata", :locals => {:meta => method[:metadata]}) %>
<% end %>

<% unless method[:examples].blank? %>
  <%= heading(t('apipie.examples'), h_level) %>
  <% method[:examples].each do |example| %>
    <pre class="prettyprint"><%= example %></pre>
  <% end %>
<% end %>

<% unless method[:params].blank? %>
  <%= heading(t('apipie.params'), h_level) %>
  <table class='table'>
    <thead>
      <tr>
        <th><%= t('apipie.param_name') %></th>
        <th><%= t('apipie.description') %></th>
      </tr>
    </thead>
    <tbody>
      <%= render(:partial => "params", :locals => {:params => method[:params]}) %>
    </tbody>
  </table>
<% end %>

<%= render(:partial => "headers", :locals => {:headers => method[:headers], :h_level => h_level }) %>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
apipie-rails-0.3.5 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.3.4 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.3.3 app/views/apipie/apipies/_method_detail.erb