Class: V1::TagResource
- Inherits:
-
JSONAPI::Resource
- Object
- JSONAPI::Resource
- V1::TagResource
- Defined in:
- app/resources/v1/tag_resource.rb
Overview
Access this resource via the /v1/tags endpoint.
Tags should not be destroyed via the API; use the active attribute on tag sets
Provides a JSON:API representation of Tag.
For more information about JSON:API see the JSON:API Specifications or look at the JSONAPI::Resources package for the service implementation of the JSON:API standard.
Primary relationships:
- tag_set TagSetResource - The tag set this tag belongs to.
curl -X PATCH "http://localhost:3100/v1/tags/1"
-H "accept: application/vnd.api+json"
-H "Content-Type: application/vnd.api+json"
-d '{
"data": {
"type": "tags",
"id": "1",
"attributes": {
"oligo": "TGCAACGT"
}
}
}'
to deactivate tags instead.
Instance Attribute Summary collapse
-
#group_id ⇒ Integer
The ID of the group.
-
#oligo ⇒ String
The oligo sequence.
-
#tag_set_id ⇒ Integer
The ID of the tag set.
Instance Attribute Details
#group_id ⇒ Integer
Returns the ID of the group.
57 |
# File 'app/resources/v1/tag_resource.rb', line 57 attributes :oligo, :oligo_reverse, :group_id, :tag_set_id |
#oligo ⇒ String
Returns the oligo sequence.
57 |
# File 'app/resources/v1/tag_resource.rb', line 57 attributes :oligo, :oligo_reverse, :group_id, :tag_set_id |
#tag_set_id ⇒ Integer
Returns the ID of the tag set.
57 |
# File 'app/resources/v1/tag_resource.rb', line 57 attributes :oligo, :oligo_reverse, :group_id, :tag_set_id |