com.contentstack.cms.stack.WebhookService 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
The newest version!
package com.contentstack.cms.stack;
import okhttp3.RequestBody;
import okhttp3.ResponseBody;
import org.json.simple.JSONObject;
import retrofit2.Call;
import retrofit2.http.*;
import java.util.HashMap;
import java.util.Map;
public interface WebhookService {
@GET("webhooks")
Call fetch(@HeaderMap Map headers,
@QueryMap HashMap params);
@GET("webhooks/{webhook_uid}")
Call single(@HeaderMap Map headers, @Path("webhook_uid") String executionUid);
@POST("webhooks")
Call create(@HeaderMap Map headers, @Body JSONObject requestBody);
@PUT("webhooks/{webhook_uid}")
Call update(@HeaderMap Map headers, @Path("webhook_uid") String webhookUid,
@Body JSONObject requestBody);
@DELETE("webhooks/{webhook_uid}")
Call delete(@HeaderMap Map headers, @Path("webhook_uid") String webhookUid);
@GET("webhooks/{webhook_uid}/export")
Call export(@HeaderMap Map headers, @Path("webhook_uid") String webhookUid);
@Multipart()
@POST("webhooks/import")
Call imports(@HeaderMap Map header, @Body RequestBody file);
@POST("webhooks/import")
Call importExisting(@HeaderMap Map headers);
@GET("webhooks/{webhook_uid}/executions")
Call getExecutions(
@HeaderMap Map headers,
@Path("webhook_uid") String executionUid,
@QueryMap Map params);
@POST("webhooks/{webhook_uid}/retry")
Call retry(@HeaderMap Map headers, @Path("webhook_uid") String executionUid);
@GET("webhooks/{execution_uid}/logs")
Call getExecutionLog(@HeaderMap Map headers,
@Path("execution_uid") String executionUid);
}