(baseUrl: string)
| 138 | /** OpenAPI 3 spec with one no-auth operation (no securitySchemes ⇒ the |
| 139 | * integration is no-auth, so a `template: "none"` connection can call it). */ |
| 140 | const widgetsSpec = (baseUrl: string): string => |
| 141 | JSON.stringify({ |
| 142 | openapi: "3.0.3", |
| 143 | info: { title: "Widgets API", version: "1.0.0" }, |
| 144 | servers: [{ url: baseUrl }], |
| 145 | paths: { |
| 146 | "/unavailable": { |
| 147 | get: { |
| 148 | operationId: "unavailableWidgets", |
| 149 | summary: "Unavailable widgets", |
| 150 | responses: { "200": { description: "widgets" } }, |
| 151 | }, |
| 152 | }, |
| 153 | "/widgets/count": { |
| 154 | get: { |
| 155 | operationId: "countWidgets", |
| 156 | summary: "Count widgets", |
| 157 | responses: { "200": { description: "widget count" } }, |
| 158 | }, |
| 159 | }, |
| 160 | "/widgets": { |
| 161 | get: { |
| 162 | operationId: "listWidgets", |
| 163 | summary: "List widgets", |
| 164 | responses: { "200": { description: "widgets" } }, |
| 165 | }, |
| 166 | }, |
| 167 | }, |
| 168 | }); |
| 169 | |
| 170 | /** Create the no-auth connection through the gateway core tool — the same |
| 171 | * programmatic wire-up an agent performs. */ |
no outgoing calls
no test coverage detected