module Alula class Self < Alula::SingletonRestResource extend Alula::ResourceAttributes extend Alula::RelationshipAttributes # 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 'self' type 'self' # Relationships # None # Resource Fields # Not all params are used at the moment. See Alula::ResourceAttributes for details # on how params are parsed, field :id, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [] field :dealer_id, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [] field :parent_id, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [] field :u_type, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [] field :user_type, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [], symbolize: true field :impersonator, type: :string, sortable: false, filterable: false, creatable_by: [], patchable_by: [] end end