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

12 lines
277 B
Ruby
Raw Normal View History

2018-09-05 15:55:04 +08:00
# frozen_string_literal: true
module Api
module V1
class ExperimentSerializer < ActiveModel::Serializer
type :experiment
2018-09-06 21:38:48 +08:00
attributes :id, :name, :description, :project_id, :created_by_id,
:archived, :created_at, :updated_at
2018-09-05 15:55:04 +08:00
end
end
end