All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.contentful.java.cda.CDAService Maven / Gradle / Ivy

There is a newer version: 9.1.0
Show newest version
package com.contentful.java.cda;

import io.reactivex.rxjava3.core.Flowable;
import retrofit2.Response;
import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.Query;
import retrofit2.http.QueryMap;

import java.util.Map;

interface CDAService {
  @GET("spaces/{space}")
  Flowable> space(
      @Path("space") String space);

  @GET("spaces/{space}/environments/{environment}/{type}")
  Flowable> array(
      @Path("space") String space,
      @Path("environment") String environment,
      @Path("type") String type,
      @QueryMap Map query);

  @GET("spaces/{space}/environments/{environment}/sync")
  Flowable> sync(
      @Path("space") String space,
      @Path("environment") String environment,
      @Query("initial") Boolean initial,
      @Query("sync_token") String syncToken,
      @Query("type") String type,
      @Query("content_type") String contentType,
      @Query("limit") Integer limit);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy