<%= @klass.controller.camelize %> API

Return to index

<%= @klass.docs.gsub(/\n/, " ") %>

Routes

<% structs = @klass.paths.keys.sort.collect {|key| @klass.paths[key].values}.flatten %>
<% structs.each do |struct| %>
<%= "#{struct.verb} #{struct.path}" %>
<%= struct.docs.summary %>
<% end %>

Documentation

<% structs.each do |struct| %>

<%= "#{struct.verb} #{struct.path}" %> <%= struct.action %>

<%= struct.docs.summary %>

<% struct.docs.tags("param").each do |param| %>
<%= param.name %>
[<%= param.types.join("|") %>] <%= param.text %>
<% end %> <% ret = struct.docs.tags("return").first %> <% if ret %>
[return]
[<%= ret.types.join("|") %>] <%= ret.text %>
<% end %>
<% eg_json = example_json(struct.docs.tags("param")) %> <% unless eg_json.blank? %>
<%= eg_json %>
<% end %>
<% end %>