Skip to content

Instantly share code, notes, and snippets.

@devarajchidambaram
Created November 7, 2019 09:39
Show Gist options
  • Save devarajchidambaram/aaeb27d650991ea8ae2b3f303f4b7acf to your computer and use it in GitHub Desktop.
Save devarajchidambaram/aaeb27d650991ea8ae2b3f303f4b7acf to your computer and use it in GitHub Desktop.
method Override
Following four HTTP methods are commonly used in REST.
• GET - This is to provide a read-only access to resource.
• PUT - This is to create a new resource
• DELETE - This is to remove a resource
• POST - This is to update a existing resource or create a new resource.
When we try to use PUT and DELETE in HTML, we have a problem. Browsers do support PUT and DELETE but it only by using request via AJAX, but not via 'HTML form' submission.
https://dev.to/moz5691/method-override-for-put-and-delete-in-html-3fp2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment