Flask-RESTful: Parsing & Validating Input Requests
Flask-RESTful 1.1.1
| Intermediate
- 9 videos | 1h 5m 13s
- Includes Assessment
- Earns a Badge
A major benefit when building REST APIs in Flask-RESTful, is unlimited access to use the built-in request parser any time you want to parse and validate input arguments to your API server. Python developers will find the flexibility and extensibility of Flask-RESTful very useful. In this course, you'll learn to effectively use a request parser object to parse and extract input arguments from user requests. You'll validate input arguments using the right configuration before setting up custom help messages for the parser arguments. Next, you'll examine how your request parser can look beyond the request body - in the query string, cookies, and other locations, for input arguments. You'll explore how to inherit from an existing parser object and how to modify a parser to suit your needs. Finally, you'll investigate how to make errors returned by the parser more user-friendly by choosing to bundle them together to return as a group in a JSON response.
WHAT YOU WILL LEARN
-
Discover the key concepts covered in this courseUse a request parser to parse input arguments sent in a request bodyConfigure required parameters using the flask-restful request parserSpecify custom error messages for missing arguments using the flask-restful libraryImplement methods to respond to get, post, put, and delete http requests using the flask-restful library
-
Configure a flask-restful request parser to parse arguments from different locationsUse the copy method to inherit from a predefined request parser via flask-restfulUse the flask-restful library to bundle parsing errorsSummarize the key concepts covered in this course
IN THIS COURSE
-
2m 4sDiscover how to intelligently work with Flask-RESTful to parse and validate API arguments to your server. RequestParser objects are used to parse and extract input arguments from user requests. Configure your parser to do more and work smarter for you. FREE ACCESS
-
7m 18sImprove your ability to access and parse challenging form data. This video demonstrates the simple and unified method of parsing input arguments available to you when using Flask-RESTful request parser. FREE ACCESS
-
6m 57sStart using Required parameters to validate POST requests and understand error messages returned from the request parser. This video teaches you how to easily change the default Required parameter and validate Required parameters using Flask-RESTful request parser. FREE ACCESS
-
8m 9sSave time and effort by validating input arguments based on specified type and required parameter settings. This video demonstrates how to configure ParseReqeusts to control the type of POST data that will be returned as well as returning custom error messages based on your required parameters when using Flask-RESTful request parser. FREE ACCESS
-
6m 41sWatch this video to learn how to use a specific list or lists inisde input arguments. Understanding what the list input pulls and how to use the list argument to respond to different requests is essential to using Flask-RESTful. FREE ACCESS
-
11m 3sLearn to parse arguments from different locations and how to configure the request parser to look within the request body to find values for arguments. If done correctly, you'll be rewarded by the parser finding the input argument values within the request body and reacting accordingly. FREE ACCESS
-
8m 45sBecome skilled at configuring your own derived parser from a pre-defined request parser using the copy method to inherit from it. Understanding the utilization of parser inheritance lets you work more efficiently by creating different types of request parsers. FREE ACCESS
-
12m 17sEnhance your skills by learning how to configure the error handling mechanism of the request parser. Take back your work time by making returned response errors more useful and configuring your request parser look for multiple errors at a time using the input argument Bundle Errors. FREE ACCESS
-
1m 59sReview the steps taken to work intelligently with Flask-RESTful to parse and validate API arguments to your server. This course demonstrated how to use RequestParser objects to parse and extract input arguments from user requests and how to configure your parser to do more - and work smarter - for you. FREE ACCESS
EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE
Skillsoft is providing you the opportunity to earn a digital badge upon successful completion on some of our courses, which can be shared on any social network or business platform.
Digital badges are yours to keep, forever.