Installing Flask-Restless

With our model in place, we are now ready to install Flask-Restless, a third-party Flask extension that makes it simple to build RESTful APIs for your SQLAlchemy models. After ensuring that you have activated the blog app's virtual environment, install Flask-Restless using pip:

(blog) $ pip install Flask-Restless

You can verify if the extension is installed by opening up the interactive interpreter and getting the version that is installed. Don't forget, your exact version number may differ.

(blog) $ ./manage.py shell

In [1]: import flask_restless

In [2]: flask_restless.__version__
Out[2]: '0.13.0'

Now that we have Flask-Restless installed, let's configure it to work with our application.

Setting up Flask-Restless

Like ...

Get Learning Flask Framework now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.