(baseUrl: string)
| 44 | ); |
| 45 | |
| 46 | const 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 | |
| 63 | const invokeByAddressCode = (address: string, args: unknown) => ` |
| 64 | const segments = ${JSON.stringify(address)}.split(".").slice(1); |
no outgoing calls
no test coverage detected