Class: V1::SampleResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::SampleResource
- Defined in:
- app/resources/v1/sample_resource.rb
Overview
Access this resource via the /v1/samples
endpoint.
SampleResource
provides a JSON:API representation of the Sample
model. It allows API clients to query, filter, and retrieve sample-related information.
Provides a JSON:API representation of Sample and exposes valid request for use by the UI.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#accession_number ⇒ String
The accession number.
-
#country_of_origin ⇒ String
The country of origin.
-
#created_at ⇒ String
The creation date of the sample in US format.
-
#date_of_sample_collection ⇒ String
The date of sample collection.
-
#deactivated_at ⇒ String?
The deactivation date of the sample in US format; nil if not deactivated.
-
#donor_id ⇒ String
The donor ID.
-
#external_id ⇒ String
The external ID of the sample.
-
#name ⇒ String
The name of the sample.
-
#sanger_sample_id ⇒ String
The Sanger sample ID.
-
#species ⇒ String
The species of the sample.
-
#supplier_name ⇒ String
The name of the supplier.
-
#taxon_id ⇒ String
The taxon ID.
Instance Attribute Details
#accession_number ⇒ String
Returns the accession number.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#country_of_origin ⇒ String
Returns the country of origin.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#created_at ⇒ String
Returns the creation date of the sample in US format.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#date_of_sample_collection ⇒ String
Returns the date of sample collection.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#deactivated_at ⇒ String?
Returns the deactivation date of the sample in US format; nil if not deactivated.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#donor_id ⇒ String
Returns the donor ID.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#external_id ⇒ String
Returns the external ID of the sample.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#name ⇒ String
Returns the name of the sample.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#sanger_sample_id ⇒ String
Returns the Sanger sample ID.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#species ⇒ String
Returns the species of the sample.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#supplier_name ⇒ String
Returns the name of the supplier.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |
#taxon_id ⇒ String
Returns the taxon ID.
41 |
# File 'app/resources/v1/sample_resource.rb', line 41 attributes :name, :external_id, :species, :created_at, :deactivated_at |