Face handler

class luna_faces.app.handlers.face_handler.FaceHandler(request)[source]

Handler for work with face

async delete(faceId)[source]

Delete the face. See spec_delete_face.

Return type:

HTTPResponse

Returns:

response with status code 204 if the face was successfully deleted

async get(faceId)[source]

Get the face. See spec_get_face.

Return type:

HTTPResponse

Returns:

response json with the face

async head(faceId)[source]

Check the face existence. See spec_check_face.

Return type:

HTTPResponse

Returns:

response with status code 200 if the face exists

async patch(faceId)[source]

Update the face. See spec_patch_face.

Return type:

HTTPResponse

Returns:

response with status code 204 if the face was successfully updated

async put(faceId)[source]

Create the face. See spec_put_face.

Return type:

HTTPResponse

Returns:

response json with new face id