def METHOD_NAME():
    obj_type = request.args.get('type')
    if obj_type not in ail_core.get_objects_with_subtypes():
        return create_json_response({'error': 'Invalid Object type'}, 400)
    date_from = request.args.get('from')
    date_to = request.args.get('to')
    date = Date.sanitise_date_range(date_from, date_to)
    date_from = date['date_from']
    date_to = date['date_to']
    return jsonify(abstract_subtype_object.get_subtypes_objs_range_json(obj_type, date_from, date_to))