Skip to content

createPostmanClient

createPostmanClient(opts): object

Defined in: clients/postman-client/src/index.ts:33

Creates a Postman client with collections, environments, import, me, specs and workspaces groups sharing one REST client.

PostmanClientOptions

object

collections: object

create: (workspaceId, collection) => Promise<PostmanCollectionResponse>

string

unknown

Promise<PostmanCollectionResponse>

delete: (uid) => Promise<void>

string

Promise<void>

list: (workspaceId) => Promise<PostmanCollectionsResponse>

string

Promise<PostmanCollectionsResponse>

update: (uid, collection) => Promise<PostmanCollectionResponse>

string

unknown

Promise<PostmanCollectionResponse>

environments: object

create: (workspaceId, environment) => Promise<PostmanEnvironmentResponse>

string

unknown

Promise<PostmanEnvironmentResponse>

get: (uid) => Promise<PostmanEnvironmentResponse>

string

Promise<PostmanEnvironmentResponse>

list: (workspaceId) => Promise<PostmanEnvironmentsResponse>

string

Promise<PostmanEnvironmentsResponse>

update: (uid, environment) => Promise<PostmanEnvironmentResponse>

string

unknown

Promise<PostmanEnvironmentResponse>

import: object

openapi: (workspaceId, spec) => Promise<PostmanImportOpenApiResponse>

string

unknown

Promise<PostmanImportOpenApiResponse>

me: object

get: () => Promise<PostmanMeResponse>

Promise<PostmanMeResponse>

specs: object

create: (workspaceId, input) => Promise<PostmanSpec>

string

PostmanCreateSpecInput

Promise<PostmanSpec>

list: (workspaceId) => Promise<PostmanSpecsResponse>

string

Promise<PostmanSpecsResponse>

updateFile: (specId, filePath, content) => Promise<void>

string

string

string

Promise<void>

workspaces: object

create: (input) => Promise<PostmanWorkspaceResponse>

PostmanCreateWorkspaceInput

Promise<PostmanWorkspaceResponse>

list: () => Promise<PostmanWorkspacesResponse>

Promise<PostmanWorkspacesResponse>