<%= @name %> Rest API Doc

<%= @url %>

<% if description %>
<%= description %>
<% end %> <% @resources.each do |name, requests| %>
<% requests.each do |req| %>
<%= req.description %>
<% unless req.params.empty? %> <% req.headers.each do |key, content| %> <% end %>
Key Value
<%= key %> <%= content %>
<% else %> Request without headers <% end %>
<% unless req.params.empty? %> <% req.params.each do |key, content| %> <% end %>
Label Description Type Required
<%= key %> <%= content['description'] %> <%= content['type'] %> <%= content['required'] %>
<% else %> Request without parametres <% end %>
<%= req.response %>
<% end %>
<% end %>