Package app.ductape.sdk.imports
Class ImportService
java.lang.Object
app.ductape.sdk.imports.ImportService
App-collection importer: parity with TS
ImportService (uploads Postman v2.1
and OpenAPI v3.0 documents to the Ductape Apps API).
Wraps AppApiService.importApp(String, String, byte[], String, String, boolean, RequestContext, boolean)
and exposes the same fluent surface as TS:
importApp(byte[], DocType, String, boolean, String)— type-routed convenienceimportPostmanV21(byte[], String, boolean, String, boolean)— explicit Postman v2.1importOpenAPIV3(byte[], String, boolean, String, boolean)— explicit OpenAPI v3.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumTSImportDocsTypesenum values. -
Constructor Summary
ConstructorsConstructorDescriptionImportService(EnvType env, RequestContext auth) ImportService(RequestContext auth, AppApiService appApi) -
Method Summary
Modifier and TypeMethodDescriptionauth()importApp(byte[] file, ImportService.DocType type, String version, boolean updateIfExists, String appId) TSimportApp(file, type, version, updateIfExists, app_id, isAdminImport): routes byImportService.DocTypeto the same/apps/v1/import[/admin]endpoint as the TS SDK.importApp(byte[] file, ImportService.DocType type, String version, boolean updateIfExists, String appId, boolean adminImport) importOpenAPIV3(byte[] file, String version, boolean updateIfExists, String appId, boolean adminImport) TSimportOpenAPIV3.importPostmanV21(byte[] file, String version, boolean updateIfExists, String appId, boolean adminImport) TSimportPostmanV21.
-
Constructor Details
-
ImportService
-
ImportService
-
-
Method Details
-
importApp
public Map<String,Object> importApp(byte[] file, ImportService.DocType type, String version, boolean updateIfExists, String appId) TSimportApp(file, type, version, updateIfExists, app_id, isAdminImport): routes byImportService.DocTypeto the same/apps/v1/import[/admin]endpoint as the TS SDK. -
importApp
-
importPostmanV21
public Map<String,Object> importPostmanV21(byte[] file, String version, boolean updateIfExists, String appId, boolean adminImport) TSimportPostmanV21. -
importOpenAPIV3
public Map<String,Object> importOpenAPIV3(byte[] file, String version, boolean updateIfExists, String appId, boolean adminImport) TSimportOpenAPIV3. -
auth
-