History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: ZF-1105
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Not an Issue
Priority: Major Major
Assignee: Ryan Boyd
Reporter: Olivier Bregeras
Votes: 0
Watchers: 2
Operations

If you were logged in you would be able to see more operations.
Google issue summary
Zend Framework

GData only allow POST as request method and not PUT

Created: 21/Mar/07 10:16 PM   Updated: 05/Jul/07 02:43 PM
Component/s: Zend_Gdata
Affects Version/s: 0.7.0, 0.8.0, 0.9.0, 0.6.0
Fix Version/s: 0.6.0

Time Tracking:
Not Specified

Tags:
Participants: Darby Felton, Olivier Bregeras and Ryan Boyd


 Description  « Hide
Google API expect specific method for each action.
To create a new entry in blogger you have to use POST (HTTP), but if you want to modify this entry, you have to use PUT.

GData only allow post so you can't modify an entry for example in Blogger.
This also affect the new Picasa API as you have to use PUT to update a photo.

This should affect other Google API.

The DELETE (HTTP) should also be allowed.

Proposal:
Maybe the HTTP method should be an attribute of the method post of the class Zend_Gdata (and maybe the method post should be renamed)



 All   Comments   Work Log   Change History   FishEye   Crucible      Sort Order: Ascending order - Click to sort in descending order
Darby Felton - 28/Mar/07 09:37 AM
Assigning to Bill Karwin.

Ryan Boyd - 28/Mar/07 09:54 AM
The GData component does allow for modifying an entry via retrieving an individual entry, updating it, and then calling the save() method on it. The same thing is true of the delete() method. (These two are located in Zend_Feed_EntryAtom).

It may be desirable to have a method put() and delete() in the Zend_Gdata class which takes an entry and calls the put or delete method on it-- but this would only be for convenience and uniformity, and would not add functionality. As the delete method would not require anything beyond the edit URL for an entry, it could acceept either just the edit URL or an EntryAtom as params.

-Ryan


Ryan Boyd - 09/Jun/07 04:19 PM
Zend_Gdata has always supported updates to entries. Updating the entry object and performing $entry->save() updates the entry on the server by performing a HTTP PUT operation. $entry->delete deletes the entry from the server by performing a HTTP DELETE operation.

As of ZF 1.0PR1, Zend_Gdata_App (which each service inherits from) also supports performing the updates/deletes by passing an entry and/or URL.