scinote-web/app/serializers/api/v1/project_serializer.rb

16 lines
469 B
Ruby
Raw Normal View History

2018-09-10 22:20:02 +08:00
# frozen_string_literal: true
module Api
module V1
class ProjectSerializer < ActiveModel::Serializer
type :projects
attributes :id, :name, :visibility, :due_date, :team_id, :created_at,
:updated_at, :archived, :archived_on, :created_by_id,
:last_modified_by_id, :archived_by_id, :restored_by_id,
:restored_on, :experiments_order
belongs_to :team, serializer: TeamSerializer
end
end
end