API de comptabilité horaire.
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

task_serializer.rb 249B

123456
  1. class TaskSerializer
  2. include JSONAPI::Serializer
  3. attributes :name, :description, :start_time, :end_time, :is_paid, :paid_by_id, :owner_id, :activity_id
  4. cache_options store: Rails.cache, namespace: 'jsonapi-serializer', expires_in: 1.hour
  5. end