Pergunta

Since not all client browsers support put and delete, is it good practice to only use 'get' and 'post' for all crud operations?

Foi útil?

Solução

Typically when you use a restful interface, its not intended for a browser...its intended for client software such as Javascript, Desktop applications, or 3-rd party interfaces.

Outras dicas

Yes. However, your framework should still support proper PUT and DELETE requests that come in. Ruby on Rails emulates these requests by using a special parameter to POST requests -- the framework then routes the request to a PUT/DELETE handler as appropriate.

See the first entry in this faq page: http://code.google.com/p/implementing-rest/wiki/FAQ

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top