Sha256: 99656013eae25e13a4b18d3a78ff8ba746fe78442b19fc800dbeb2721a2176f4

Contents?: true

Size: 1.75 KB

Versions: 1

Compression:

Stored size: 1.75 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? %>
          <h2>Request</h2>

          <h3>Example Request</h3>
          <%= example_request %>

          <h3>Request Parameters</h3>
          <%= request_parameters %>
        <% end %>

        <h2>Response</h2>
        <% if show_response? %>
          <h3>Example Response</h3>
          <%= example_response %>

          <h3>Response Parameters</h3>
          <%= response_parameters %>
        <% end %>

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

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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
fdoc-0.2.1 lib/fdoc/templates/endpoint.html.erb