Sha256: 9be6f88890509faba9d58a0d3b78d33939fe8299d6c54e0a57614a084d274650

Contents?: true

Size: 1.85 KB

Versions: 27

Compression:

Stored size: 1.85 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) %>
  <%= render(:partial => "errors", :locals => {:errors => method[:errors]}) %>
<% 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 %>
<% unless method[:returns].blank? %>
  <%= heading(t('apipie.returns'), h_level) %>
  <% method[:returns].each do |item| %>
    <%= heading("#{t('apipie.code')}: #{item[:code]}", h_level + 1) %>
    <% if item[:description] %>
      <%= heading("#{t('apipie.description')}:", h_level + 2) %>
      <p><%= item[:description] %></p>
    <% end %>
    <table class='table'>
      <thead>
        <tr>
          <th><%= t('apipie.param_name') %></th>
          <th><%= t('apipie.description') %></th>
        </tr>
      </thead>
      <tbody>
        <%= render(:partial => "params", :locals => {:params => item[:returns_object]}) %>
      </tbody>
    </table>
  <% end %>
<% end %>

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

Version data entries

27 entries across 27 versions & 2 rubygems

Version Path
apipie-rails-1.3.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.2.3 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.2.2 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.2.1 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.2.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.1.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-1.0.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.9.4 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.9.3 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.9.2 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.9.1 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.9.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.8.2 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.8.1 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.8.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.7.2 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.7.1 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.7.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.6.0 app/views/apipie/apipies/_method_detail.erb
apipie-rails-0.5.20 app/views/apipie/apipies/_method_detail.erb