<%= definition.info['title'] %>

<% if definition.info['x-label'] %>
<%= definition.info['x-label'] %>
<% end %>
<% if definition.info['description'] %>

<%= definition.info['description'].render_markdown %>

<% end %> <% if @specification.groups.size > 1 %>

Jump to:

<% @specification.groups.each do |name, endpoints| %> <% if name %> <% group = definition.raw['tags'].detect { |tag| tag['name'].capitalize == name.capitalize } %>

<%= group['name'] %> »

<%= group['description']&.render_markdown %>

<% end %> <% end %>
<% end %> <% # If there's only one group, everything is untagged if @specification.groups.size === 1 %> <%= erb :'open_api/_available_endpoints', locals: { endpoints: definition.endpoints } %> <% end %>
<% has_switcher = @specification.available_versions && @specification.available_versions.count > 1 %>
<% if has_switcher %>

There are multiple versions of this API available

<% @specification.available_versions.each do |v| %> >Version <%= v['version'] %> <%= '|' unless v == @specification.available_versions.last %> <% end %>

<% end %>