Package app.ductape.sdk.api.services
Class AppApiService
java.lang.Object
app.ductape.sdk.api.services.AppApiService
-
Constructor Summary
ConstructorsConstructorDescriptionAppApiService(EnvType environment) AppApiService(String baseUrl) Test-only constructor that points the underlying client at an arbitrary base URL (e.g. -
Method Summary
Modifier and TypeMethodDescriptioncheckAppNameExists(String appName, RequestContext auth) createApp(Map<String, Object> payload, RequestContext auth) createAppAccess(String appId, String integrationId, String accessTag, RequestContext auth) createAppBuilderSession(Map<String, Object> payload, RequestContext auth) voiddeleteApp(String appId, RequestContext auth) fetchAccessByTag(String accessTag, RequestContext auth) fetchApp(String appId, RequestContext auth) fetchAppBuilderSession(Map<String, Object> payload) fetchAppByTag(String appTag, RequestContext auth) fetchAppComponentByTag(String appId, String componentType, String tag, RequestContext auth, String version) fetchAppComponents(String appId, String componentType, RequestContext auth, String version) fetchWorkspaceApps(String status, RequestContext auth) http()importApp(String appId, String type, byte[] file, String fileName, String version, boolean update, RequestContext auth, boolean adminImport) TSimportApp(app_id, type, file, version, update, auth, isAdminImport): multipart upload of a Postman v2.1 or OpenAPI v3.0 collection.initApp(String id, RequestContext auth) voidvoidupdateAppAction(String appId, String tag, Map<String, Object> existingAction, Map<String, Object> data, RequestContext auth) TSapp.api.update(appTag, tag, data)->AppBuilder.updateAction(tag, data)->updateActionProcess(tag, body, RequestAction.UPDATE), which sends{ component: 'action', action: 'update', tag, ...body }viaappApi.updateApp.
-
Constructor Details
-
AppApiService
-
AppApiService
Test-only constructor that points the underlying client at an arbitrary base URL (e.g. MockWebServer).
-
-
Method Details
-
http
-
fetchAppBuilderSession
-
createAppBuilderSession
-
checkAppNameExists
-
fetchApp
-
createApp
-
updateApp
-
deleteApp
-
fetchWorkspaceApps
-
fetchAccessByTag
-
fetchAppByTag
-
createAppAccess
-
fetchAppComponents
-
fetchAppComponentByTag
-
updateAppAction
public void updateAppAction(String appId, String tag, Map<String, Object> existingAction, Map<String, Object> data, RequestContext auth) TSapp.api.update(appTag, tag, data)->AppBuilder.updateAction(tag, data)->updateActionProcess(tag, body, RequestAction.UPDATE), which sends{ component: 'action', action: 'update', tag, ...body }viaappApi.updateApp. TS additionally re-parsesparams/query/body/headers/responsesamples throughInputsServicebefore merging — the Java SDK has noInputsServiceequivalent (verified absent across the whole SDK), so simple fields (description,method,request_type, plus any caller-supplied raw sample fields) are forwarded as-is on top of the existing action record, mirroring how the rest of this SDK already simplifies TS's input-parsing pipeline for env/auth CRUD. -
initApp
-
importApp
public Map<String,Object> importApp(String appId, String type, byte[] file, String fileName, String version, boolean update, RequestContext auth, boolean adminImport) TSimportApp(app_id, type, file, version, update, auth, isAdminImport): multipart upload of a Postman v2.1 or OpenAPI v3.0 collection.- Parameters:
appId- optional existing app id (omit to create a new app)type- TSImportDocsTypes("PostmanV2.1"or"OpenApiV3.0")file- binary file bytes (UTF-8 JSON for both supported formats)fileName- suggested filename (TS usesupload-{app_id}.json)version- semver string (e.g."0.0.1")update-trueto overwrite existing actionsauth- request contextadminImport-trueto use the privileged admin import endpoint
-