public class ImportApiServiceImpl extends ImportApiService
| Constructor and Description |
|---|
ImportApiServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
importApiPost(InputStream fileInputStream,
org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail,
Boolean preserveProvider,
Boolean overwrite)
Import an API by uploading an archive file.
|
javax.ws.rs.core.Response |
importApplicationsPost(InputStream fileInputStream,
org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail,
Boolean preserveOwner,
Boolean skipSubscriptions,
String appOwner,
Boolean skipApplicationKeys,
Boolean update)
Import an Application which has been exported to a zip file
|
String |
importApplicationsPostGetLastUpdatedTime(InputStream fileInputStream,
org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail,
Boolean preserveOwner,
Boolean skipSubscriptions,
String appOwner) |
public javax.ws.rs.core.Response importApiPost(InputStream fileInputStream, org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail, Boolean preserveProvider, Boolean overwrite)
importApiPost in class ImportApiServicefileInputStream - uploadedInputStream input stream from the REST requestfileDetail - file details as AttachmentpreserveProvider - user choice to keep or replace the API provideroverwrite - whether to update the API or not. This is used when updating already existing APIs.public javax.ws.rs.core.Response importApplicationsPost(InputStream fileInputStream, org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail, Boolean preserveOwner, Boolean skipSubscriptions, String appOwner, Boolean skipApplicationKeys, Boolean update)
importApplicationsPost in class ImportApiServiceappOwner - target owner of the applicationpreserveOwner - if true, preserve the original owner of the applicationskipSubscriptions - if true, skip subscriptions of the applicationfileInputStream - content stream of the zip file which contains exported ApplicationfileDetail - meta information of the zip fileskipApplicationKeys - Skip application keys while importingupdate - update if existing application found or importpublic String importApplicationsPostGetLastUpdatedTime(InputStream fileInputStream, org.apache.cxf.jaxrs.ext.multipart.Attachment fileDetail, Boolean preserveOwner, Boolean skipSubscriptions, String appOwner)
Copyright © 2019 WSO2. All rights reserved.