Dashboard > Contrib: My Sakai > Widgets Home > JSON - File-Finder
  Contrib: My Sakai Log In | Signup View a printable version of the current page.  
  JSON - File-Finder
Added by Nick Desmet, last edited by Nick Desmet on Feb 27, 2008  (view change)
Labels: 
(None)

Introduction.

This JSON returns all files that contained the user defined search string.(note: that the search tool also search in the context of certain files).

JSON link.

Use this link to retrieve the JSON service.

/sdata/mff?search=searchstring
JSON service closer look.
MyFileFinder JSON
{"searchString":"m","total":1,"items":[{"title":"FCKeditor_2.5.1.tar.gz","score":"0.3654883","url":"/access/content/group/e7c74d55-ccec-49f1-b4d3-0220bb4e0525/Exegesis%20Tool%20Resources/FCKeditor_2.5.1.tar.gz","reference":"/content/group/e7c74d55-ccec-49f1-b4d3-0220bb4e0525/Exegesis Tool Resources/FCKeditor_2.5.1.tar.gz"}],"status":"succes"}
JSON fields.
field description
searchString contains the user defined searchString
total total results found
items contains the search result items
item title contains the title of the file
item score contains the search score
item url URL to the file
item reference contains the reference
status was the search a success

If the search didn't return any results you will get this JSON back

MyFileFinder JSON
{"total":0,"items":[]}

Site running on a free Atlassian Confluence Open Source Project License granted to Sakai Foundation. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.5 Build:#811 Jul 25, 2007) - Bug/feature request - Contact Administrators