@imageinfo.route('/list', methods=['get'])
def list_():
    msg = {'err': None, 'res': []}
    try:
        namespace = request.args.get('namespace')
        temp = mydb.keys(db_path)
        for x in temp:
            term = x.split('/')
            if (term[0] == namespace):
                msg['res'].append(term[1])
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)
@imageinfo.route('/list', methods=['get'])
def list_():
    msg = {'err': None, 'res': []}
    try:
        namespace = request.args.get('namespace')
        temp = mydb.keys(db_path)
        for x in temp:
            term = x.split('/')
            if (term[0] == namespace):
                msg['res'].append(term[1])
    except Exception as e:
        logger.error(str(e))
        msg['err'] = str(e)
    return jsonify(msg)