

def appstore_api(request):
    (params, facets) = parse_args_for_es(request)
    results = es_snapshot_query(params, facets)
    return HttpResponse(json.dumps(results), content_type='application/json')

dataset/ETHPy150Open dimagi/commcare-hq/corehq/apps/appstore/views.py appstore_api/original