Sha256: 6cd55aea03540bcf8fde327cfa135f626fc803c23c2ad400f714acb45df38812

Contents?: true

Size: 1.08 KB

Versions: 9

Compression:

Stored size: 1.08 KB

Contents

<% definition = @specification.definition %>

<div class="theme-<%= @theme %>">
  <div class="oas-wrapper Vlt-article">
    <%= erb :'open_api/_navigation', locals: { definition: definition } %>
    <div class="oas-left-panel full-background sm-hidden">&nbsp;</div>
    <div class="oas-right-panel full-background sm-hidden">&nbsp;</div>

    <%= erb :'open_api/_header', locals: { definition: definition } %>

    <% @specification.groups.each do |name, endpoints| %>
      <% if name %>
        <% group = definition.raw['tags'].select { |tag| tag['name'].capitalize == name.capitalize }.first %>
        <%= erb :'open_api/_model', locals: { group: group, endpoints: endpoints } %>
      <% end %>

      <% endpoints.each do |endpoint| %>
        <%= erb :'open_api/_endpoint', locals: { definition: definition, endpoint: endpoint } %>
        <%= erb :'open_api/_callbacks', locals: { endpoint: endpoint } %>
      <% end %>
    <% end %>

    <%= erb :'open_api/_webhooks', locals: { definition: definition } %>
    <%= erb :'open_api/_errors', locals: {definition: definition } %>
  </div>
</div>

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
nexmo-oas-renderer-2.7.2 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.7.1 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.7.0 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.6.0 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.5.0 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.4.1 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.4.0 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.3.0 lib/nexmo/oas/renderer/views/open_api/show.erb
nexmo-oas-renderer-2.2.0 lib/nexmo/oas/renderer/views/open_api/show.erb