Importing Actions
Actions are individual endpoints that perform specific functions (e.g., sending money from one user to another). You can import your actions from existing API documentation from the following sources:
- Postman V2.1
- Postman V2.0 (currently unavailable)
- OpenAPI 3.0 (currently unavailable)
Importing Actions into an Existing App
import { ImportDocTypes } from "ductape-sdk/types"
const file: Buffer = "" // file buffer or blob here
const appTag = "app_tag"
await ductape.app.actions.import({ file, type: ImportDocTypes.postmanV21, appTag });
Importing Actions and Creating a New App
import { ImportDocTypes } from "ductape-sdk/types"
const file: Buffer = "" // file buffer or blob here
await ductape.app.actions.import({ file, type: ImportDocTypes.postmanV21 });