API reference / @backpack/aws-lambda / rest / jsonOk
Function: jsonOk()
Call Signature
ts
function jsonOk<T>(body, options?): APIGatewayProxyResult;
Returns a APIGatewayProxyResult
for JSON content with an HTTP 200 OK status code.
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
body | T |
options? | Omit <JsonResultOptions , "statusCode" > |
Returns
APIGatewayProxyResult
Call Signature
ts
function jsonOk<T>(body, options): APIGatewayProxyResult;
Returns a APIGatewayProxyResult
for JSON content with an HTTP 200 OK status code.
Type Parameters
Type Parameter |
---|
T |
Parameters
Parameter | Type |
---|---|
body | NoInfer <T > |
options | Omit <ValidatedJsonResultOptions <T >, "statusCode" > |
Returns
APIGatewayProxyResult