Skip to main content

REST

REST: Is DELETE Idempotent?

·894 words·5 mins
This post is a thrive to learn, and not to show anyone is incorrect. Feel free to share your thoughts. Lukas Kahwe Smith was having a nice post RESTing with Symfony2 Quoting a few words from the post on REST DELETE and 404 # I started my talk on RESTing with Symfony2 with an introduction to REST itself. On slide 7 of my talk I explained the concept of “safe” and “idempotent” HTTP methods. Many people were surprised when I explained that DELETE should be idempotent, meaning that sending a DELETE request to a resource that has been removed should infact not return a 404.

Magento and the REST API

·712 words·4 mins
Magento provides both REST and SOAP api. In this post I would like to concentrate on REST api to connect and get the products from magento shop. First we want to register an Oauth consumer to get the consumer key and secret key. Login to the admin of the magento shop and from the menu System->Web Services->REST - Oauth Consumers and add a new Ouath consumer.