Class: Api::V2::ReceptacleResource
- Inherits:
 - 
      BaseResource
      
        
- Object
 - JSONAPI::Resource
 - BaseResource
 - Api::V2::ReceptacleResource
 
 
- Includes:
 - SharedBehaviour::Receptacle
 
- Defined in:
 - app/resources/api/v2/receptacle_resource.rb
 
Overview
The below POST is currently broken, as display_name is a required attribute in the model but it is not included in the resource.
Access this resource via the /api/v2/receptacles/ endpoint.
Provides a JSON:API representation of Receptacle.
A receptacle is a container for aliquots, they are associated with Labware, which represents the physical object which moves round the lab. A Labware may have a single Receptacle, such as in the case of a Tube or multiple, in the case of a Plate. Work can be requested on a particular receptacle.
This resource includes common behavior shared across various receptacles. This behavior is imported from the Api::V2::SharedBehaviour::Receptacle module.
For more details on JSON:API, see the JSON:API Specifications or check out the JSONAPI::Resources package for Sequencescape's implementation.
Method Summary
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations, updatable_fields