
com.contentstack.cms.stack.LocaleService Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cms Show documentation
Show all versions of cms Show documentation
Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an
API-first approach
package com.contentstack.cms.stack;
import okhttp3.ResponseBody;
import org.json.simple.JSONObject;
import retrofit2.Call;
import retrofit2.http.*;
import java.util.Map;
public interface LocaleService {
@GET("locales")
Call locales(
@HeaderMap Map headers,
@QueryMap Map params);
@POST("locales")
Call create(
@HeaderMap Map headers,
@Body JSONObject body);
@GET("locales/{code}")
Call singel(
@HeaderMap Map headers,
@Path("code") String code,
@QueryMap Map params);
@PUT("locales/{code}")
Call update(
@HeaderMap Map headers,
@Path("code") String code,
@QueryMap Map params,
@Body JSONObject body);
@DELETE("locales/{code}")
Call delete(
@HeaderMap Map headers, @Path("code") String code);
@POST("locales")
Call setFallback(
@HeaderMap Map headers,
@Body JSONObject body);
@PUT("locales/{locale_uid}")
Call updateFallback(
@HeaderMap Map headers,
@Path("locale_uid") String localeUid,
@Body JSONObject body);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy