Page Contents

Home > @loopback/rest > parseOperationArgs

parseOperationArgs() function

Parses the request to derive arguments to be passed in for the Application controller method

Signature:

export declare function parseOperationArgs(request: Request, route: ResolvedRoute, requestBodyParser?: RequestBodyParser, options?: ValidationOptions): Promise<OperationArgs>;

Parameters

Parameter Type Description
request Request Incoming HTTP request
route ResolvedRoute Resolved Route
requestBodyParser RequestBodyParser (Optional)
options ValidationOptions (Optional)

Returns:

Promise<OperationArgs>