Account handler

Module realize handlers for work with an account.

class luna_admin.app.handlers.account_handler.AccountHandler(request)[source]

Handler for work with an account.

async delete(accountId)[source]

Delete account id handler. See spec_remove_account.

Parameters

accountId (str) – account id

Return type

HTTPResponse

Returns

response with status code 204

async get(accountId)[source]

Get account info. See spec_get_account_info.

Return type

HTTPResponse

Returns

response with account id

async put(accountId)[source]

Register a new account with the specified id in luna-admin. See spec_put_account.

Return type

HTTPResponse

Returns

response with account id