prototype currently supports get and post verbs in ajax.request. for other methods it does a horrible hack where it adds a _method= param.
Prototype can be a useful tool for implementing REST-ful clients in a user's browser. For wiring up a web page to a server side restful interface.
Restful interfaces can often use verbs other than get and post. e.g. they can use delete and put. quite commonly.
Standard restful interfaces will not often be changeable by the end user (the prototype user). e.g. telling twitter or google to add support for a _method= param in their api instead of requiring a PUT likely will not be successful.
I've made some minor changes to prototype, diff attached, so that it supports the standard verbs (get post put delete head) (trace?) And added support for bodies on puts (as well as posts)
previous lighthouse ticket #1220 by retep
prototype currently supports get and post verbs in ajax.request. for other methods it does a horrible hack where it adds a _method= param.
Prototype can be a useful tool for implementing REST-ful clients in a user's browser. For wiring up a web page to a server side restful interface.
Restful interfaces can often use verbs other than get and post. e.g. they can use delete and put. quite commonly.
Standard restful interfaces will not often be changeable by the end user (the prototype user). e.g. telling twitter or google to add support for a _method= param in their api instead of requiring a PUT likely will not be successful.
I've made some minor changes to prototype, diff attached, so that it supports the standard verbs (get post put delete head) (trace?) And added support for bodies on puts (as well as posts)