MCPcopy Index your code
hub / github.com/loopbackio/loopback-next / array

Function array

packages/rest-crud/src/crud-rest.controller.ts:352–364  ·  view source on GitHub ↗
(
    statusCode: number,
    description: string,
    modelCtor: Function & {prototype: T},
    options?: JsonSchemaOptions<T>,
  )

Source from the content-addressed store, hash-verified

350 }
351
352 export function array<T extends Entity>(
353 statusCode: number,
354 description: string,
355 modelCtor: Function & {prototype: T},
356 options?: JsonSchemaOptions<T>,
357 ) {
358 return response(statusCode, description, {
359 schema: {
360 type: 'array',
361 items: getModelSchemaRef(modelCtor, options),
362 },
363 });
364 }
365}

Callers

nothing calls this directly

Calls 2

getModelSchemaRefFunction · 0.85
responseFunction · 0.70

Tested by

no test coverage detected