Sha256: e880f8a0ae82d343b2f9520f6be751380b3ec997da314047813a5b4a97dd150e

Contents?: true

Size: 1.95 KB

Versions: 7

Compression:

Stored size: 1.95 KB

Contents

<!DOCTYPE html>
<html>
  <head>
    <title>
      <%= title %>
    </title>

    <link rel="stylesheet" type="text/css" href="<%= css_path %>" />
  </head>
  <body>
    <div id="page">
      <div id="content">
        <h1>
          <%= name %>
        </h1>

        <div id="nav">
          <% if @endpoint.service.meta_service %>
            <a href="<%= index_path %>">
              &#187; <%= @endpoint.service.meta_service.name %>
            </a>
          <% end %>
          <% if service_presenter %>
            <%= service_presenter.name_as_link(:prefix => '&#187;') %>
          <% end %>
        </div>

        <%= description %>

        <% if show_request? %>
          <%= tag_with_anchor('h2', 'Request') %>

          <%= tag_with_anchor('h3', 'Example Request') %>
          <%= example_request %>

          <%= tag_with_anchor('h3', 'Request Parameters') %>
          <%= request_parameters %>
        <% end %>

        <%= tag_with_anchor('h2', 'Response') %>
        <% if show_response? %>
          <%= tag_with_anchor('h3', 'Example Response') %>
          <%= example_response %>

          <%= tag_with_anchor('h3', 'Response Parameters') %>
          <%= response_parameters %>
        <% end %>

        <%= tag_with_anchor('h3', 'Response Codes') %>
        <% if !successful_response_codes.empty? %>
          <%= tag_with_anchor('h4', 'Successful Response Codes') %>
          <ul>
            <% successful_response_codes.each do |response_code| %>
            <li>
              <%= response_code.to_html %>
            </li>
            <% end %>
          </ul>
        <% end %>

        <% if !successful_response_codes.empty? %>
          <%= tag_with_anchor('h4', 'Failure Response Codes') %>
          <ul>
            <% failure_response_codes.each do |response_code| %>
            <li>
              <%= response_code.to_html %>
            </li>
            <% end %>
          </ul>
        <% end %>
      </div>
    </div>
  </body>
</html>

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
fdoc-0.3.0 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.7 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.6 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.5 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.4 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.3 lib/fdoc/templates/endpoint.html.erb
fdoc-0.2.2 lib/fdoc/templates/endpoint.html.erb