package es.bsc.nuba.fco.resources;

import javax.ws.rs.Consumes;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.core.Response;
import es.bsc.nuba.fco.tcloud.VDCType;

@Path ("/{org}")
public class OrganizationResource
{
	@POST
	@Consumes ("application/vnd.telefonica.tcloud.vdc+xml")
	@Path ("/vdc/action/add")
	public Response addVDC (VDCType vdc)
	{	
		System.out.println(vdc.getDescription());
		System.out.println(vdc.getLink());
		System.out.println(vdc.getStorageCapacity());
		System.out.println(vdc.getComputeCapacity());
		
		return Response.ok(vdc, "application/vnd.telefonica.tcloud.vdc+xml").build();
	}	
}
