As you may know, there are two versions of APIs in API Gateway. API Gateway version 1 includes REST APIs only, whereas the API Gateway version 2 includes both WebSocket and HTTP APIs. HTTP APIs (V2) are designed for low-latency, cost-effective AWS Lambda proxy and HTTP proxy APIs. Previous-generation REST APIs (V1) currently offer more features, and full control over API requests and responses. You can find more details from.
The label “Protocol” from the AWS API Gateway Console provides information about the current version of the API.
You can use the AWS CLI for retrieving the API version information, as follows:
– Version 1: by using the “get-rest-apis” you can get all REST APIs (version 1)
$ aws apigateway get-rest-apis
– Version 2: by using the “get-apis” you can get all WebSocket and HTTP APIs (version 2)
$ aws apigatewayv2 get-apis
No Comments