Sha256: 3f4b83edc6991891f34aa49e5e67425d5c986ec59ebd8bdbaaabac57266723a2

Contents?: true

Size: 1.59 KB

Versions: 2

Compression:

Stored size: 1.59 KB

Contents

<ul class='breadcrumb'>
  <li>
    <a href='<%= @doc[:doc_url] %>.html'><%= @doc[:name] %></a>
    <span class='divider'>/</span>
  </li>
  <li>
    <a href='<%= @resource[:doc_url] %>.html'><%= @resource[:name] %></a>
    <span class='divider'>/</span>
  </li>
  <li class='active'><%= @method[:name] %></li>
</ul>

<% @method[:apis].each do |api| %>
  <div class='page-header'>
    <h1>
      <%= api[:http_method] %> <%= api[:api_url] %><br>
      <small><%= raw api[:short_description] %></small>
    </h1>
  </div>
<% end %>

<div>
  <% unless @method[:see_url].blank? %>
    Also see <%= link_to @method[:see], @method[:see_url] %>.
  <% end %>

  <%= raw @method[:full_description] %>

  <% unless @method[:examples].blank? %>
    <h2>Examples</h2>
    <% @method[:examples].each do |example| %>
      <pre class="prettyprint"><%= example %></pre>
    <% end %>
  <% end %>

  <% unless @method[:formats].blank? %>
    <h2>Supported Formats</h2>
    <%= @method[:formats].join(', ') %>
  <% end %>

  <% unless @method[:errors].blank? %>
    <h2>Errors</h2>
    <% @method[:errors].each do |err| %>
      <%= err[:code] %>
      <%= err[:description] %>
      <br>
    <% end %>
  <% end %>

  <% unless @method[:params].blank? %>
    <h2>Params</h2>
    <table class='table'>
      <thead>
        <tr>
          <th>Param name</th>
          <th>Description</th>
        </tr>
      </thead>
      <tbody>
        <%= render(:partial => "params", :locals => {:params => @method[:params]}) %>
      </tbody>
    </table>
  <% end %>
</div>

<% content_for :apipie_footer do %>
  <%= raw @doc[:copyright] %>
<% end %>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
apipie-rails-0.0.13 app/views/apipie/apipies/method.html.erb
apipie-rails-0.0.12 app/views/apipie/apipies/method.html.erb