Changeset 2198


Ignore:
Timestamp:
Mar 30, 2012, 12:43:56 PM (5 years ago)
Author:
work@…
Message:
  • added getAssayData api call
  • disable validation on development and ci
Location:
trunk/grails-app
Files:
2 edited

Legend:

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

    r2196 r2198  
    223223            response.sendError(401, 'Unauthorized')
    224224        } else {
    225 //            def serviceURL = "${assay.module.url}/rest/getMeasurements"
    226 //            def serviceArguments = "assayToken=${assayToken}"
    227 //            def measurements = moduleCommunicationService.callModuleMethod(
    228 //                    assay.module.url,
    229 //                    serviceURL,
    230 //                    serviceArguments,
    231 //                    "POST",
    232 //                    user
    233 //            );
    234 
    235225            // define result
    236226            def result = [
    237                     'measurements'  : apiService.getMeasurements(assay, user),
    238 //                'measurements'  : ApiService.getMeasurements(assay, user),
     227                'measurements'  : apiService.getMeasurements(assay, user),
    239228                'data'          : apiService.getMeasurementData(assay, user),
    240229                'metaData'      : apiService.getMeasurementMetaData(assay, user)
  • trunk/grails-app/services/api/ApiService.groovy

    r2195 r2198  
    3232     */
    3333    def validateRequest(String deviceID, String validation) {
    34         return true
     34        // disable validation check on development and ci
     35        if (['development', 'ci'].contains(grails.util.GrailsUtil.environment)) {
     36            return true
     37        }
    3538
    3639        // get token for this device ID
Note: See TracChangeset for help on using the changeset viewer.