Building Web APIs with Flask-RESTful
summary
Flask-RESTful is an extension that turns Flask views into class-based Resource handlers, replaces repetitive parsing and formatting with reqparse and marshal/fields, and wires content negotiation plus custom serializers. The library ships with JSON only, is easy to extend to XML, and supports custom types and a global error-to-response mapping. It powers the majority of Twilio’s REST API traffic, has ~900 GitHub stars, and shortens handlers so business logic is just a few lines.
AI-written summary · about
chapters (13)
- 0:00Introduction to API dev
- 0:35Understanding REST and Flask
- 1:36Creating a simple web app
- 2:55Building API endpoints
- 5:11API development challenges
- 7:11Introduction to Flask-RESTful
- 8:53Input parsing and validation
- 10:45Output formatting and marshall
- 12:33Implementing API resources
- 14:47Advanced representation and XML
- 16:02Custom data types and fields
- 18:50Error handling mechanisms
- 20:23Q&A and conclusion
related talks
46mIntroducing Django REST framework
50mDeveloping a RESTful Python service
41mReST 3.0 – A lap around HTTP Apis' next generation
53mEffective Design of RESTful APIs
30mGenerating docs from APIs
27mBuilding a REST API with Django & Django REST Framework
22mBuilding Better Web APIs
42mREST API design good practices
