Tokens

Token objects

Token objects consist of the following properties:

id
The token’s unique identifier.
tokenString
The token’s unique string.
tokenType
The token’s type: UNKNOWN, MIFARE, BARCODE, CALYPSO.

Token services

GET /abs/frontend/rfid

Retrieve a list of tokens. Without query parameters, all known tokens are returned, With query parameters, only matching tokens are returned.

Role:

admin

Query Parameters:
 
  • tokenString?, tokenType? – Only return matching tokens.

Example response

{ "statusCode": "100", "rfids": [ ...list of token objects... ] }
GET /abs/frontend/rfid/(id)

Retrieve a specific token.

Role:

admin

Status Codes:
  • 212 – Unknown token.

Example response

{ "statusCode": "100", "rfid": { ... } }
POST /abs/frontend/rfid

Register a new token.

Role:

admin

Query Parameters:
 
  • tokenString – The token’s unique string.
  • tokenType – The token’s type.
Status Codes:
  • 322 – The provided token string already exists.