Let's learn about how the POST HTTP method works in the context of a REST API.
We start with an overview of what a POST request is and how it related to our API. Then we get in to how we would use a POST request to create a new resource using our API in Deno.
We go through parsing out different body types as well as how we'll eventually want to deal with data validation issues such as missing or malformed data in the body of the POST request.
To wrap up the video we look at other request body encoding types such as url-encoding and multipart form-data as well. This sets us up to POST non-text data such as binary files which we will look at in the exercises together.
Chapters:
00:00 Introduction
01:29 POST Requests Overview
03:45 POST Request Visual
06:44 POST Request Example
10:09 POST Request Code Example
22:30 Request Body and Saving Data
38:34 Code Overview and Recap
41:21 Data Validation - Missing Field
43:16 Data Validation - Types
45:01 Request Encoding Types
49:16 Next Steps
📦 Github Repository with the notes and exercise code+solutions: https://github.com/Nooder/rest-api-in...
💬 Come join us on Discord to chat with a like-minded community about tech and learning: / discord
🏅Support the channel and content through Super Thanks, Channel Memberships, or on Patreon: / techwithnader
Смотрите видео POST Requests - Rest APIs In Depth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech with Nader 02 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 35 раз и оно понравилось 2 людям.