Commit 75ed7421 authored by Cédric Bonhomme's avatar Cédric Bonhomme

Updated comment.

parent ef3fd8cc
......@@ -40,7 +40,7 @@ def where(location=None):
@app.route('/query/', methods=['GET'])
def query():
Return all EPCIS events at 'bizLocation'.
Return all EPCIS events matching the request received in parameter.
query_string, value = request.args.get('query'), request.args.get('value')
result = models.EPCISEvent.objects(**{"data__"+query_string: value}).only("data")
......@@ -48,7 +48,7 @@ def query():
return jsonify(result="no epcis event", nb_items=result.count())
epcis_events = [ for epcis_event in result]
return jsonify(result="ok", nb_items=result.count(), epcis_events=epcis_events)
def not_found(error=None):
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment