Changeset 2203


Ignore:
Timestamp:
Mar 30, 2012, 7:32:49 PM (5 years ago)
Author:
work@…
Message:
  • updated api specification
  • added in-code documentation
  • added try/catch block to getMeasurementDataForAssay API call to check for valid module REST implementation
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/grails-app/services/api/ApiService.groovy

    r2201 r2203  
    104104    }
    105105
     106    /**
     107     * get the measurement tokens from the remote module
     108     *
     109     * @param assay
     110     * @param user
     111     * @return
     112     */
    106113    def getMeasurements(Assay assay, SecUser user) {
    107114        def serviceURL = "${assay.module.url}/rest/getMeasurements"
     
    116123                user
    117124        );
    118         println json.class
    119125
    120126        return json
    121127    }
    122128
     129    /**
     130     * get measurement data from the remote module in verbose format
     131     *
     132     * @param assay
     133     * @param user
     134     * @return
     135     */
    123136    def getMeasurementData(Assay assay, SecUser user) {
    124137        def serviceURL = "${assay.module.url}/rest/getMeasurementData"
     
    137150    }
    138151
     152    /**
     153     * get the measurement meta data from the remote module
     154     *
     155     * @param assay
     156     * @param user
     157     * @return
     158     */
    139159    def getMeasurementMetaData(Assay assay, SecUser user) {
    140160        def serviceURL = "${assay.module.url}/rest/getMeasurementMetaData"
Note: See TracChangeset for help on using the changeset viewer.