Skip to content

Files

Latest commit

f268d2f · Jun 22, 2023

History

History
11 lines (9 loc) · 583 Bytes

query-your-api.md

File metadata and controls

11 lines (9 loc) · 583 Bytes

Query Your REST API Endpoint

  1. Assemble an HTTP request using the API Gateway ID you noted earlier in the IAC setup step (Terraform HCL OR Terraform CDK)
  2. Endpoint Syntax: http://<API Gateway ID>.execute-api.localhost.localstack.cloud:4566/<stageId>/<path>
  3. Example Endpoint: http://1ltvwqpuju.execute-api.localhost.localstack.cloud:4566/local/test
  4. Example cURL:
curl --location 'http://1ltvwqpuju.execute-api.localhost.localstack.cloud:4566/local/test'
  • Example Response: {"message":"Hello World!"}