Sha256: 85a6d9d5afe767f6453589ba07dfe6c3f6071d28995e2c511fa2fccb9fbc5e42

Contents?: true

Size: 554 Bytes

Versions: 2

Compression:

Stored size: 554 Bytes

Contents

module Pwb
  class Api::V1::SectionResource < JSONAPI::Resource
    model_name 'Pwb::Section'
    attributes :link_key, :link_path, :visible, :sort_order
    attributes :link_title_es, :link_title_en, :link_title_ar
    attributes :page_title_es, :page_title_en, :page_title_ar
    attributes :show_in_top_nav, :show_in_footer, :is_page
    attributes :key, :contents


    # http://tenant1.tee.dev:3000/api/v1/web-contents?filter%5Blang_code%5D=en&filter%5Bkey%5D=tagLine
    # below is needed for above to work
    # filters :lang_code, :key
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pwb-0.1.1 app/resources/pwb/api/v1/section_resource.rb
pwb-0.1.0 app/resources/pwb/api/v1/section_resource.rb