Managing MyEuropeana Saved Items
As a developer I would like to manage MyEuropeana Saved Items via the Europeana API. I would like the Europeana API to support the following operations:
1. Retrieving the list of Saved Items stored on MyEuropeana account.
2. Adding an item to the list of Saved Items stored on MyEuropeana account.
3. Deleting an item from the list of Saved Items stored on MyEuropeana account.
1. Retrieving the list of Saved Items stored on MyEuropeana account.
2. Adding an item to the list of Saved Items stored on MyEuropeana account.
3. Deleting an item from the list of Saved Items stored on MyEuropeana account.
Leave a comment
on 2013-07-23 08:31 *
By
See #406 for introduction to testing this:
The api-demo application supports listing and deleting saved items (in the demo called favorites)
The JSON url's are:
list: http://preview.europeana.eu/api//v2/user/favorite.json
list: http://preview.europeana.eu/api//v2/user/favorite.json?action=LIST
delete: http://preview.europeana.eu/api//v2/user/favorite.json?action=DELETE&objectid=? (where ? = the id of the favorite given by the list function)
create: http://preview.europeana.eu/api//v2/user/favorite.json?action=CREATE&objectid=? (where ? = the europeana object id)
The api-demo application supports listing and deleting saved items (in the demo called favorites)
The JSON url's are:
list: http://preview.europeana.eu/api//v2/user/favorite.json
list: http://preview.europeana.eu/api//v2/user/favorite.json?action=LIST
delete: http://preview.europeana.eu/api//v2/user/favorite.json?action=DELETE&objectid=? (where ? = the id of the favorite given by the list function)
create: http://preview.europeana.eu/api//v2/user/favorite.json?action=CREATE&objectid=? (where ? = the europeana object id)
on 2013-07-23 10:42 *
By renekok
Assigned to changed from renekok to David Haskiya
Status changed from Testable to Acceptance
The list of favorites works good. when used actionword LIST mandatory uppercase.
Delete works good. Actionword DELETE uppercase mandatory.
Create works good to. Actionword CREATE uppercase mandatory.
Only thing is that old record-ID's for which a redirect exists result in an error (Which is logical, since a normal user would never be in the situation that he reaches an Object through its redirect when using API based software/websites.
@DavidHaskiya: In the favoritelist returned by the API, the europeanaObject has the following format:
http%3A%2F%2Fresolver.kb.nl%2Fresolve%3Furn%3Durn%3Agvn%3ASFA03%3ASFA022827949%26role%3Dthumbnail
I don't know if this is desired.
For Willem-Jan it is no problem to change this this format:
http://resolver.kb.nl/resolve?urn=urn:gvn:SFA03:SFA022827949&role=thumbnail
Delete works good. Actionword DELETE uppercase mandatory.
Create works good to. Actionword CREATE uppercase mandatory.
Only thing is that old record-ID's for which a redirect exists result in an error (Which is logical, since a normal user would never be in the situation that he reaches an Object through its redirect when using API based software/websites.
@DavidHaskiya: In the favoritelist returned by the API, the europeanaObject has the following format:
http%3A%2F%2Fresolver.kb.nl%2Fresolve%3Furn%3Durn%3Agvn%3ASFA03%3ASFA022827949%26role%3Dthumbnail
I don't know if this is desired.
For Willem-Jan it is no problem to change this this format:
http://resolver.kb.nl/resolve?urn=urn:gvn:SFA03:SFA022827949&role=thumbnail
on 2013-07-23 12:17 *
By David Haskiya
Why is Europeana object included in the favourite list at all? The favourite list should use the europeana cached thumbnail link, not europeana:object.
on 2013-07-25 09:44 *
By renekok
Assigned to changed from David Haskiya to login
Status changed from Acceptance to To Do
@wjboogerd@eledge.net
see David's comment
see David's comment
on 2013-07-30 10:55 *
By
OK, url's has changed to match the communication in the email and discussed with Rene/Breandon
the DELETE action now works with the favid OR the europeanaid
(in favour of the favid as that is the fastest action, so giving both itemid and europeanaid will handle on the itemid)
All other actions are gonna match the same logic, so the param "europeanaid" will always point at the Europeana identifier.
The JSON url's are:
list: http://preview.europeana.eu/api//v2/user/saveditem.json
list: http://preview.europeana.eu/api//v2/user/saveditem.json?action=LIST
delete: http://preview.europeana.eu/api//v2/user/saveditem.json?action=DELETE&itemid=? (where ? = the id of the saved item given by the list function)
delete: http://preview.europeana.eu/api//v2/user/saveditem.json?action=DELETE&europeanaid=? (where ? = the europeana object id)
create: http://preview.europeana.eu/api//v2/user/saveditem.json?action=CREATE&europeanaid=? (where ? = the europeana object id)
the DELETE action now works with the favid OR the europeanaid
(in favour of the favid as that is the fastest action, so giving both itemid and europeanaid will handle on the itemid)
All other actions are gonna match the same logic, so the param "europeanaid" will always point at the Europeana identifier.
The JSON url's are:
list: http://preview.europeana.eu/api//v2/user/saveditem.json
list: http://preview.europeana.eu/api//v2/user/saveditem.json?action=LIST
delete: http://preview.europeana.eu/api//v2/user/saveditem.json?action=DELETE&itemid=? (where ? = the id of the saved item given by the list function)
delete: http://preview.europeana.eu/api//v2/user/saveditem.json?action=DELETE&europeanaid=? (where ? = the europeana object id)
create: http://preview.europeana.eu/api//v2/user/saveditem.json?action=CREATE&europeanaid=? (where ? = the europeana object id)
The Europeana object is now returning the image thumbnail as David described
on 2013-07-31 05:19 *
By
list: http://preview.europeana.eu/api//v2/user/saveditem.json?europeanaid=? (check if there is a saved item for a specific object, returns same as list but only 0 or 1 item)
Please note for all list functions the itemscount should now contain the right value as well...
(These last 2 changes are committed recently so may be in a later test release)
Please note for all list functions the itemscount should now contain the right value as well...
(These last 2 changes are committed recently so may be in a later test release)
on 2013-08-05 10:08 *
By renekok
Assigned to changed from renekok to login
Status changed from Testable to In Progress
Listing works fine
When an Item (EuropeanaID) occurs more then 1 times in the list, then the delete by EuropeanaID does not work and results in a HTTP Status 500 error
Deleting by Itemid works OK.
Creating works fine
When an Item (EuropeanaID) occurs more then 1 times in the list, then the delete by EuropeanaID does not work and results in a HTTP Status 500 error
Deleting by Itemid works OK.
Creating works fine
on 2013-08-09 10:49 *
By
When an Item (EuropeanaID) occurs more then 1 times in the list, then the delete by EuropeanaID does not work and results in a HTTP Status 500 error
An saved item should only exists once....
The creation process should fail when a user already try to save an item twice.
An saved item should only exists once....
The creation process should fail when a user already try to save an item twice.
on 2013-08-13 05:14 *
By renekok
Assigned to changed from renekok to Breandán Knowlton
Status changed from Testable to Acceptance
All the functions work now.
You get an success=false when you try to add a duplicate Item/Object.
I still don't like that the delete always give back a code true whether something has been deleted or not.
(You can give a non-existing ID and you still get succes=true
You get an success=false when you try to add a duplicate Item/Object.
I still don't like that the delete always give back a code true whether something has been deleted or not.
(You can give a non-existing ID and you still get succes=true
on 2013-08-23 05:10 *
By David Haskiya
When looking at your list of Saved items and you click View the links is not correct and you get an error. The reason is that /portal/record/ is not included in the URL.
Other than that I could find no issues.
Other than that I could find no issues.
on 2013-08-26 15:44 *
By
Assigned to changed from login to renekok
Status changed from To Do to Testable
Although this is not a issue in the MyEuropeana API but in the demo application, is it fixed now.
The JSON output from API contains now guid and link, these fields contains the same kind of links as in the search results in API v2.
The JSON output from API contains now guid and link, these fields contains the same kind of links as in the search results in API v2.
on 2013-08-26 15:47 *
By
In europeana:05c63c55c2f5e3fbe739b5b9bb24ccc93a460672 Re #405 - Added "guid" and "link" to tags and saveditems JSON output.
Re #408 - Fixed the view link in API-DEMO pages
on 2013-09-06 13:09 *
By Breandán Knowlton
Assigned to changed from Breandán Knowlton to David Haskiya
Sorry, was unable to log in to api demo, so unable to test right now.
Tested, OK.
on 2014-11-11 03:50 *
By bramlohman
Tag changed from deployment_29_10_2013 to deployment_29_10_2013
Type changed from Story to -none-