public interface DataWebService
Modifier and Type | Method and Description |
---|---|
rx.Observable<java.lang.Integer> |
count(java.lang.String authToken,
java.lang.String objectType) |
retrofit.client.Response |
get(java.lang.String authToken,
java.lang.String objectType,
java.util.Collection<java.lang.String> keys) |
retrofit.client.Response |
query(java.lang.String authToken,
Query query) |
<B extends BackendObject> |
save(java.lang.String authToken,
java.util.Collection<B> objects) |
@POST(value="/data/get/{objectType}") retrofit.client.Response get(@Header(value="Authorization") java.lang.String authToken, @EncodedPath(value="objectType") java.lang.String objectType, @Body java.util.Collection<java.lang.String> keys)
@POST(value="/data/query") retrofit.client.Response query(@Header(value="Authorization") java.lang.String authToken, @Body Query query)
@POST(value="/data/save") <B extends BackendObject> rx.Observable<java.lang.Void> save(@Header(value="Authorization") java.lang.String authToken, @Body java.util.Collection<B> objects)
@GET(value="/data/count/{objectType}") rx.Observable<java.lang.Integer> count(@Header(value="Authorization") java.lang.String authToken, @EncodedPath(value="objectType") java.lang.String objectType)