Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 5507,
    "detail": "tdRbhNWXfjpSAeASTywc"
}
account_info
Object Properties:
  • account_id (uuid4) – account id

  • email (email) – email of account

  • organization_name (organization_name) – organization name

  • status (boolean) – if account is currently blocked, system returns True

JSON Example
{
    "account_id": "5c558400-053b-466b-8acb-8ba7314fa314",
    "email": "parker17@example.org",
    "organization_name": "{organization_name object}",
    "status": true
}
account_stats
Object Properties:
  • list_count (integer) – list count of account

  • face_attribute_count (integer) – face attribute count of account

  • face_count (integer) – face count of account

JSON Example
{
    "list_count": 2879,
    "face_attribute_count": 6448,
    "face_count": 1386
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "73ef0edf-8f0e-46c9-8338-5728f9e40021",
        "email": "donnasmith@example.net",
        "organization_name": "{organization_name object}",
        "status": false
    },
    "stats": {
        "list_count": 8705,
        "face_attribute_count": 3607,
        "face_count": 599
    }
}
luna_list
Object Properties:
  • list_id (uuid4) – list id

  • account_id (uuid4) – account id

  • user_data (user_name) – user data about list

  • count_object_in_list (integer) – object’s count in list

  • last_update_time (iso8601) – time of last action with list (attach or detach face from list)

JSON Example
{
    "list_id": "539253f4-d4a9-4bf0-af05-fbe4987039f0",
    "account_id": "c30af0d1-234a-462f-8781-9f50a1b7b4c9",
    "user_data": "zbarnes",
    "count_object_in_list": 4185,
    "last_update_time": "1995-11-04T17:39:50"
}