Changeset 963

Show
Ignore:
Timestamp:
21-10-10 14:49:59 (4 years ago)
Author:
business@…
Message:

added parentStudyToken to getAssay REST call

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/controllers/RestController.groovy

    r960 r963  
    213213        * Returns the JSON object: {"name":"Lipid profiling","module":{"class":"dbnp.studycapturing.AssayModule","id":1, 
    214214        * "name":"SAM module for clinical data","platform":"clinical measurements","url":"http://sam.nmcdsp.org"}, 
    215         * "assayToken":"PPS3_SAM","Description":null} 
     215        * "assayToken":"PPS3_SAM","parentStudyToken":"PPS","Description":null} 
    216216        */ 
    217217        def getAssay = { 
     
    225225                                        items[name] = value 
    226226                                } 
     227                                items["parentStudyToken"] = assay.parent.getToken() 
    227228                        } 
    228229        }