Class: Api::V2::SampleMetadataResource

Inherits:
BaseResource
  • Object
show all
Defined in:
app/resources/api/v2/sample_metadata_resource.rb

Overview

TODO:

This documentation does not yet include a detailed description of what this resource represents.

TODO:

This documentation does not yet include detailed descriptions for relationships, attributes and filters.

TODO:

This documentation does not yet include any example usage of the API via cURL or similar.

Note:

This resource is immutable: its endpoint will not accept POST, PATCH, or DELETE requests.

Note:

Access this resource via the /api/v2/sample_metadata/ endpoint.

Provides a JSON:API representation of Sample::Metadata.

For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for Sequencescape’s implementation of the JSON:API standard.

Instance Attribute Summary collapse

Method Summary

Methods inherited from BaseResource

apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields

Instance Attribute Details

#cohortString

Returns the sample cohort.

Returns:

  • (String)

    the sample cohort.



31
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 31

attribute :cohort

#collected_byString

Returns the name of the body collecting the sample.

Returns:

  • (String)

    the name of the body collecting the sample.



35
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 35

attribute :collected_by

#concentrationString

Returns the sample concentration.

Returns:

  • (String)

    the sample concentration.



39
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 39

attribute :concentration

#donor_idString

Returns the ID of the sample donor.

Returns:

  • (String)

    the ID of the sample donor.



43
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 43

attribute :donor_id

#genderString

Returns the gender of the organism providing the sample.

Returns:

  • (String)

    the gender of the organism providing the sample.



47
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 47

attribute :gender

#sample_common_nameString

Returns the common name for the sample.

Returns:

  • (String)

    the common name for the sample.



51
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 51

attribute :sample_common_name

#sample_descriptionString

Returns a description of the sample.

Returns:

  • (String)

    a description of the sample.



55
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 55

attribute :sample_description

#supplier_nameString

Returns the supplier name for the sample.

Returns:

  • (String)

    the supplier name for the sample.



59
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 59

attribute :supplier_name

#volumeString

Returns the volume of the sample.

Returns:

  • (String)

    the volume of the sample.



63
# File 'app/resources/api/v2/sample_metadata_resource.rb', line 63

attribute :volume