package com.kryptnostic.api.v1.client;

import retrofit.http.Body;
import retrofit.http.POST;

import com.kryptnostic.api.v1.models.SearchResult;
import com.kryptnostic.api.v1.models.request.SearchRequest;

public interface SearchAPI {
    String SEARCH = "/search";

    /**
     * Search on stored documents.
     * 
     * @return SearchResult
     */
    @POST(SEARCH)
    SearchResult search(@Body SearchRequest request );
}

@@ -33,16 +33,40 @@
 lient;%0A%0A
+import java.util.List;%0A%0A
 import r
@@ -84,16 +84,16 @@
 p.Body;%0A
-
 import r
@@ -336,16 +336,53 @@
      * %0A
+     * @param SearchRequest request.%0A
      * @
@@ -478,14 +478,224 @@
  request
- 
+);%0A%0A    /**%0A     * Search on stored documents.%0A     * %0A     * @param List%3CSearchRequest%3E requests.%0A     * @return SearchResult%0A     */%0A    @POST(SEARCH)%0A    SearchResult search(@Body List%3CSearchRequest%3E requests
 );%0A%7D%0A

update SearchAPI to also accept List of SearchRequest