I'm writing serverless apps in python and deploy use chalice, lambda, aws
Just a quick question: I would like to limit the number of the item returned from the API.
Maximum 1000 items per day
Maximum 200 items per hour
Here is sample API:
@app.route('/items', authorizer=authorizer)
def get_items():
params = app.current_request.query_params
tickets = AvaiableItem(params).get()
return { 'items': items.serialize() }
How can I config the limit number?