Page tree

Versions Compared

Key

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

...

Code Block
languagegroovy
router.POST('topics/key/{keyValue}') {
   strategy(DOCUMENT_FROM_VIEW_BY_KEY) {
      viewName('(ByTopic)')
      keyVariableName('keyValue')
      formName('MainTopic')
   }
   mapJson 'id', json:'id', type:'STRING', isformula:true, formula:'@DocumentUniqueID', readonly:true
   mapJson 'date_created', json:'date_created', type:'DATETIME', isformula:true, formula:'@Created', readonly:true
   mapJson 'topic', json:'topic', type:'STRING'
   mapJson 'author"body", json:'content', type:'MIME'
   mapJson 'categories', json:'categories', type:'ARRAY_OF_STRING', writeonly:true
   mapJson "author", json:'author', type:'STRING', isformula:true, formula:'@Name([CN]; From)', readonly:true
}

 

Content by Label
showLabelsfalse
max50
spacesXRAPI
showSpacefalse
sorttitle
typepage
cqllabel = "strategy" and type = "page" and space = "XRAPI"
labelsstrategy

...