com.contentful.java.cda.CDAService Maven / Gradle / Ivy
package com.contentful.java.cda;
import java.util.Map;
import io.reactivex.Flowable;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
interface CDAService {
@GET("spaces/{space}")
Flowable> space(
@Path("space") String space);
@GET("spaces/{space}/{type}/{identifier}")
Flowable> one(
@Path("space") String space,
@Path("type") String type,
@Path("identifier") String identifier);
@GET("spaces/{space}/{type}")
Flowable> array(
@Path("space") String space,
@Path("type") String type,
@QueryMap Map query);
@GET("spaces/{space}/sync")
Flowable> sync(
@Path("space") String space,
@Query("initial") Boolean initial,
@Query("sync_token") String syncToken);
}