
com.contentful.java.cda.CDAService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of java-sdk Show documentation
Show all versions of java-sdk Show documentation
Java SDK for Contentful's Content Delivery API.
package com.contentful.java.cda;
import java.util.Map;
import retrofit2.Call;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;
import rx.Observable;
interface CDAService {
@GET("spaces/{space}")
Observable> space(
@Path("space") String space);
@GET("spaces/{space}/{type}/{identifier}")
Observable> one(
@Path("space") String space,
@Path("type") String type,
@Path("identifier") String identifier);
@GET("spaces/{space}/{type}/{identifier}")
Call oneAsCall(
@Path("space") String space,
@Path("type") String type,
@Path("identifier") String identifier);
@GET("spaces/{space}/{type}")
Observable> array(
@Path("space") String space,
@Path("type") String type,
@QueryMap Map query);
@GET("spaces/{space}/sync")
Observable> sync(
@Path("space") String space,
@Query("initial") Boolean initial,
@Query("sync_token") String sync_token);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy