Sha256: e56a9ce3582d10e9bd6ec495009b67aa944a48d53dd5d5ac55b342ac2861fee9

Contents?: true

Size: 377 Bytes

Versions: 3

Compression:

Stored size: 377 Bytes

Contents

module Pwb
  class Api::V1::WebContentResource < JSONAPI::Resource
    model_name 'Pwb::Content'
    attributes :key, :tag
    attributes :raw_fr, :raw_de, :raw_ru, :raw_pt
    attributes :raw_es, :raw_en, :raw_ar, :content_photos

    # /api/v1/web-contents?filter%5Btag%5D=home&filter%5Bkey%5D=tagLine
    # below is needed for above to work
    filters :tag, :key
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
pwb-1.2.0 app/resources/pwb/api/v1/web_content_resource.rb
pwb-1.1.1 app/resources/pwb/api/v1/web_content_resource.rb
pwb-1.0.0 app/resources/pwb/api/v1/web_content_resource.rb