title: How to pass query parameters in API gateway with S3 json file backend
body: <p>I am new to AWS and I have followed this tutorial : <a href="https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html" rel="nofollow noreferrer">https://docs.aws.amazon.com/apigateway/latest/developerguide/integrating-api-with-aws-services-s3.html</a>, I am now able to read from the TEST console my AWS object stored on s3 which is the following (it is .json file):</p>
  <p>[
  {
  &quot;important&quot;: &quot;yes&quot;,
  &quot;name&quot;: &quot;john&quot;,
  &quot;type&quot;: &quot;male&quot;
  },
  {
  &quot;important&quot;: &quot;yes&quot;,
  &quot;name&quot;: &quot;sarah&quot;,
  &quot;type&quot;: &quot;female&quot;
  },
  {
  &quot;important&quot;: &quot;no&quot;,
  &quot;name&quot;: &quot;maxim&quot;,
  &quot;type&quot;: &quot;male&quot;
  }
  ]</p>
  <p>Now, what I am trying to achieve is pass query parameters. I have added <em>type</em> in the Method Request and added a URL Query String Parameter named <em>type</em> with <em>method.request.querystring.type</em> mapping in the Integration Request.</p>
  <p>When I want to test, typing <em>type=male</em> is not taken into account, I still get the 3 elements instead of the 2 male elements.</p>
  <p>Any reasons you think this is happening ?</p>
  <p>For information, the <em>Resources</em> is the following (and I am using <em>AWS Service</em> integration type to create the GET method as explained in the AWS tutorial)</p>
  <pre><code>/
   /{folder}
    /{item}
     GET
  </code></pre>