Ticket #57 (closed enhancement: worksforme)
enhance REST services
|Reported by:||business@…||Owned by:||j.saito@…|
Enhance the REST services as specified on the dbnp osxeu site (under modules). Update the methods according to their specification (including the change from 'externalID' to 'token'), and add the not yet implemented methods getStudy etc. These should give back all the information about domain and template fields.
Probably the most efficient way to do this is create a method in TemplateEntity? which iterates over all domain and template fields and renders their values as JSON.
Also, proper error messages should be returned when something is not found, e.g. no assay is found with the specified code. I think the best way to this is to return a 404 Not Found page with the error message in the body.