def get(self, bucket_id):
args = request.args
limit = int(args["limit"]) if "limit" in args else 100
start = iso8601.parse_date(args["start"]) if "start" in args else None
end = iso8601.parse_date(args["end"]) if "end" in args else None
events = app.api.get_events(bucket_id, limit=limit, start=start, end=end)
return events, 200
# TODO: How to tell expect that it could be a list of events? Until then we can't use validate.
评论列表
文章目录