title: Define optional query parameters in serverless.yml
body: <p>I am fairly new to serverless framework (sls) and trying to define a function and deploy it to AWS.</p>
  <p>While declaring a function in <code>serverless.yml</code>, I have defined the necessary parameters for a function along the lines of the following snippet but I am not able to define an <strong>optional query parameter</strong> in the http path of the new function:</p>
  <pre><code>function-name:
      handler: path/to/js/file.handler
      events:
        - http:
            path: api/v1/resource/{limit}
            method: GET
  </code></pre>
  <p><strong>Desired behavior:</strong> The issue is that I am not able to declare an optional parameter in the path. I wish the endpoint would work as expected even if the <code>limit</code> parameter in not passed in the http GET request.</p>
  <p><em>Note:</em> I have tried <code>path: api/v1/resource/{limit?}</code> but no luck.</p>