PUT & PATCH Requests - Rest APIs In Depth

Опубликовано: 06 Февраль 2024
на канале: 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  


Смотрите видео PUT & PATCH Requests - Rest APIs In Depth онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Tech with Nader 06 Февраль 2024, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 31 раз и оно понравилось 1 людям.