Overview
Save Big on Coursera Plus. 7,000+ courses at $160 off. Limited Time Only!
Learn to build robust and well-documented RESTful APIs using Flask and Flask-Restplus in this 26-minute conference talk from EuroPython 2016. Explore techniques for automating common API tasks, including input validation, output serialization, request routing, and exception handling. Discover how to leverage Swagger to generate interactive UI documentation, making endpoint testing and exploration effortless. Gain insights into best practices for developing scalable and maintainable APIs, and get an overview of the Flask ecosystem's powerful components that rival fully-featured frameworks like Django.
Syllabus
Intro
WHAT IS A WEB API?
ANATOMY OF HTTP
REST CONVENTIONS
FLASK-RESTPlus
OPEN API SPECIFICATION
REQUEST METHOD
REQUEST PATH
QUERY ARGUMENTS GET /api/books?page=1&per_page=10
REQUEST BODY (SON) API MODELS
API MODELS INHERITANCE AND NESTING
RESPONSE STATUS CODE
RESPONSE BODY (SON)
EXCEPTION HANDLING
Taught by
EuroPython Conference