package ecologylab.semantic.service.mmdrepository;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;

import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import ecologylab.semantics.namesandnums.SemanticsAssetVersions;

/**
 * mmdrepository version root resource
 * 
 * @author ajit
 * 
 */

@Path("/mmdrepository.version")
@Component
@Scope("singleton")
public class MMDRepositoryVersion {

	@GET
	@Produces("text/plain")
	public float getMmdRepositoryVersion()
	{
		return SemanticsAssetVersions.METAMETADATA_ASSET_VERSION;
	}
}

@@ -122,16 +122,91 @@
 roduces;
+%0Aimport javax.ws.rs.core.Response;%0Aimport javax.ws.rs.core.Response.Status;
 %0A%0Aimport
@@ -583,13 +583,16 @@
 lic 
-float
+Response
  get
@@ -626,16 +626,66 @@
 %09return 
+Response.status(Status.OK).%0A%09%09%09%09entity((new Float(
 Semantic
@@ -725,15 +725,37 @@
 _VERSION
+).toString())).build()
 ;%0A%09%7D%0A%7D%0A

prepare response for version no.