MCPcopy Create free account
hub / github.com/vercel/vercel / getEndpoints

Method getEndpoints

packages/cli/src/util/openapi/openapi-cache.ts:150–154  ·  view source on GitHub ↗

* Get all available endpoints from the loaded spec, sorted by path then method. * Throws if spec hasn't been loaded yet.

()

Source from the content-addressed store, hash-verified

148 * Throws if spec hasn't been loaded yet.
149 */
150 getEndpoints(): EndpointInfo[] {
151 this.ensureLoaded();
152 const endpoints = this.extractEndpoints();
153 return this.sortEndpoints(endpoints);
154 }
155
156 /**
157 * Extract body fields from a requestBody schema.

Callers 8

matchesCliApiTagFunction · 0.95
getWebhookEventsFunction · 0.95
spec-url.test.tsFile · 0.80
promptEndpointSelectionFunction · 0.80
listEndpointsFunction · 0.80
runTagOperationFunction · 0.80

Calls 3

ensureLoadedMethod · 0.95
extractEndpointsMethod · 0.95
sortEndpointsMethod · 0.95

Tested by

no test coverage detected