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
- TypeScript
- Java
- Go
- .NET
import { ImportDocTypes } from "@ductape/sdk/types"
const file: Buffer = "" // file buffer or blob here
const app = "app"
await ductape.api.import({ file, type: ImportDocTypes.postmanV21, app });
Map<String, Object> file: Buffer = "" // file buffer or blob here
Map<String, Object> app = "app"
ductape.api().import(Map<String, Object>.of(
file, type: ImportDocTypes.postmanV21, app ));
const file: Buffer = "" // file buffer or blob here
app := "app"
client.api.import({ file, type: ImportDocTypes.postmanV21, app });
var file: Buffer = "" // file buffer or blob here
var app = "app"
await ductape.api.import({ file, type: ImportDocTypes.postmanV21, app });
Importing Actions and Creating a New App
- TypeScript
- Java
- Go
- .NET
import { ImportDocTypes } from "@ductape/sdk/types"
const file: Buffer = "" // file buffer or blob here
await ductape.api.import({ file, type: ImportDocTypes.postmanV21 });
Map<String, Object> file: Buffer = "" // file buffer or blob here
ductape.api().import(Map<String, Object>.of(
file, type: ImportDocTypes.postmanV21 ));
const file: Buffer = "" // file buffer or blob here
client.api.import({ file, type: ImportDocTypes.postmanV21 });
var file: Buffer = "" // file buffer or blob here
await ductape.api.import({ file, type: ImportDocTypes.postmanV21 });