cancel
Showing results for 
Search instead for 
Did you mean: 

API gateway integration - proxy server question

Occasional Visitor

API gateway integration - proxy server question

Hi there,

 

I'm attempting to use the api gateway integration extension and am confused as to what "Address of the server to Proxy to*" refers to - please assume for this that the entirety of the work I have done so far on this api has been within the swaggerhub builder and I have therefore not (knowingly) done any work to set up a separate server anywhere in the process.

 

Any help would be much appreciated!

1 REPLY 1
Highlighted
Moderator

Re: API gateway integration - proxy server question

Hi,

 

Amazon API Gateway can work in the proxy mode passing requests to an external API server, or it can use AWS Lambda functions as a backend for API endpoints. SwaggerHub has different integrations for these scenarios:

Amazon API Gateway – Use it if you have an existing API server and you want to proxy or secure it using API Gateway.

Amazon API Gateway Lambda Sync – Use it if you want to use AWS Lambda functions as a backend for your API.

 

For the first type:

Address of the Server to Proxy to – The back-end HTTP endpoint to which API Gateway will proxy the requests. For example, http://api.example.com/reports/v2 or https://myapi.com. If your API definition specifies the host, basePath and scheme, this is scheme:host/basePath.

 

So, it's not necessary to specify the existing server if you don't need to send requests to it.

 

Please see this article for additional details: https://app.swaggerhub.com/help/integrations/amazon-api-gateway

 


Anastasia
Customer Care Team


Did my reply answer your question? Give Kudos or Accept it as a Solution to help others.↓↓↓↓↓

New Here?
Join us and watch the welcome video:
Top Kudoed Authors