mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2024-09-21 07:26:15 +08:00
fixed types to plural for naming convention
This commit is contained in:
parent
4acc8f5719
commit
7496e3749b
|
@ -3,7 +3,7 @@
|
|||
module Api
|
||||
module V1
|
||||
class ConnectionSerializer < ActiveModel::Serializer
|
||||
type :connection
|
||||
type :connections
|
||||
attributes :id, :input_id, :output_id
|
||||
end
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
module Api
|
||||
module V1
|
||||
class ExperimentSerializer < ActiveModel::Serializer
|
||||
type :experiment
|
||||
type :experiments
|
||||
attributes :id, :name, :description, :project_id, :created_by_id,
|
||||
:archived, :created_at, :updated_at
|
||||
end
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
module Api
|
||||
module V1
|
||||
class MyModuleGroupSerializer < ActiveModel::Serializer
|
||||
type :MyModuleGroup
|
||||
type :task_groups
|
||||
attributes :id, :created_at, :updated_at, :created_by_id, :experiment_id
|
||||
belongs_to :experiment, serializer: ExperimentSerializer
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue