Пример #1
0
def get_status():
    status = bb_api_request_processor.APIRequestProcessor().service_status_get(
    )
    bb_auditlogger.BBAuditLoggerFactory().create().logAudit(
        'app', 'GET_STATUS', status)
    return status
Пример #2
0
def get_stats():
    result = bb_api_request_processor.APIRequestProcessor()\
        .service_stats_get()
    bb_auditlogger.BBAuditLoggerFactory().create().logAudit(
        'app', 'GET_STATS', str(result))
    return jsonify(stats=result)
Пример #3
0
def uri_get_logs():
    result = bb_api_request_processor.APIRequestProcessor().logs_get()
    return jsonify(logs=result)
Пример #4
0
def uri_get_status(requestermobile):
    return jsonify(bb_api_request_processor.APIRequestProcessor().status_get(
        requestermobile))
Пример #5
0
def uri_get_blocksall():
    result = bb_api_request_processor.APIRequestProcessor().blocks_getall()
    return jsonify(blocks=result)
Пример #6
0
def uri_get_registrations(registration):
    result = bb_api_request_processor.APIRequestProcessor().cars_get(
        registration)
    return jsonify(result)
Пример #7
0
def uri_get_cars():
    result = bb_api_request_processor.APIRequestProcessor()\
        .cars_getall()
    return jsonify(cars=result)