MCPcopy Create free account
hub / github.com/loopbackio/loopback-next / api

Method api

packages/rest/src/rest.server.ts:810–812  ·  view source on GitHub ↗

* Set the OpenAPI specification that defines the REST API schema for this * server. All routes, parameter definitions and return types will be defined * in this way. * * Note that this will override any routes defined via decorators at the * controller level (this function takes prece

(spec: OpenApiSpec)

Source from the content-addressed store, hash-verified

808 *
809 */
810 api(spec: OpenApiSpec): Binding {
811 return this.bind(RestBindings.API_SPEC).to(spec);
812 }
813
814 /**
815 * Get the OpenAPI specification describing the REST API provided by

Calls 2

toMethod · 0.80
bindMethod · 0.45

Tested by

no test coverage detected