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

com.contentstack.cms.stack.BulkOperationService Maven / Gradle / Ivy

Go to download

Contentstack Java Management SDK for Content Management API, Contentstack is a headless CMS with an API-first approach

The newest version!
package com.contentstack.cms.stack;

import okhttp3.ResponseBody;
import org.json.simple.JSONObject;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.HeaderMap;
import retrofit2.http.POST;
import retrofit2.http.QueryMap;

import java.util.HashMap;
import java.util.Map;

public interface BulkOperationService {

    @POST("bulk/publish")
    Call publish(
            @HeaderMap Map headers,
            @QueryMap HashMap params,
            @Body JSONObject body);

    @POST("bulk/unpublish")
    Call unpublish(
            @HeaderMap Map headers,
            @QueryMap HashMap params,
            @Body JSONObject body);

    @POST("bulk/delete")
    Call delete(
            @HeaderMap Map headers,
            @QueryMap HashMap params,
            @Body JSONObject body);

    @POST("bulk/workflow")
    Call updateWorkflowDetails(
            @HeaderMap Map headers,
            @QueryMap HashMap params,
            @Body JSONObject body);

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy