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

11 lines
277 B
Ruby

# frozen_string_literal: true
module Api
module V1
class ExperimentSerializer < ActiveModel::Serializer
type :experiment
attributes :id, :name, :description, :project_id, :created_by_id,
:archived, :created_at, :updated_at
end
end
end