Class: Api::V2::PooledPlateCreationResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::PooledPlateCreationResource
- Defined in:
- app/resources/api/v2/pooled_plate_creation_resource.rb
Overview
This documentation does not yet include a detailed description of what this resource represents.
This documentation does not yet include detailed descriptions for relationships, attributes and filters.
This documentation does not yet include any example usage of the API via cURL or similar.
This resource cannot be modified after creation: its endpoint will not accept PATCH
requests.
Access this resource via the /api/v2/pooled_plate_creation/
endpoint.
Provides a JSON:API representation of PooledPlateCreation.
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
-
#child ⇒ PlateResource
readonly
The child plate which was created.
- #child_purpose_uuid ⇒ Void writeonly
-
#parent_uuids ⇒ Void
writeonly
deprecated
Deprecated.
Use the
parents
relationship instead. -
#parents ⇒ Array<LabwareResource>
Setting this relationship alongside the
parent_uuids
attribute will override the attribute value. -
#user ⇒ UserResource
Setting this relationship alongside the
user_uuid
attribute will override the attribute value. -
#user_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
user
relationship instead. -
#uuid ⇒ String
readonly
The UUID of the pooled plate creation.
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
#child ⇒ PlateResource (readonly)
Returns The child plate which was created.
67 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 67 has_one :child, class_name: 'Plate', readonly: true |
#child_purpose_uuid=(value) ⇒ Void (writeonly)
25 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 25 attribute :child_purpose_uuid, writeonly: true |
#parent_uuids=(value) ⇒ Void (writeonly)
Use the parents
relationship instead.
This is declared for convenience where parents are not available to set as a relationship. Setting this attribute alongside the parents
relationship will prefer the relationship value.
38 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 38 attribute :parent_uuids, writeonly: true |
#parents ⇒ Array<LabwareResource>
This relationship is required.
Setting this relationship alongside the parent_uuids
attribute will override the attribute value.
73 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 73 has_many :parents, class_name: 'Labware' |
#user ⇒ UserResource
This relationship is required.
Setting this relationship alongside the user_uuid
attribute will override the attribute value.
79 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 79 has_one :user |
#user_uuid=(value) ⇒ Void (writeonly)
Use the user
relationship instead.
This is declared for convenience where the user is not available to set as a relationship. Setting this attribute alongside the user
relationship will prefer the relationship value.
51 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 51 attribute :user_uuid, writeonly: true |
#uuid ⇒ String (readonly)
Returns The UUID of the pooled plate creation.
59 |
# File 'app/resources/api/v2/pooled_plate_creation_resource.rb', line 59 attribute :uuid, readonly: true |