Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 2006,
    "detail": "yexdgojPTTCehNhJLfsm"
}
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": "7fa840da-b969-4ef5-99df-3390abd12417",
    "email": "ebrown@example.net",
    "organization_name": "{organization_name object}",
    "status": false
}
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": 8459,
    "face_attribute_count": 9545,
    "face_count": 3980
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "e318914e-c871-4d4b-b621-9bbfffd79a72",
        "email": "imorrison@example.net",
        "organization_name": "{organization_name object}",
        "status": true
    },
    "stats": {
        "list_count": 9192,
        "face_attribute_count": 1674,
        "face_count": 650
    }
}
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": "bbff510e-da29-4d74-8004-1ecff71578d5",
    "account_id": "b95c34a7-74ca-4a29-93c5-c3b6b47ce7eb",
    "user_data": "robinsonandrew",
    "count_object_in_list": 4242,
    "last_update_time": "1994-11-09T20:36:28"
}