Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 4612,
    "detail": "whLvcAjDOsXVzYibwoAD"
}
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": "f7d5dfe5-4238-47ba-8987-0741869b30cc",
    "email": "ecoleman@example.org",
    "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": 5556,
    "face_attribute_count": 6637,
    "face_count": 3422
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "e64c1516-ba0b-4219-9390-803de84afeab",
        "email": "leejennifer@example.org",
        "organization_name": "{organization_name object}",
        "status": true
    },
    "stats": {
        "list_count": 7526,
        "face_attribute_count": 6324,
        "face_count": 7751
    }
}
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": "1170ad52-f0da-440e-8172-db0734fc1a0e",
    "account_id": "e6bb1643-4979-444b-b696-cb09a36a2c24",
    "user_data": "elliottsamuel",
    "count_object_in_list": 2574,
    "last_update_time": "2013-03-21T06:54:13"
}