fixed types to plural for naming convention

This commit is contained in:
Zanz2 2018-09-07 13:39:00 +02:00
parent 4acc8f5719
commit 7496e3749b
3 changed files with 3 additions and 3 deletions

View file

@ -3,7 +3,7 @@
module Api
module V1
class ConnectionSerializer < ActiveModel::Serializer
type :connection
type :connections
attributes :id, :input_id, :output_id
end
end

View file

@ -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

View file

@ -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