Sha256: 9c400950b54d36c2f98be89a4a6f3b15ae52edcca0c7107831278db9c5ff9820

Contents?: true

Size: 456 Bytes

Versions: 1

Compression:

Stored size: 456 Bytes

Contents

require_relative 'resource_definitions'

class PeopleController
  include ::Traxis::Controller

  implements ::PeopleResource

  handles ::Person, :collection => {
                      :serializer => ::MediaTypes::Person,
                      :json_root => "people"
                    },
                    :resource => {
                      :serializer => ::MediaTypes::Person,
                      :json_root => "person"
                    }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
traxis-0.0.1 spec/support/people_controller.rb