I\'m working on a aws serverless project and need to test the lambda functions locally. I am using serverless invoke local -f {function_name} command to te
serverless invoke local -f {function_name}
For future reference. Your case would have been solved like this. Just figured it out thanks to Kannaiyans JSON Example.
sls invoke local -f getFoodDetails --data '{ "queryStringParameters": {"food_id":"123"}}'