New Registry Version 4.1.6

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/

 

 

Advertisements
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: