Page Contents

Home > @loopback/openapi-v3 > del

del() function

Expose a Controller method as a REST API operation mapped to DELETE request method.

Signature:

export declare function del(path: string, spec?: OperationObject): MethodDecorator;

Parameters

Parameter Type Description

path

string

The URL path of this operation, e.g. /product/{id}

spec

OperationObject

(Optional) The OpenAPI specification describing parameters and responses of this operation.

Returns:

MethodDecorator