title: AWS Lambda function - accessing Path and request parameter value
body: <p>For my POC, created simple lambda function , which will give emp information through rest api. 
  Created lambda function and access all the emp data using API gateway.
  Facing some challenges while accessing particular data.</p>
  
  <p>i am looking for </p>
  
  <p>emp/1 - to retrieve emp id 
   emp/_search?name="apple" -  search name contains apple.</p>
  
  <p>Question is how to retrieve path and request parameters in java code.</p>
  
  <pre><code>public class TestAwsLambdaFunction implements RequestHandler&lt;Map&lt;String, Object&gt;, String&gt; {
  
      @Override
      public String handleRequest(Map&lt;String, Object&gt; input, Context context) {
          String empID= null;
          try {
              @SuppressWarnings("unchecked")
  
              Map&lt;String, String&gt; pathParameters = (Map&lt;String, String&gt;) input.get("querystring");                
  
              empID= pathParameters.get("id");
              System.out.println(empID);
              // TO-Do Business logic - 
  
  
          } catch (Exception e) {
              // TODO: handle exception
          }
          return "Hello from Lambda!" + empID;
      }
  
  }
  </code></pre>
  
  <p>What is the best way to expose my data in Rest api call. Bit confused with Lambda or serverless .
  have any option to show the data via page wise. Since i am new to AWS. Please guide me</p>