title: How to use the AWS API Gateway Java SDK to access a Webservice
body: <p>I have the following endpoint that a client sent me:</p>
  
  <blockquote>
    <p>https://<strong>{restapi_id}</strong>.execute-api.<strong>{region}</strong>.amazonaws.com/test/v1/items?type=ABC</p>
  </blockquote>
  
  <p>Since this request needs to be called with the AWS Authorization process I wanted to use the API Gateway SDK, but I can't find a straightforward example on how to call it.
  I was able to successfully test the API call using Postman (as exaplained in the AWS docs), but I don't know how to specify it using the SDK.
  The ENDPOINT should be the full URL?
  How should I make a call beyond this code? I tried using the GetResourceRequest, but that doesn't seem right. If so, what part of this URL I have is the resource?</p>
  
  <p>This is code where I'm stuck with:</p>
  
  <p>BasicAWSCredentials awsCreds = new BasicAWSCredentials(ACCESS_KEY, SECRET_KEY);</p>
  
  <pre><code>AmazonApiGatewayClient api = new AmazonApiGatewayClient(awsCreds);
  api.setRegion(Region.getRegion(Regions.US_EAST_1));
  api.setServiceNameIntern("execute-api");
  api.setEndpoint(ENDPOINT);
  </code></pre>