MCPcopy
hub / github.com/simstudioai/sim / createApiBlock

Function createApiBlock

packages/testing/src/factories/block.factory.ts:184–190  ·  view source on GitHub ↗
(options: Omit<BlockFactoryOptions, 'type'> = {})

Source from the content-addressed store, hash-verified

182 * Creates an API block (HTTP requests).
183 */
184export function createApiBlock(options: Omit<BlockFactoryOptions, 'type'> = {}): any {
185 return createBlock({
186 ...options,
187 type: 'api',
188 name: options.name ?? 'API',
189 })
190}
191
192/**
193 * Creates a response block (workflow output).

Callers 1

utils.test.tsFile · 0.90

Calls 1

createBlockFunction · 0.70

Tested by

no test coverage detected