AWS API Gateway proxy endpoint
<p>I am trying to implement few already existing APIs.
Suppose i have a application running on server say </p>

<blockquote>
  <p>192.168.0.1:8036</p>
</blockquote>

<p>.
It has various routes like </p>

<pre><code>http://192.168.0.1:8036/api/sample/a1?name=swas&amp;class=tty
http://192.168.0.1:8036/api/samp/a2?addr=swas&amp;roll=tty
</code></pre>

<p>Have a custom domain name say</p>

<blockquote>
  <p>api.example.com</p>
</blockquote>

<p>So here i want to direct every request through AWS Gateway.
Finally request would be like</p>

<p>Request</p>

<blockquote>
  <p><a href="http://api.example.com/api/samp/a2?addr=swas&amp;roll=tty" rel="nofollow noreferrer">http://api.example.com/api/samp/a2?addr=swas&amp;roll=tty</a> </p>
</blockquote>

<p>would be passed as</p>

<blockquote>
  <p><a href="http://192.168.0.1:8036/api/samp/a2?addr=swas&amp;roll=tty" rel="nofollow noreferrer">http://192.168.0.1:8036/api/samp/a2?addr=swas&amp;roll=tty</a></p>
</blockquote>

<p><strong>Note: There could be multiple Routes with different dynamic parameter</strong></p>

<p><strong>In short every request which comes to api.example.com/* should be passed through AWS gateway to 192.168.0.1:8036/*</strong></p>