package info.izumin.android.sunazuri.infrastructure.api;

import info.izumin.android.sunazuri.infrastructure.entity.TeamEntity;
import retrofit2.http.GET;
import retrofit2.http.Path;
import rx.Observable;

import java.util.List;

/**
 * Created by izumin on 5/13/2016 AD.
 */
public interface TeamsApi {
    @GET("/v1/teams")
    Observable<List<TeamEntity>> fetch();

    @GET("/v1/teams/{teamName}")
    Observable<TeamEntity> fetch(
            @Path("teamName") String teamName
    );

    @GET("v1/teams/{teamName}/stats")
    Observable<TeamEntity> stats(
            @Path("teamName") String teamName
    );
}

@@ -188,18 +188,43 @@
 rt r
-x.Observab
+etrofit2.http.Query;%0Aimport rx.Sing
 le;%0A
@@ -348,24 +348,20 @@
 s%22)%0A    
-Observab
+Sing
 le%3CList%3C
@@ -379,16 +379,75 @@
 %3E fetch(
+%0A            @Query(%22access_token%22) String accessToken%0A    
 );%0A%0A    
@@ -463,25 +463,26 @@
 /teams/%7Bteam
-N
+_n
 ame%7D%22)%0A    O
@@ -476,32 +476,28 @@
 name%7D%22)%0A    
-Observab
+Sing
 le%3CTeamEntit
@@ -521,33 +521,34 @@
      @Path(%22team
-N
+_n
 ame%22) String tea
@@ -544,32 +544,87 @@
  String teamName
+,%0A            @Query(%22access_token%22) String accessToken
 %0A    );%0A%0A    @GE
@@ -626,16 +626,17 @@
   @GET(%22
+/
 v1/teams
@@ -641,17 +641,18 @@
 ms/%7Bteam
-N
+_n
 ame%7D/sta
@@ -664,16 +664,12 @@
     
-Observab
+Sing
 le%3CT
@@ -709,17 +709,18 @@
 th(%22team
-N
+_n
 ame%22) St
@@ -732,16 +732,71 @@
 teamName
+,%0A            @Query(%22access_token%22) String accessToken
 %0A    );%0A

Fix TeamsApi