Hi,
I have two questions.
- How to include the
created_at, update_atfields in the JSON response. - How to use
created_at, update_atfields when sorting . i.e.?sort=created_at
example resource
json_api do
type ""
routes do
base("/")
post(:create)
get(:read)
patch(:update)
delete(:destroy)
end
end
attributes do
uuid_primary_key :id
attribute :user_id, :string do
allow_nil? false
end
create_timestamp :created_at
update_timestamp :update_at
end






















