package de.metalmatze.krautreporter.api;

import de.metalmatze.krautreporter.models.Article;
import de.metalmatze.krautreporter.models.Author;
import retrofit.Callback;
import retrofit.http.GET;
import retrofit.http.Path;
import retrofit.http.Query;
import rx.Observable;

public interface ApiInterface {

    @GET("/articles")
    void articles(Callback<JsonArray<Article>> callback);

    @GET("/articles")
    Observable<JsonArray<Article>> articles();

    @GET("/articles")
    void articlesOlderThan(@Query("olderthan") int id, Callback<JsonArray<Article>> callback);

    @GET("/articles/{id}")
    void article(@Path("id") int articleId, Callback<JsonObject<Article>> callback);

    @GET("/authors")
    void authors(Callback<JsonArray<Author>> callback);

    @GET("/authors/{id}")
    void author(@Path("id") int authorId, Callback<JsonObject<Author>> callback);

}

@@ -156,722 +156,207 @@
 fit.
-Callback;%0Aimport retrofit.http.GET;%0Aimport retrofit.http.Path;%0Aimport retrofit.http.Query;%0Aimport rx.Observable;%0A%0Apublic interface ApiInterface %7B%0A%0A    @GET(%22/articles%22)%0A    void articles(Callback%3CJsonArray%3CArticle%3E%3E callback);%0A%0A    @GET(%22/articles%22)%0A    Observable%3CJsonArray%3CArticle%3E%3E articles();%0A%0A    @GET(%22/articles%22)%0A    void articlesOlderThan(@Query(%22olderthan%22) int id, Callback%3CJsonArray%3CArticle%3E%3E callback);%0A%0A    @GET(%22/articles/%7Bid%7D%22)%0A    void article(@Path(%22id%22) int articleId, Callback%3CJsonObject%3CArticle%3E%3E callback);%0A%0A    @GET(%22/authors%22)%0A    void authors(Callback%3CJsonArray%3CAuthor%3E%3E callback);%0A%0A    @GET(%22/authors/%7Bid%7D%22)%0A    void author(@Path(%22id%22) int authorId, Callback%3CJsonObject%3CAuthor%3E%3E callback
+http.GET;%0Aimport rx.Observable;%0A%0Apublic interface ApiInterface %7B%0A    @GET(%22/articles%22)%0A    Observable%3CJsonArray%3CArticle%3E%3E articles();%0A%0A    @GET(%22/authors%22)%0A    Observable%3CJsonArray%3CAuthor%3E%3E authors(
 );%0A
-%0A
 %7D%0A

Simplify the ApiInterface with only Observables