def best_product_matches(): npn = request.args.get('npn', default='', type=str) company_name = request.args.get('company_name', default='', type=str) product_name = request.args.get('product_name', default='', type=str) url = mapi_url('best_product_matches') if (url): response = requests.post(url, json={ 'npn': npn, 'company_name': company_name, 'product_name': product_name }).json() else: response = LNHPD.best_product_matches(npn, company_name, product_name) return jsonify(response)
async def best_product_matches(p: Product): """ See LNHPD.best_product_matches for documentation """ return LNHPD.best_product_matches(p.npn, p.company_name, p.product_name)