Class: Api::V2::AssetAuditResource
- Inherits:
-
BaseResource
- Object
- JSONAPI::Resource
- BaseResource
- Api::V2::AssetAuditResource
- Defined in:
- app/resources/api/v2/asset_audit_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.
Access this resource via the /api/v2/asset_audits/
endpoint.
Provides a JSON:API representation of AssetAudit.
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
-
#asset_uuid ⇒ String
Transforms the Asset into its UUID when generating an API query response.
-
#created_by ⇒ String
The user who created the asset audit.
-
#key ⇒ String
The key of the asset audit.
-
#message ⇒ String
The message of the asset audit.
-
#metadata ⇒ Hash
The metadata of the asset audit.
-
#witnessed_by ⇒ String
The user who witnessed the asset audit.
Class Method Summary collapse
-
.updatable_fields(_context) ⇒ Array<Symbol>
Gets the list of fields which are updatable on an existing AssetAudit.
Methods inherited from BaseResource
apply_includes, creatable_fields, default_includes, #fetchable_fields, inclusions, resolve_relationship_names_to_relations
Instance Attribute Details
#asset_uuid ⇒ String
Transforms the Asset into its UUID when generating an API query response.
33 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 33 attribute :asset_uuid |
#created_by ⇒ String
Returns the user who created the asset audit.
29 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 29 attribute :created_by |
#key ⇒ String
Returns the key of the asset audit.
21 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 21 attribute :key |
#message ⇒ String
Returns the message of the asset audit.
25 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 25 attribute :message |
#metadata ⇒ Hash
Returns the metadata of the asset audit.
41 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 41 attribute :metadata |
#witnessed_by ⇒ String
Returns the user who witnessed the asset audit.
37 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 37 attribute :witnessed_by |
Class Method Details
.updatable_fields(_context) ⇒ Array<Symbol>
Gets the list of fields which are updatable on an existing AssetAudit.
62 63 64 |
# File 'app/resources/api/v2/asset_audit_resource.rb', line 62 def self.updatable_fields(_context) [] # Do not allow updating any fields. end |