added renew param for import app

This commit is contained in:
Brian Long 2022-04-07 23:48:34 -04:00
parent 14c91eb237
commit 0365425e4f

View File

@ -6,6 +6,7 @@ import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;
import org.apache.cxf.jaxrs.ext.multipart.MultipartBody;
@ -21,7 +22,8 @@ public interface AppDefinitionsCxfApi {
@Consumes({ MediaType.MULTIPART_FORM_DATA })
@Produces({ MediaType.APPLICATION_JSON })
AppDefinitionRepresentation import_(
MultipartBody body);
MultipartBody body,
@QueryParam("renewIdmEntries") Boolean renewIdmEntries);
@POST
@Path("{modelId}/import")
@ -29,7 +31,8 @@ public interface AppDefinitionsCxfApi {
@Produces({ MediaType.APPLICATION_JSON })
AppDefinitionRepresentation import_(
@PathParam("modelId") Long appId,
MultipartBody body);
MultipartBody body,
@QueryParam("renewIdmEntries") Boolean renewIdmEntries);
@POST
@Path("publish-app")