Documentation of aiohttp-handlers

Common jsons

server_error
Object Properties:
JSON Example
{
    "error_code": 3650,
    "detail": "XZnHMyGqaTLDtXPYQCTi"
}
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": "d7954ccd-b708-404c-89fb-8f0e3933e089",
    "email": "xlawrence@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": 8948,
    "face_attribute_count": 7337,
    "face_count": 8030
}
account
Object Properties:
JSON Example
{
    "info": {
        "account_id": "027c06ff-525d-4260-adaf-7bd393fc8bb9",
        "email": "gmartinez@example.org",
        "organization_name": "{organization_name object}",
        "status": false
    },
    "stats": {
        "list_count": 3051,
        "face_attribute_count": 5310,
        "face_count": 1256
    }
}
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": "59126aa5-14bf-4aba-9e3e-7b0bc9583b3d",
    "account_id": "c3157b69-ece4-439e-8210-9a492e37b97a",
    "user_data": "charlene73",
    "count_object_in_list": 2656,
    "last_update_time": "2009-09-11T11:37:07"
}