Metadata-Version: 1.1
Name: Flask-RESTy
Version: 0.18.1
Summary: Building blocks for REST APIs for Flask
Home-page: https://github.com/4Catalyzer/flask-resty
Author: Jimmy Jia
Author-email: tesrin@gmail.com
License: MIT
Description-Content-Type: UNKNOWN
Description: .. _flask-resty-travisbuild-badgebuild-pypipypi-badgepypi:
        
        Flask-RESTy `Travis <https://travis-ci.org/4Catalyzer/flask-resty>`__ `PyPI <https://pypi.python.org/pypi/Flask-RESTy>`__
        =========================================================================================================================
        
        Building blocks for REST APIs for `Flask <http://flask.pocoo.org/>`__.
        
        `Codecov <https://codecov.io/gh/4Catalyzer/flask-resty>`__
        
        Usage
        -----
        
        Create a `SQLAlchemy <http://www.sqlalchemy.org/>`__ model and a
        `marshmallow <http://marshmallow.rtfd.org/>`__ schema, then:
        
        .. code:: python
        
           from flask_resty import Api, GenericModelView
        
           from .models import Widget
           from .schemas import WidgetSchema
        
        
           class WidgetViewBase(GenericModelView):
               model = Widget
               schema = WidgetSchema()
        
        
           class WidgetListView(WidgetViewBase):
               def get(self):
                   return self.list()
        
               def post(self):
                   return self.create()
        
        
           class WidgetView(WidgetViewBase):
               def get(self, id):
                   return self.retrieve(id)
        
               def patch(self, id):
                   return self.update(id, partial=True)
        
               def delete(self, id):
                   return self.destroy(id)
        
        
           api = Api(app, '/api')
           api.add_resource('/widgets', WidgetListView, WidgetView)
        
Keywords: rest flask
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Framework :: Flask
Classifier: Environment :: Web Environment
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Internet :: WWW/HTTP :: Dynamic Content
Classifier: Topic :: Software Development :: Libraries :: Python Modules
