Sha256: b5a80101389af7e07598a37d85ac71f2d4588a001117fb69026d22f7426b7e06

Contents?: true

Size: 639 Bytes

Versions: 3

Compression:

Stored size: 639 Bytes

Contents

- response_headers = repo.headers

div.response-table[id="#{ctrl}.response"  style="--row-count: #{response_headers.length}"]

  - repo[ctrl][:actions].each do |action|
    // TODO: Nest table in this div for easier jq toggling
    // add borders to this div

    - if route = repo.action_route(ctrl, action)

      div.request-action-title
        = render 'shared/title', locals: { blue_title: route[:method], yellow_title: route[:url]}

      - if rows = repo.load_attrs(ctrl, action)

        = render 'shared/table', model: ctrl, rows: rows, headers: response_headers, nesting: [], params: { api_action: action, api_type: :response }

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
rails_api_documentation-0.3.4 app/views/rails_api_doc/api_docs/_response_api_table.slim
rails_api_documentation-0.3.3 app/views/rails_api_doc/api_docs/_response_api_table.slim
rails_api_documentation-0.3.2 app/views/rails_api_doc/api_docs/_response_api_table.slim