API Reference: Tags
The most complex repository. extends AbstractRepository, getListKey() → 'tags'.
all() overrides the base implementation — requires object and o_id query parameters, defaults to object=Ticket&o_id=1. search() delegates to tagSearch() — the endpoint tag_search?term= is the only search mechanism.
add(string $objectType, int $objectId, string $tag) POSTs to tags/add with the object type, ID, and tag item. remove(string $objectType, int $objectId, string $tag) builds the endpoint URL with query parameters and sends DELETE: tags/remove?object=Ticket&o_id=1&item=tag. tagSearch(string $term) returns raw results from GET tag_search?term=.
find(int $id) is inherited from AbstractRepository but tags use a composite key (object + ID) — numeric lookup alone is not meaningful.
Depends on:
Produces: TagRepository
Acceptance Criteria
API Reference: Tags
The most complex repository.
extends AbstractRepository,getListKey() → 'tags'.all()overrides the base implementation — requiresobjectando_idquery parameters, defaults toobject=Ticket&o_id=1.search()delegates totagSearch()— the endpointtag_search?term=is the only search mechanism.add(string $objectType, int $objectId, string $tag)POSTs totags/addwith the object type, ID, and tag item.remove(string $objectType, int $objectId, string $tag)builds the endpoint URL with query parameters and sends DELETE:tags/remove?object=Ticket&o_id=1&item=tag.tagSearch(string $term)returns raw results fromGET tag_search?term=.find(int $id)is inherited from AbstractRepository but tags use a composite key (object + ID) — numeric lookup alone is not meaningful.Depends on:
Produces:
TagRepositoryAcceptance Criteria