https://bugs.gpodder.org/show_bug.cgi?id=1326
Stefan Kögl <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |[email protected] --- Comment #1 from Stefan Kögl <[email protected]> 2011-04-16 16:29:23 BST --- I'd suggest the following API Retrieve all Bookmarks GET /api/2/bookmarks/<username>.json [ {"label": "Python Podcasts", "url": "http://example.com/python-podcasts.xml", "type": "opml" }, { ... } ] Adding and removing Bookmarks POST /api/2/bookmarks/<username>.json { "add": [ {"label": "stefan's Shared Podcasts", "url": "http://gpodder.net/user/stefan/subscriptions.opml" "type": "opml" }, ], "remove": [ {"label": "Python Podcasts", "url": "http://example.com/python-podcasts.xml", "type": "opml" } ] } This would allow to add/remove multiple bookmarks at once - might not be needed now but could reduce the number of requests for some future use cases. The response could either be 204 No Content, or 200 with the updated list of bookmarks. Any preferences? Additional suggestion: Replacing Bookmark List PUT /api/2/bookmarks/<username>.json [ {"label": "Python Podcasts", "url": "http://example.com/python-podcasts.xml", "type": "opml" }, { ... } ] This would replace the current list with the attached one. I'd suggest 204 No Content as the response as there should be no need to send the same list back. -- Configure bugmail: https://bugs.gpodder.org/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are watching all bug changes. _______________________________________________ gPodder-Bugs mailing list [email protected] https://lists.berlios.de/mailman/listinfo/gpodder-bugs
