Untitled
unknown
plain_text
a year ago
874 B
2
Indexable
Never
@app.route('/api/businessid/<businessid>', methods=['GET']) def get_by_businessid(businessid): results = HosCartDetail.objects(hoscd_businessid=businessid).all() return jsonify([result.to_dict() for result in results]) @app.route('/api/username/<username>', methods=['GET']) def get_by_username(username): results = HosCartDetail.objects(hoscd_username=username).all() return jsonify([result.to_dict() for result in results]) @app.route('/api/event_date/<event_date>', methods=['GET']) def get_by_event_date(event_date): results = HosCartDetail.objects(hoscd_event_date=event_date).all() return jsonify([result.to_dict() for result in results]) @app.route('/api/status/<status>', methods=['GET']) def get_by_status(status): results = HosCartDetail.objects(hoscd_status=status).all() return jsonify([result.to_dict() for result in results])