flask-stupe
flask-stupe copied to clipboard
:syringe: a.k.a. « Flask on steroids »
Hi, I PR this as apparently there is a need (@trubesv ). At least we can discuss the implementation.
See https://github.com/pallets/flask/pull/3111. Some changes should be made here, starting with the README example, which is no longer up to date.
When doing pagination it is nice to have http headers see https://www.vinaysahni.com/best-practices-for-a-pragmatic-restful-api#pagination and https://tools.ietf.org/html/rfc5988#page-6 These make life much easier than having to roll things yourself which can lead to mistakes
Trying to run our README's example without PyMongo installed throws: ``` Traceback (most recent call last): File "run.py", line 2, in from flask_stupe import paginate, schema_required ImportError: cannot import name...