[DAS] Registry supports JSON

Jonathan Warren jw12 at sanger.ac.uk
Tue Aug 23 15:41:15 UTC 2011


There has been a registry update highlights below:

* json responses for web service if accept header = application/json.  
The exact format of the json response is currently subject to change.
* multiple parameters for the same type are now accepted for e.g.  
capabilities=features;capabilities=types; returning sources with  
either features or types
* select active or inactive or both sources using the active=true,  
active=false or active=any, default is active only
* lists and links to rng files at http://www.dasregistry.org/validation1.6/ 
  http://www.dasregistry.org/validation/

Code:
The registry web service code is now self contained and is it's own  
project hosted here: http://code.google.com/p/das-registry-web-service/source/browse/ 
  it uses the Spring REST mvc framework, JAXB2 and the Jackson JSON  
library. Also maven.

The new registry rest service uses the JDAS project which is here: http://code.google.com/p/jdas/ 
  . This project has object models generated from the relaxng schema  
files and thus has an easy to use model that follows the structure of  
the documents. These objects also have JAXB2 annotations that enables  
the immediate use of more standard Java libraries like spring REST and  
the Jackson library.

To make a json request you can for example make a request to http://www.dasregistry.org/das/sources 
  after setting the "accept" header in the request to "application/ 
json". A simple REST client can be downloaded for free from here:
http://rest-client.googlecode.com/

Any problems please don't hesitate to contact me.

Many thanks


Jonathan Warren
Senior Developer and DAS coordinator
blog: http://biodasman.wordpress.com/
jw12 at sanger.ac.uk











-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 



More information about the DAS mailing list