Python is the language of choice for millions of developers worldwide, due to its gentle learning curve as well as its vast applications in day-to-day programming. It builds great web services in the RESTful architecture. This video will show you the best tools you can use to build your own web services. Learn how to develop RESTful APIs using the popular Python frameworks and all the necessary stacks with Python and Flask, combined with related libraries and tools. We will delve into the framework for building various web services. We will show you everything required to successfully develop RESTful APIs with the Flask framework, such as request handling, URL mapping, serialization, validation, authentication, authorization, versioning, databases, and asynchronous callbacks. At the end of the framework, we will add authentication and security to the RESTful APIs and prepare tests for them. By the end of the video, you will have a deep understanding of the stacks needed to build RESTful web services.
About The Author
Gastón C. Hillar is Italian and has been working with computers since he was eight. He began programming with the legendary Texas TI-99/4A and Commodore 64 home computers in the early 80s. He has a Bachelor's degree in Computer Science (he graduated with honors) and an MBA (he graduated with an outstanding thesis). At present, Gastón is an independent IT consultant and freelance author who is always looking for new adventures around the world.
He has been a senior contributing editor at Dr. Dobb's and has written more than a hundred articles on software development topics. Gastón was also a former Microsoft MVP in technical computing. He has received the prestigious Intel® Black Belt Software Developer award eight times.
He is a guest blogger at Intel® Software Network. You can reach him at firstname.lastname@example.org.
This video will teach us the requirements for our main resource of a message.
In this video, we will create a new lightweight Virtual environment to work with Flask and Flask-RESTful.
This video will teach us to borrow the code that declares useful functions and variables related to HTTP status codes to represent messages.
In this video, we will create a MessageManager class that we will use to persist the MessageModel instances in an in-memory dictionary.
In this video, we will declare the methods for each supported HTTP verb to represent the collection of messages.
Learn to create the main entry point for the application and initialize it with a Flask application.
Learn to compose and send HTTP requests with the command-line tool to install the HTTPie package.
In this video, we will work with one of the GUI tools we used when composing and sending HTTP requests to the Django development server-Postman.
Learn to retrieve all the messages that belong to a specific message category and therefore, we will have a relationship between a message and a message category.
In this video, we will install many additional packages.
Learn to create the PostgreSQL database that we will use as a repository for our API.
In this video, we will create the models that we can use to represent and persist the message categories, messages, and their relationships.
Learn to create the Flask-Marshmallow schemas that we will use to validate, serialize, and deserialize the previously declared Category and Message models and their relationships.
In this video, we will create the resources that compose our main building blocks for the RESTful API.
Learn to create the main entry point for the Flask application named app.
In this video, we will use the HTTPie to compose and send HTTP requests to the API.
In this video, we will improve unique values in the category table.
In this video, we will see how our API is able to update a single field for an existing resource, and therefore, we provide an implementation for the PATCH method.
Learn to create a generic pagination class and we will use it to easily specify how we want large results sets to be split into individual pages of data.
In this video, we will learn to add the import statement for adding pagination features.
In this video, we will install a Flask extension to make it easier for us to work with HTTP Authentication.
In this video, we will learn to create the model that we will use to represent and persist the user.
Learn to configure the Flask-HTTPAuth extension to work with our User model to verify passwords and set the authenticated user associated with a request.
In this video, we will create users and use them to authenticate requests.
We will learn to migrate and generate the necessary table in the PostgreSQL database.
In this video, we will compose and send an HTTP request to retrieve the first page of the messages without authentication credentials
In this video, We will use nose2 to make it easier to discover and run unit tests.
In this video, we will define unit tests related to the user and message category resources.
Learn to use the nose2 test running to execute all the tests we created.
In this video, we will define additional unit tests to improve the testing coverage.
In this video, we will deploy cloud-native RESTful Web Services.
Packt has been committed to developer learning since 2004. A lot has changed in software since then - but Packt has remained responsive to these changes, continuing to look forward at the trends and tools defining the way we work and live. And how to put them to work.
With an extensive library of content - more than 4000 books and video courses -Packt's mission is to help developers stay relevant in a rapidly changing world. From new web frameworks and programming languages, to cutting edge data analytics, and DevOps, Packt takes software professionals in every field to what's important to them now.
From skills that will help you to develop and future proof your career to immediate solutions to every day tech challenges, Packt is a go-to resource to make you a better, smarter developer.
Packt Udemy courses continue this tradition, bringing you comprehensive yet concise video courses straight from the experts.