package li.doerf.hacked.remote.haveibeenpwned;

import java.util.List;

import retrofit2.Call;
import retrofit2.http.GET;
import retrofit2.http.Headers;
import retrofit2.http.Path;

/**
 * Created by moo on 05/09/16.
 */
public interface HaveIBeenPwned {

    // TODO v3 update to v3
    @Headers({
            "Accept: application/vnd.haveibeenpwned.v2+json",
            "User-Agent: Hacked_Android_App"
    })
    @GET("/api/v2/breachedaccount/{account}?includeUnverified=true")
    Call<List<BreachedAccount>> listBreachedAccounts(@Path("account") String account);

    @Headers({
            "Accept: application/vnd.haveibeenpwned.v2+json",
            "User-Agent: Hacked_Android_App"
    })
    @GET("/api/v3/breach/{name}")
    Call<BreachedAccount> getBreach(@Path("name") String name);

    // TODO v3 update to v3
    @Headers({
            "Accept: application/vnd.haveibeenpwned.v2+json",
            "User-Agent: Hacked_Android_App"
    })
    @GET("/api/v2/breaches")
    Call<List<BreachedAccount>> getBreachedSites();

}

@@ -253,322 +253,8 @@
  %7B%0A%0A
-    // TODO v3 update to v3%0A    @Headers(%7B%0A            %22Accept: application/vnd.haveibeenpwned.v2+json%22,%0A            %22User-Agent: Hacked_Android_App%22%0A    %7D)%0A    @GET(%22/api/v2/breachedaccount/%7Baccount%7D?includeUnverified=true%22)%0A    Call%3CList%3CBreachedAccount%3E%3E listBreachedAccounts(@Path(%22account%22) String account);%0A%0A
     
@@ -256,32 +256,32 @@
 %0A    @Headers(%7B%0A
+
             %22Acc
@@ -481,36 +481,8 @@
 );%0A%0A
-    // TODO v3 update to v3%0A
     
@@ -622,17 +622,17 @@
 (%22/api/v
-2
+3
 /breache

upgrade api version to v3