Page tree

Versions Compared


  • This line was added.
  • This line was removed.
  • Formatting was changed.


Code Block
router.GET('topics/search/{srchFor}') {
     ftQuery('srchFor') //Available since Beta 4 
   mapJson 'id', json:'id', type:'STRING', isformula:true, formula:'@DocumentUniqueID'
   mapJson "date", json:'date_created',type:'DATETIME',isformula:true, formula:'@Created'
   mapJson "topic", json:'topic', type:'STRING'
   mapJson "author", json:'author', type:'STRING',isformula:true,formula:'@Name([CN]; @Author)'

For GET we are you can define ftQuery placeholder like shown above and use URL like* or you can be passing the search parameter in the URL like this*In this case do not include the placeholder in the router path definition, ie. router.GET('topics/search')

Note: ftQuery takes precedence, so if you add ?search= to the URL, it will be ignored.

Format of the returned JSON is identical as for POST variant.