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.Account;

//@Path("/accounts/u/{username}")
public interface IAccountResource
{

   @GET
   @Produces(
   {MediaTypes.APPLICATION_ZANATA_ACCOUNT_XML, MediaTypes.APPLICATION_ZANATA_ACCOUNT_JSON})
   public ClientResponse<Account> get();

   @PUT
   @Consumes(
   {MediaTypes.APPLICATION_ZANATA_ACCOUNT_XML, MediaTypes.APPLICATION_ZANATA_ACCOUNT_JSON})
   public ClientResponse put(Account account);

}

@@ -252,16 +252,64 @@
 Account;
+%0Aimport org.zanata.rest.service.AccountResource;
 %0A%0A//@Pat
@@ -369,16 +369,40 @@
 Resource
+ extends AccountResource
 %0A%7B%0A%0A   @

Refactor Account Rest API.