Beispiel #1
0
def api_delete_scan(request):
    """POST - Delete a Scan"""
    if "hash" in request.POST:
        resp = delete_scan(request, True)
        if "error" in resp:
            response = make_api_response(resp, 500)
        else:
            response = make_api_response(resp, 200)
    else:
        response = make_api_response({"error": "Missing Parameters"}, 422)
    return response
Beispiel #2
0
def api_delete_scan(request):
    """POST - Delete a Scan."""
    if 'hash' in request.POST:
        resp = delete_scan(request, True)
        if 'error' in resp:
            response = make_api_response(resp, 500)
        else:
            response = make_api_response(resp, 200)
    else:
        response = make_api_response({'error': 'Missing Parameters'}, 422)
    return response
def api_delete_scan(request):
    """POST - Delete a Scan"""
    if "hash" in request.POST:
        resp = delete_scan(request, True)
        if "error" in resp:
            response = make_api_response(resp, 500)
        else:
            response = make_api_response(resp, 200)
    else:
        response = make_api_response(
            {"error": "Missing Parameters"}, 422)
    return response