com.inteligr8.solr.api.CoreAdminApi Maven / Gradle / Ivy
The newest version!
package com.inteligr8.solr.api;
import com.inteligr8.solr.model.EmptyResponse;
import com.inteligr8.solr.model.core.CreateRequest;
import com.inteligr8.solr.model.core.ReloadRequest;
import com.inteligr8.solr.model.core.RenameRequest;
import com.inteligr8.solr.model.core.RequestStatusRequest;
import com.inteligr8.solr.model.core.RequestStatusResponse;
import com.inteligr8.solr.model.core.StatusRequest;
import com.inteligr8.solr.model.core.StatusResponse;
import com.inteligr8.solr.model.core.SwapRequest;
import com.inteligr8.solr.model.core.UnloadRequest;
import jakarta.ws.rs.BeanParam;
import jakarta.ws.rs.GET;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
@Path("admin/cores")
public interface CoreAdminApi {
@GET
@Produces(MediaType.APPLICATION_JSON)
StatusResponse getStatus(@BeanParam StatusRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
EmptyResponse create(@BeanParam CreateRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
EmptyResponse reload(@BeanParam ReloadRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
EmptyResponse rename(@BeanParam RenameRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
EmptyResponse swap(@BeanParam SwapRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
EmptyResponse unload(@BeanParam UnloadRequest request);
@GET
@Produces(MediaType.APPLICATION_JSON)
RequestStatusResponse getRequestStatus(@BeanParam RequestStatusRequest request);
}