News for hackers. Stuff that matters.
Re:Considerations When Planning Endpoints for your RESTful API by superasn on Wednesday October 19, 2011 @09:37AM (#3130049)
I don't know if there is a better way to do this, but when creating our own API we also added a $_GET['_method'] variable with 'GET|POST|PUT|DELETE' values. This was basically to override the HTTP request method. This gave us a lot of convenience calling the Rest API from flex/flash which does not support PUT/DELETE request types yet.
Re:Considerations When Planning Endpoints for your RESTful API by groks on Thursday October 20, 2011 @11:23AM (#3135250)
Re:Considerations When Planning Endpoints for your RESTful API by superasn on Thursday October 20, 2011 @01:35PM (#3135876)
ok thanks! still curious about the reasons why this hack is better than the one I've stated above? As I can see they're both using GET instead of PUT/DELETE and both adding extra parameters (one is using header, other is using request). Why would this be any better?