Click to watch Angular Playlist: • Angular
To download my git repo of JSON Server & use it in you local for practice, Please visit this link: https://github.com/lets-build-with-co...
HTTP Put Request in Angular
PUT is a method of modifying resources where the client sends data that updates the entire resource. PUT is similar to POST in that it can create resources, but it does so when there is a defined URL wherein PUT replaces the entire resource if it exists or creates new if it does not exist.
For example, When you want to update the Candidate name and email, you have to send all the parameters of the Candidate including those not to be updated in the request body, otherwise, it will simply replace the entire resource with the name and email.