3.1. Tags
- exception backendapp.tags.TagDecodeFailedError(tagid, serial, decoded)[source]
Tag Decode Failed Error
The tag serial number did not decode to the tag id
- class backendapp.tags.TagService[source]
Create, find, simulate and delete tags.
- create(**kwargs) → backendapp.tags.models.Tag[source]
Return a new
Tag
instance, which is saved into the database.- Parameters
**kwargs –
instance parameters
- Returns
The newly created tag.
- get_by_serial(serial: str) → backendapp.tags.models.Tag[source]
Find a
Tag
in the database. Raise a 404HTTPException
if none exists.- Parameters
serial – 8 character alphanumeric string.
- Returns
The tag.