package org.zanata.rest.client;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.PUT;
import javax.ws.rs.Produces;

import org.jboss.resteasy.client.ClientResponse;
import org.zanata.rest.MediaTypes;
import org.zanata.rest.dto.Project;
import org.zanata.rest.service.ProjectResource;

//@Path("/projects/p/{projectSlug}")
public interface IProjectResource extends ProjectResource
{

   @GET
   @Produces( { MediaTypes.APPLICATION_ZANATA_PROJECT_XML, MediaTypes.APPLICATION_ZANATA_PROJECT_ITERATION_JSON })
   public ClientResponse<Project> get();

   @PUT
   @Consumes( { MediaTypes.APPLICATION_ZANATA_PROJECT_XML, MediaTypes.APPLICATION_ZANATA_PROJECT_ITERATION_JSON })
   public ClientResponse put(Project project);

}

@@ -79,16 +79,41 @@
 rs.GET;%0A
+import javax.ws.rs.HEAD;%0A
 import j
@@ -156,16 +156,51 @@
 roduces;
+%0Aimport javax.ws.rs.core.MediaType;
 %0A%0Aimport
@@ -460,16 +460,221 @@
 urce%0A%7B%0A%0A
+   @HEAD%0A   @Produces(%7B MediaTypes.APPLICATION_ZANATA_PROJECT_XML, MediaTypes.APPLICATION_ZANATA_PROJECT_JSON, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON %7D)%0A   public ClientResponse head();%0A   %0A
    @GET%0A

Add Rest API restrictions to Project Iterations.