Class: V1::Pacbio::TagSetResource

Inherits:
TagSetResource show all
Defined in:
app/resources/v1/pacbio/tag_set_resource.rb

Overview

Note:

Access this resource via the /v1/pacbio/tag_sets/ endpoint.

Note:

Tag sets should not be destroy via the API; use the active attribute to

Provides a JSON:API representation of TagSet.

Filters: * pipeline - pipeline name (default: pacbio) * name - tag set name

curl -X POST localhost:3100/v1/pacbio/tag_sets \ -H “Content-Type: application/vnd.api+json” \ -H “Accept: application/vnd.api+json” \ -d ‘{ “data”: { “type”: “tag_sets”, “attributes”: { “name”: “New Tag Set”, “description”: “A description of the new tag set” } } }’

deactivate tag sets instead. This is a soft delete; the record will be marked as inactive but not removed from the database. The current way of creating tag sets is internally this should be disabled.

Examples:

curl -X GET http://localhost:3100/v1/pacbio/tag_sets/1
curl -X GET http://localhost:3100/v1/pacbio/tag_sets/

curl -X GET http://localhost:3100/v1/pacbio/tag_sets?filter[name]=tag_set_name
curl -X GET http://localhost:3100/v1/pacbio/tag_sets?filter[pipeline]=pacbio&include=tags

Instance Attribute Summary

Attributes inherited from TagSetResource

#name, #pipeline, #uuid

Class Method Summary collapse

Methods inherited from TagSetResource

records

Class Method Details

.create_modelObject

Ensure that any tag sets created via this endpoint are scoped to the pacbio pipeline



43
44
45
# File 'app/resources/v1/pacbio/tag_set_resource.rb', line 43

def self.create_model
  _model_class.pacbio_pipeline.new
end