-
Notifications
You must be signed in to change notification settings - Fork 2
rogerbraun edited this page Nov 23, 2011
·
4 revisions
#API
There are json and xml variants of the standard search routes.
/search/index?search=foo => /search/index.xml?search=foo
JSON-requests take the additional parameter full
. If this is set to true
, html representations will be returned. If it is absent or any other value, only a count of results will be returned.
There are special routes to return only headwords or translation equivalents for a search:
/entries/tres?search=bla
/entries/headwords?search=bla
###Optional parameters
- callback: If this is present, JSON-P will be returned, wrapped in the method name you provided.
- max: If this is present, a maximum of max results will be returned. This is 10 by default.