POST Requests - Rest APIs In Depth

Published: 02 February 2024
on channel: Tech with Nader
357
28

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  


Watch video POST Requests - Rest APIs In Depth online without registration, duration hours minute second in high quality. This video was added by user Tech with Nader 02 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 35 once and liked it 2 people.