<%= @name %> Rest API Doc
<%= @url %>
<% @resources.keys.each_with_index do |key,index| %>
<%= key %>
<% end %>
<% @resources.each do |name, requests| %>
<%= name.capitalize %> resource
<% requests.each do |req| %>
<%= req.action %>
<%= " #{req.uri}" %>
Description
Header
Parameters
Response
<%= req.description %>
<% unless req.params.empty? %>
Key
Value
<% req.headers.each do |key, content| %>
<%= key %>
<%= content %>
<% end %>
<% else %> Request without headers <% end %>
<% unless req.params.empty? %>
Label
Description
Type
Required
<% req.params.each do |key, content| %>
<%= key %>
<%= content['description'] %>
<%= content['type'] %>
<%= content['required'] %>
<% end %>
<% else %> Request without parametres <% end %>
<%= req.response %>
<% end %>
<% end %>