mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-02-07 15:33:50 +08:00
15 lines
469 B
Ruby
15 lines
469 B
Ruby
# 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
|