I've tried to work with Flask-Restless, but I'm not sure, I think its unable to work with factory pattern and blueprints.
I want to find something similar to Restless(simple generation/JSON format) but compatible with the factory pattern & blueprints so, Which FP&BP supported extension you recommend me to build an API under those requirements?
You can build a REST API using Blueprints quite simply without relying on any Flask extensions.
This is a non-working example, but should help you get started. Set up a basic blueprint file (let's assume it's called
user.py):and then just add the blue print to your Flask server as normal, e.g. your
__init__.pywill have something like this: