miLibris / flask-rest-jsonapi

Flask extension to build REST APIs around JSONAPI 1.0 specification.
http://flask-rest-jsonapi.readthedocs.io
MIT License
597 stars 153 forks source link

Set default PAGE_SIZE for Api in __init__ (#64) #65

Closed jcampbell closed 6 years ago

jcampbell commented 7 years ago

Sets the default value of PAGE_SIZE for the Api object when it is initialized using a Flask app (as it is in current documentation examples).

akira-dev commented 7 years ago

I can't merge this PR until continuous integration test fails. Please fix tests if you want to include this fix soon.

jpcampb2 commented 7 years ago

I adjusted Api's init to create a default Flask object if no app is provided.

coveralls commented 7 years ago

Coverage Status

Coverage decreased (-0.2%) to 94.186% when pulling 752052dc341a9065e1a04ea0705ac325a63f0177 on jcampbell:patch-1 into 6ab02abc5071e82babd104de7b2afbc59fa27037 on miLibris:master.

jcampbell commented 6 years ago

Thanks, @hellupline. Closing this as irrelevant now based on your new pull request.