package com.ilya.sergeev.potlach.client;

import retrofit.http.GET;
import retrofit.http.POST;
import retrofit.http.Path;
import retrofit.http.Query;


public interface VoteSvcApi
{
	public static final String VOTE_PATH = "/votes";
	
	public static final String SINGLE_VOTE_PATH = VOTE_PATH + "/{id}"; 
	
	public static final String ID_PARAM = "id";
	public static final String GIFT_ID_PARAM = "id";
	public static final String VOTE_PARAM = "vote";
	
	@GET(VOTE_PATH)
	public Vote getVoteOfGift(@Query(GIFT_ID_PARAM) long giftId);
	
	@GET(SINGLE_VOTE_PATH)
	public Vote getVote(@Path(ID_PARAM) long ig);
	
	@POST(SINGLE_VOTE_PATH)
	public Vote sendVote(@Path(ID_PARAM)long giftId, @Query(VOTE_PARAM) int voteValue);
}

@@ -380,34 +380,36 @@
 IFT_ID_PARAM = %22
-id
+gift
 %22;%0A%09public stati
@@ -608,23 +608,16 @@
 %0A%09@POST(
-SINGLE_
 VOTE_PAT
@@ -638,29 +638,35 @@
 e sendVote(@
-Path(
+Query(GIFT_
 ID_PARAM)lon

update server protocol