Hi everyone,

Following up on some search-template related questions I've been
bugging the list about, the following end-points are now deprecated as
of KERN-2905:

/var/search/pool/me/manager-all.json (now DEPRECATED in favour of role.json)
/var/search/pool/me/manager.json (now DEPRECATED in favour of role.json)
/var/search/pool/me/viewer-all.json (now DEPRECATED in favour of role.json)
/var/search/pool/me/viewer.json (now DEPRECATED in favour of role.json)

There is a new search endpoint /var/search/pool/me/role.json which
encompasses the functionality of all of the above
/var/search/pool/me/* queries VIA new query parameter "role". For
example:

* A GET request to /var/search/pool/me/viewer-all.json is now
equivalent to /var/search/pool/me/role.json?role=viewer
* A GET request to /var/search/pool/me/manager-all.json is now
equivalent to /var/search/pool/me/role.json?role=manager
* A GET request to /var/search/pool/me/viewer.json?q=awesome is now
equivalent to /var/search/pool/me/role.json?role=viewer&q=awesome
* A GET request to /var/search/pool/me/manager.json?q=awesome is now
equivalent to /var/search/pool/me/role.json?role=manager&q=awesome
* As you probably guessed, you could now do a search to:
/var/search/pool/me/role.json?role=editor to run the same query, but
for the "editor" role (only viewer, manager, editor are currently
supported)

All deprecated templates will still exist for 1.4.0, though it's
recommended that the UI code that uses them start switching to
role.json so they may be eventually deleted.

-- 
Cheers,
Branden
_______________________________________________
oae-dev mailing list
[email protected]
http://collab.sakaiproject.org/mailman/listinfo/oae-dev

Reply via email to