Flask-RESTful: Parsing & Validating Input Requests

Flask-RESTful 1.1.1
  • 9 Videos | 1h 8m 43s
  • 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 course
    use a request parser to parse input arguments sent in a request body
    configure required parameters using the Flask-RESTful request parser
    specify custom error messages for missing arguments using the Flask-RESTful library
    implement 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 locations
    use the copy method to inherit from a predefined request parser via Flask-RESTful
    use the Flask-RESTful library to bundle parsing errors
    summarize the key concepts covered in this course

IN THIS COURSE

  • Playable
    1. 
    Course Overview
    2m 4s
    UP NEXT
  • Playable
    2. 
    Using the Flask-RESTful Request Parser
    7m 18s
  • Locked
    3. 
    Validating Required Parameters Using Request Parsers
    6m 57s
  • Locked
    4. 
    Implementing Custom Error Messages for Validation
    8m 9s
  • Locked
    5. 
    Specifying Lists in Input Arguments
    6m 41s
  • Locked
    6. 
    Configuring Argument Locations in the Request Parser
    11m 3s
  • Locked
    7. 
    Utilizing Parser Inheritance
    8m 45s
  • Locked
    8. 
    Implementing Error Handling
    12m 17s
  • Locked
    9. 
    Course Summary
    1m 59s

EARN A DIGITAL BADGE WHEN YOU COMPLETE THIS COURSE

Skillsoft is providing you the opportunity to earn a digital badge upon successful completion of this course, which can be shared on any social network or business platform

Digital badges are yours to keep, forever.

YOU MIGHT ALSO LIKE

Likes 11 Likes 11