Description

<%= @resource.description %>

<% unless @resource.headers.empty? %>

Headers

<% @resource.headers.each do |key, content| %>
<%= key %>

<%= content %>

<% end %>
<% end %>

Parameters

<% @resource.params.each do |key, content| %>
<%= key %> <%= content['required'] ? 'required' : 'optional' %>, type: <%= content['type'] %>

<%= content['description'] %>

<% end %>
<% if @resource.response %>

Example Response

<%= pj @resource.response %>
<% end %>