<%= endpoint.summary %>

<% if endpoint.description %>

<%= endpoint.description.render_markdown %>

<% end %> <% servers = endpoint.path.servers ? endpoint.path.servers : endpoint.definition.servers %> <% raise "`servers` parameter not provided at either the path level or document root" unless servers.size.positive? %> <% path = endpoint.path.path.gsub(/\{(.+?)\}/, ':\1').chomp("/") uri = URI("#{servers[0]['url']}#{path}") %>
<%= endpoint.method.upcase %> <%= uri.scheme %>://<%= uri.host %><%= uri.path.gsub(/:([^\/]+)/, ':\1') %>
Host <%= uri.scheme %>://<%= uri.host %>
<%= endpoint.method.upcase %> <%= uri.path.gsub(/:([^\/]+)/, ':\1') %>
<%= erb :'open_api/_auth', locals: { endpoint: endpoint } %> <%= erb :'open_api/_parameter_groups', locals: { endpoint: endpoint } %> <%= erb :'open_api/_response_descriptions', locals: { endpoint: endpoint, auto_expand_responses: @auto_expand_responses } %>
<%= erb :'open_api/_requests', locals: { endpoint: endpoint } %> <%= erb :'open_api/_responses', locals: { endpoint: endpoint } %>