filmov
tv
PATCHing your HTTP API for fun and profit

Показать описание
Providing some sort of support for patching resources in HTTP APIs is a relatively common goal. In this conversation with Mike Amundsen we talk about what matters when it comes to supporting PATCH operations in HTTP APIs (it's all about the media types and not about the HTTP method), and how much sense it makes to support generic patch operations.
First of all, for many APIs generic patch support probably is not a great design choice. Instead, think of the interactions that are meaningful for what the API is representing, and then support those interactions.
If you do need/want support for patch operations, then the most important part of that is to design a format for representing patch requests. For JSON, there are two standardized formats to choose from, standardized in RFCs 6902 and 7386. Whether you design you API to use the HTTP PATCH or POST method does not make such a big difference, but it's good to be consistent across APIs if you have various APIs supporting patch operations.
First of all, for many APIs generic patch support probably is not a great design choice. Instead, think of the interactions that are meaningful for what the API is representing, and then support those interactions.
If you do need/want support for patch operations, then the most important part of that is to design a format for representing patch requests. For JSON, there are two standardized formats to choose from, standardized in RFCs 6902 and 7386. Whether you design you API to use the HTTP PATCH or POST method does not make such a big difference, but it's good to be consistent across APIs if you have various APIs supporting patch operations.
PATCHing your HTTP API for fun and profit
PUT/PATCH REST APIs - All you need to know about why and where to use Put vs Patch
Postman Beginner Tutorial 4 | PUT PATCH API Request
Use POST PUT PATCH methods properly in your REST API #restapi
API testing with TechieQA
REST API Development: PATCH vs PUT
METODY PROTOKOŁU HTTP | REST API
Differences between PUT, POST, and PATCH #shorts
MAD I API Session
What is a REST API ? | POST Vs PATCH | Network Automation 101
Example of PATCH API / PATCH Method. See the description.
What is Patch Request? | How to Create Patch Request? | API Testing Using Postman
REST API Fundamentals: Learn to Use GET, POST, PUT, & DELETE
Part 19 Why HttpPatch in Web/REST API 7.0 || Asp.Net Core Web API Tutorials C#
RESTful APIs in 100 Seconds // Build an API from Scratch with Node.js Express
PUT vs POST: What's the difference?
Main Difference between PUT and Patch method in API Testing
CURL API Testing Tutorial : How to Use CURL to Send API Requests?
How to test API in Postman? | What is API testing? #infysky #reactjs #laravel #razorpay #coding
What is a REST API ? | PUT Vs PATCH Vs POST | POSTMAN
Cypress tutorial #29 | PUT, PATCH, DELETE API Testing
Python Requests | PATCH () METHOD | REST API
Components of an HTTP request || API testing || Selenium Java
Fix PATCH & PUT Requests Not Working with FormData in Your API! - Laravel
Комментарии