Sha256: c956b82ea8334411151648150f52d2a7817eab1434f5306b699166a479e99954

Contents?: true

Size: 231 Bytes

Versions: 1

Compression:

Stored size: 231 Bytes

Contents

json.data collection, partial: partial_name(resource_class, 'short'), as: :resource

json.links({})
json.links do
  json.next api_url(url_for([resource_class, page: collection.next_page, only_path: false]), :get) if next_page?
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
billet-0.0.1 lib/generators/billet/namespace/templates/views/api_views/application/index.json.jbuilder