Class: Api::V2::WorkCompletionResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::WorkCompletionResource
- Defined in:
- app/resources/api/v2/work_completion_resource.rb
Overview
Access this resource via the /api/v2/work_completions/ endpoint.
This resource cannot be modified after creation: its endpoint will not accept PATCH requests.
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
-
#submission_uuids ⇒ Void
writeonly
deprecated
Deprecated.
Use the
submissionsrelationship instead. See Y25-236. -
#submissions ⇒ Array<SubmissionResource>
An array of submissions which will be passed (although this is done through the request ids on the aliquots, not directly through the submissions).
-
#target ⇒ LabwareResource
The labware on which the library has been completed.
-
#target_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
targetrelationship instead. -
#user ⇒ UserResource
The user performing the action Setting this relationship alongside the
user_uuidattribute will override the attribute value. -
#user_uuid ⇒ Void
writeonly
deprecated
Deprecated.
Use the
userrelationship instead. See Y25-236.
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
#submission_uuids=(value) ⇒ Void (writeonly)
Use the submissions relationship instead. See Y25-236.
This is declared for convenience where the submissions are not available to set as a relationship. Setting this attribute alongside the submissions relationships will prefer the relationship value.
70 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 70 attribute :submission_uuids, writeonly: true |
#submissions ⇒ Array<SubmissionResource>
This relationship is required.
An array of submissions which will be passed (although this is done through the request ids on the aliquots, not directly through the submissions). Setting this relationship alongside the submission_uuids attribute will override the attribute value.
113 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 113 has_many :submissions, write_once: true |
#target ⇒ LabwareResource
This relationship is required.
The labware on which the library has been completed. Setting this relationship alongside the target_uuid attribute will override the attribute value.
120 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 120 has_one :target, write_once: true |
#target_uuid=(value) ⇒ Void (writeonly)
Use the target relationship instead.
This is declared for convenience where the target Labware is not available to set as a relationship. Setting this attribute alongside the target relationship will prefer the relationship value.
83 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 83 attribute :target_uuid, writeonly: true |
#user ⇒ UserResource
This relationship is required.
The user performing the action Setting this relationship alongside the user_uuid attribute will override the attribute value.
127 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 127 has_one :user, write_once: true |
#user_uuid=(value) ⇒ Void (writeonly)
97 |
# File 'app/resources/api/v2/work_completion_resource.rb', line 97 attribute :user_uuid, writeonly: true |