sanger/sequencescape

View on GitHub
app/api/endpoints/plate_creations.rb

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true
# Controls API V1 {::Core::Endpoint::Base endpoints} for PlateCreations
class Endpoints::PlateCreations < Core::Endpoint::Base
  model { action(:create, to: :standard_create!) }

  instance do
    belongs_to(:child, json: 'child')
    belongs_to(:child_purpose, json: 'child_purpose')
    belongs_to(:parent, json: 'parent')
    belongs_to(:user, json: 'user')
  end
end