KO
|
EN
gitlite — search
Search
#nodejs
#machine-learning
#golang
#java
#testing
#javascript
#library
#php
#android
#python3
#linux
#data
flask-resty
★ 88
Open GitHub ↗
Building blocks for REST APIs for Flask
Download README (.md)
Explore Similar Repositories
lazyload
:
Lazyload images or lazy execute scripts. (图片脚本懒加载)
git-changelog-gradle-plugin
:
Automate changelog and versioning with conventional commits and Git.
book-fast-service-fabric
:
A sample demonstrating how to implement a multitenant facility management and accommodation booking application as native Azure Service Fabric reliable services.
Microsoft.Diagnostics.Tracing.Logging
:
.NET library for logging data via EventSource/ETW
image-to-ansi
:
Convert an image to ANSI colour codes using JavaScript.
// repository documentation
Was this content helpful?
★ 0
(0 ratings)
Select Rating:
★
★
★
★
★
Submit Feedback
Recent Feedback
×
Download README
Do you want to download the
README.md
file for
flask-resty
?
Download (.md)
# Flask-RESTy [![GitHub Actions][build-badge]][build] [![Codecov][codecov-badge]][codecov] [![PyPI][pypi-badge]][pypi] [![marshmallow 3 compatible][marshmallow-badge]][marshmallow-upgrading] Flask-RESTy provides building blocks for creating REST APIs with [Flask](http://flask.pocoo.org/), [SQLAlchemy](https://www.sqlalchemy.org/), and [marshmallow](https://marshmallow.readthedocs.io/). ```python from flask_resty import Api, GenericModelView from . import app, models, schemas class WidgetViewBase(GenericModelView): model = models.Widget schema = schemas.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) ``` ## Documentation Documentation is available at https://flask-resty.readthedocs.io/. ## License MIT Licensed. See the bundled [LICENSE](https://github.com/4Catalyzer/flask-resty/blob/master/LICENSE) file for more details. [build-badge]: https://github.com/4Catalyzer/flask-resty/actions/workflows/main.yml/badge.svg [build]: https://github.com/4Catalyzer/flask-resty/actions [pypi-badge]: https://img.shields.io/pypi/v/Flask-RESTy.svg [pypi]: https://pypi.python.org/pypi/Flask-RESTy [codecov-badge]: https://img.shields.io/codecov/c/github/4Catalyzer/flask-resty/master.svg [codecov]: https://codecov.io/gh/4Catalyzer/flask-resty [marshmallow-badge]: https://badgen.net/badge/marshmallow/3 [marshmallow-upgrading]: https://marshmallow.readthedocs.io/en/latest/upgrading.html