Integrate swagger and model validation to python flask APIs with flask-restx
Learning Software Learning Software
5.61K subscribers
3,984 views
62

 Published On Mar 12, 2023

Blog post - https://nagasudhir.blogspot.com/2023/...

Flask Playlist -    • Flask Web development skills  

Forms in flask with front-end and server-side validation -    • Forms in flask with front-end and ser...  

Create API endpoints in Flask -    • Create API endpoints with Flask  

Flask Blueprints for modular MVC like web applications -    • Flask Blueprints for modular MVC like...  

In this video, we will learn how to integrate swagger, request validation, response marshalling, request parsing and many more useful features to Flask REST APIs using the flask-restx python module

Table of contents - https://nagasudhir.blogspot.com/2020/...

Please subscribe, like and share this video

00:00 - Intro and Swagger Demo
02:22 - Swagger JSON
02:48 - Install flask-restx
03:09 - Terminology and basics
05:01 - API model in flask-restx
07:10 - Code start
08:07 - Creating a flask-restx api application
09:15 - Creating a Namespace / API controller
10:17 - Creating a Resource / API route
12:15 - Running the server
12:54 - Creating an API model
13:33 - model binding in api endpoint with "expect"
14:56 - response marshaling with "marshal_with", "marshal_list_with"
16:22 - extract id from url segment in a Resource
19:43 - Use blueprints to submount the API application under a url-prefix
21:16 - Separate file for each Namespace
22:48 - Outro

#flask #api #endpoint #restapi #flask_restx #python #server #web #dev #tutorial #learning #beginners #pythonforbeginners #taming_python

show more

Share/Embed