package com.xebia.xoverflow.server.service.es;

import com.xebia.xoverflow.server.model.Post;
import com.xebia.xoverflow.server.service.PostRepositoryService;
import retrofit.RestAdapter;

import javax.inject.Inject;

/**
 * Created by arnaud on 03/09/2014.
 */
public class ESPostRepositoryService implements PostRepositoryService {


    public static final String INDEX_PATH = "/posts/post/";

    @Inject
    protected RestAdapter restAdapter;


    @Override
    public Post create(Post post) {
        return null;
    }
}

@@ -209,16 +209,39 @@
 .Inject;
+%0Aimport java.util.List;
 %0A%0A/**%0A *
@@ -542,11 +542,88 @@
 l;%0A    %7D
+%0A%0A    @Override public List%3CPost%3E listLast10Posts() %7B%0A        Implement%0A    %7D
 %0A%7D%0A

implement default list posts