sanger/sequencescape

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

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
# frozen_string_literal: true

# TransferRequests are exposed via the API and allow
# you to access their source and target assets, and their submissions
# Controls API V1 {::Core::Endpoint::Base endpoints} for TransferRequests
class Endpoints::TransferRequests < Core::Endpoint::Base
  model {}

  instance do
    belongs_to(:asset, json: 'source_asset')
    belongs_to(:target_asset, json: 'target_asset')
    belongs_to(:submission, json: 'submission')
  end
end