Verifiers handler

Verifiers handler.

class luna_handlers.app.handlers.verifiers_handler.VerifiersHandler(request)[source]

Handler for working with verifiers.

Resource: “/{api_version}/verifiers”

async get()[source]

Get verifiers by filters. See spec_get_verifiers.

Returns:

response with list of verifiers

Return type:

HTTPResponse

async post()[source]

Create new verifier. See spec_create_verifier.

Raises:

VLException(Error.BadContentType, 400, isCriticalError=False) if content type is unsupported

Returns:

response with verifier id and verifier location

Return type:

HTTPResponse

Verifier count handler

Verifier count handler.

class luna_handlers.app.handlers.verifiers_count_handler.VerifierCountHandler(request)[source]

Handler for getting verifier count

Resource: “/{api_version}/verifiers/count”

async get()[source]

Count verifiers that satisfy the filters. See spec_count_verifiers.

Returns:

Response with verifier count

Return type:

HTTPResponse

Verifier handler

Handler for a certain verifier.

class luna_handlers.app.handlers.verifier_handler.HandlerVerifyRaw(request)[source]

Handler for raw verifying reference descriptors vs candidates descriptors

Resource: “/{api_version}/verifiers/{verifierId}/raw”

class luna_handlers.app.handlers.verifier_handler.VerifierHandler(request)[source]

Handler for work with verifier.

Resource: “/{api_version}/verifiers/{verifierId}”

async delete(verifierId)[source]

Remove verifier by id. See spec_remove_verifier.

Parameters:

verifierId – verifier id

Raises:

VLException(Error.VerifierNotFound, 404, isCriticalError=False) if verifier not found

Returns:

response with status code 204

Return type:

HTTPResponse

async get(verifierId)[source]

Get verifier by id. See spec_get_verifier.

Parameters:

verifierId – verifier id

Returns:

response with status code 200 and verifier in body

Return type:

HTTPResponse

async head(verifierId)[source]

Check verifier existence by id. See spec_head_verifier.

Parameters:

verifierId – verifier id

Raises:

VLException(Error.VerifierNotFound, 404, isCriticalError=False) if verifier not found

Returns:

response with status code 200

Return type:

HTTPResponse

async put(verifierId)[source]

Replace the verifier. See spec_put_verifier.

Parameters:

verifierId – verifier id

Raises:
  • VLException(Error.BadContentType, 400, isCriticalError=False) if content type is upsupported

  • VLException(Error.VerifierNotFound, 404, isCriticalError=False) if verifier not found

Returns:

response with status code 200 and verifier current verion

Return type:

HTTPResponse