PUT & PATCH Requests - Rest APIs In Depth

Published: 06 February 2024
on channel: Tech with Nader
310
15

Let's learn about how the PUT and PATCH HTTP methods work in the context of a REST API.

We start with an overview of what a PUT and PATCH requests are and how they related to our API.

We then compare and contrast PUT and PATCH requests with visual examples as well as in code using Deno. The main differentiator is that PUT requests replace a whole object, whereas PATCH requests allow us to do differential edits to part of an object.

We wrap up the video by looking at some data validation considerations as well as the different encoding types for the request body that we might want to use.

Chapters:
00:00 Introduction
00:55 PUT/PATCH Request Overview
02:21 PUT Request Visual Diagram
06:04 PUT Request Example
07:15 PUT Request Code Example
26:02 PATCH Request Visual Diagram
28:54 PATCH Request Example
29:55 PATCH Request Code Example
41:53 Data Validation
43:03 Request Body Encoding Types
43:56 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 PUT & PATCH Requests - Rest APIs In Depth online without registration, duration hours minute second in high quality. This video was added by user Tech with Nader 06 February 2024, don't forget to share it with your friends and acquaintances, it has been viewed on our site 31 once and liked it 1 people.