Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 5 Next »

Use this strategy to select document from the database by UNID.

Allowed methods

  • GET
  • POST


  • keyVariableName(String keyVariableName): name of the variable name in route to read value from; mandatory


router.GET('topics/{id}') {
   mapJson 'id', json:'id', type:'STRING', isformula:true, formula:'@DocumentUniqueID'
   mapJson 'date_created', 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)'
   mapJson 'categories', json:'categories', type:'ARRAY_OF_STRING'


With route defined above, URL will return this JSON:

    "author": "Martin Jinoch",
    "categories": [
    "topic": "test"


  • No labels