sanger/sequencescape

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

Summary

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

  instance do
    belongs_to(:asset, json: 'asset', to: 'asset')
    belongs_to(:user, json: 'user', to: 'user')
    action(:update, to: :standard_update!)
  end
end