Sha256: 1117f68c57d5f5bee6b8aa3b9a9b63920d50f7958484485777aa5c95195d0f04
Contents?: true
Size: 1.32 KB
Versions: 75
Compression:
Stored size: 1.32 KB
Contents
module Alula class DealerSuspensionLog < Alula::RestResource extend Alula::ResourceAttributes extend Alula::RelationshipAttributes extend Alula::ApiOperations::Request extend Alula::ApiOperations::List # You should update this to be a slash-separated, literal path to the resource # without the prefix /api/v1 or the suffix of an ID resource_path 'dealers/suspensionlog' type 'dealers-suspensionlog' # Relationships relationship :dealer, type: 'dealers', cardinality: 'To-one' relationship :user, type: 'users', cardinality: 'To-one' # Resource Fields # Not all params are used at the moment. See Alula::ResourceAttributes for details # on how params are parsed, field :dealer_id, type: :string, sortable: false, filterable: true, creatable_by: [], patchable_by: [] field :user_id, type: :string, sortable: false, filterable: true, creatable_by: [], patchable_by: [] field :action, type: :string, sortable: false, filterable: true, creatable_by: [], patchable_by: [] field :date, type: :date, sortable: true, filterable: true, creatable_by: [], patchable_by: [] end end
Version data entries
75 entries across 75 versions & 1 rubygems