Sha256: 8c521c13a04a239f3350f8c1d1968d8e2a9cc2316876e3c4d1875970f4f4196c

Contents?: true

Size: 1.58 KB

Versions: 9

Compression:

Stored size: 1.58 KB

Contents

<ul class='breadcrumb'>
  <li class='active'><a href='<%= @doc[:doc_url] %><%= @doc[:link_extension] %>'><%= @doc[:name] %> <%= @doc[:resources].values.first && @doc[:resources].values.first[:version] %></a></li>
  <%= render(:partial => "languages", :locals => {:doc_url => @doc[:doc_url]}) %>
  <% if @versions && @versions.size > 1 %>
  <li class='pull-right'>
    <%= @versions.collect { |v| link_to v, Apipie.full_url(v+@doc[:link_extension]) }.join(' / ').html_safe %>
  </li>
  <% end %>
</ul>

<div><%= raw @doc[:info] %></div>

<h1 class='page-header'><%= t('apipie.resources') %></h1>

<% @doc[:resources].sort_by(&:first).each do |key, api| %>
  <h2>
    <a href='<%= api[:doc_url] %><%= @doc[:link_extension] %>'>
      <%= api[:name] %>
    </a><br>
    <small><%= api[:short_description] %></small>
  </h2>
  <table class='table'>
    <thead>
      <tr>
        <th><%= t('apipie.resource') %></th>
        <th><%= t('apipie.description') %></th>
      </tr>
    </thead>
    <tbody>
      <% api[:methods].each do |m| %>
        <% m[:apis].each do |a| %>
          <tr>
            <td>
              <a href='<%= m[:doc_url] %><%= @doc[:link_extension] %>'><%= a[:http_method] %> <%= a[:api_url] %></a>
              <% if a[:deprecated] %>
                <code>DEPRECATED</code>
              <% end %>
            </td>
            <td width='60%'><%= a[:short_description] %></td>
          </tr>
        <% end %>
      <% end %>
    </tbody>
  </table>
<% end %>

<% unless content_for(:apipie_footer) == @doc[:copyright] %>
  <%= content_for :apipie_footer, raw(@doc[:copyright]) %>
<% end %>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
apipie-rails-0.3.4 app/views/apipie/apipies/index.html.erb
apipie-rails-0.3.3 app/views/apipie/apipies/index.html.erb
apipie-rails-0.3.2 app/views/apipie/apipies/index.html.erb
apipie-rails-0.3.1 app/views/apipie/apipies/index.html.erb
apipie-rails-0.3.0 app/views/apipie/apipies/index.html.erb
apipie-rails-0.2.6 app/views/apipie/apipies/index.html.erb
apipie-rails-0.2.5 app/views/apipie/apipies/index.html.erb
apipie-rails-0.2.4 app/views/apipie/apipies/index.html.erb
apipie-rails-0.2.3 app/views/apipie/apipies/index.html.erb