how to create #RESTful API with #nodejs in hindi | #PUT method in REST API in #nodejs by Ashish 😮
Use PUT when you want to modify a singular resource which is already a part of resources collection. PUT replaces the resource in its entirety. Use PATCH if request updates part of the resource.
Generally, in practice, always use PUT for #UPDATE operations.
Handling PUT requests
PUT requests will be used to make updates to existing resources. It’s important to note that #PUT is used to replace the entire resource – it doesn’t do partial updates (I will show you how to do this with PATCH in the future).
Comments
Post a Comment