List handler

class luna_faces.app.handlers.list_handler.ListHandler(request)[source]

Handler for work with list

Resource: “/{api_version}/lists/{list_id}”

async checkList(listId)[source]

Checking exist list or not.

Parameters:

listId (str) – list id

Raises:

VLException(Error.ListNotFound, 404, isCriticalError=False) – if list is not exist

Return type:

None

async delete(listId)[source]

Delete list. See spec_delete_list.

Return type:

HTTPResponse

Returns:

response with status code 204

async get(listId)[source]

Get list by id. See spec_get_list.

Return type:

HTTPResponse

Returns:

response json with list and status code 200

async head(listId)[source]

Check list existence. See spec_check_list.

Return type:

HTTPResponse

Returns:

response with status code 200

async patch(listId)[source]

Update list user data. See spec_patch_list.

Return type:

HTTPResponse

Returns:

response with status code 204