io.github.factoryfx.microservice.common.MicroserviceResourceApi Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of microserviceRestCommon Show documentation
Show all versions of microserviceRestCommon Show documentation
factoryfx dependency injection framework
package io.github.factoryfx.microservice.common;
import java.util.Collection;
import io.github.factoryfx.factory.FactoryBase;
import io.github.factoryfx.factory.log.FactoryUpdateLog;
import io.github.factoryfx.factory.merge.MergeDiffInfo;
import io.github.factoryfx.factory.storage.DataUpdate;
import io.github.factoryfx.factory.storage.StoredDataMetadata;
import jakarta.ws.rs.Consumes;
import jakarta.ws.rs.POST;
import jakarta.ws.rs.Path;
import jakarta.ws.rs.Produces;
import jakarta.ws.rs.core.MediaType;
/**
* REST resource API for managing a microservice. start,stop,update,..
*
*/
@Path("microservice")
public interface MicroserviceResourceApi> {
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("updateCurrentFactory")
FactoryUpdateLog updateCurrentFactory(UserAwareRequest> update);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("revert")
FactoryUpdateLog revert(UserAwareRequest historyFactory) ;
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("simulateUpdateCurrentFactory")
MergeDiffInfo simulateUpdateCurrentFactory(UserAwareRequest> request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("diff")
MergeDiffInfo getDiff(UserAwareRequest request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("prepareNewFactory")
DataUpdate prepareNewFactory(VoidUserAwareRequest request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("historyFactory")
ResponseWorkaround getHistoryFactory(UserAwareRequest request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("historyFactoryList")
Collection getHistoryFactoryList(VoidUserAwareRequest request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("checkUser")
CheckUserResponse checkUser(VoidUserAwareRequest request);
@POST
@Consumes(MediaType.APPLICATION_JSON)
@Produces(MediaType.APPLICATION_JSON)
@Path("userLocale")
UserLocaleResponse getUserLocale(VoidUserAwareRequest request);
}