1.2.1. Tag¶
-
GET
/tag/{serial}
¶ Get a tag by its serial.
- Query Parameters
serial (string) – Tag serial
Example request:
GET /tag/{serial} HTTP/1.1 Host: example.com
- Status Codes
200 OK –
A tag object
Example response:
HTTP/1.1 200 OK Content-Type: application/json { "serial": "string", "timeregistered": "2020-08-27T10:57:29.275611" }
Bad input parameter.
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json {}
404 Not Found – Tag not found.
1.2.1.1. Scanned¶
Determines if a tag has been scanned by the current user.
-
GET
/tag/{serial}/scanned
¶ Has a tag with a given serial been scanned by the current user?
- Query Parameters
serial (string) – Tag serial (Required)
Example request:
GET /tag/{serial}/scanned?serial=string HTTP/1.1 Host: example.com
- Status Codes
200 OK – True if the tag has a capture taken by the current user.
Bad input parameter
Example response:
HTTP/1.1 400 Bad Request Content-Type: application/json {}
Tag or user not found.
Example response:
HTTP/1.1 404 Not Found Content-Type: application/json {}