MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / itemsSpec

Function itemsSpec

e2e/scenarios/openapi-unknown-args.test.ts:46–61  ·  view source on GitHub ↗
(baseUrl: string)

Source from the content-addressed store, hash-verified

44 );
45
46const itemsSpec = (baseUrl: string): string =>
47 JSON.stringify({
48 openapi: "3.0.3",
49 info: { title: "Items API", version: "1.0.0" },
50 servers: [{ url: baseUrl }],
51 paths: {
52 "/items/{itemId}": {
53 get: {
54 operationId: "getItem",
55 summary: "Fetch one item",
56 parameters: [{ name: "itemId", in: "path", required: true, schema: { type: "string" } }],
57 responses: { "200": { description: "the item" } },
58 },
59 },
60 },
61 });
62
63const invokeByAddressCode = (address: string, args: unknown) => `
64const segments = ${JSON.stringify(address)}.split(".").slice(1);

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected