Q: How to emulate request parameters when running a Firebase client locally I've got a Google Dialogflow application I'm putting together that has a number of fulillments I need to process with external REST apis.  I've got the client set up and working with firebase serve, enabling me to test locally.  My index.js functions have the following siganture: 
exports.clientEmployeeServiceCodes = functions.https.onRequest(async (req, res)=>{...});

But when I run locally any request parameter I pass through the url comes up as undefined. Here is an example.  
http://localhost:5000/arc-caregiver-f8ec9/us-central1/clientEmployeeServiceCodes?phone=%22%%2b12123003939%22

But I get params when I call through Dialogflow.  So my question is whether I'm doing someting wrong or if there's a way to emulate those params in my url call so the method behaves just as it would if I called it from Dialogflow.
Here is the example where I am getting the Dialogflow parameters via the req object. Note where I get the value of pin.
exports.userHours = functions.https.onRequest(async (req, res)=>{
 const start = MyUtils.getDatePlus(-14);
 const end = MyUtils.getDatePlus(14);
 var view = 'API_Pay_Periods';
 var form = 'Pay_Periods';
 var criteria = 'Pay_Period_Date >= "'+start+'" %26%26 Pay_Period_Date <= 
 "'+end+'"'
 const ret = await callRestAPI(Config,view,form,criteria);
 const pp = getPayPeriod(ret);
 const pin = req.query.pin
 console.log('pin',pin)
 const data = await RESTAPI(Config, view,form,criteria);
 res.status(200).send(response);
 ....
 res.end();

});

A: Dialogflow sends its fulfillment information via a POST to your webhook with the JSON object in the body of the request. You cannot duplicate this by sending query parameters in the URL itself.
One typical way to work with this is to setup an ngrok tunnel to your local environment and use it to record the JSON body that is sent. You can then use this same body for testing later.
