Each API of Amazon API Gateway has
{api-id}.execute-api.{region}.amazonaws.com
, or{hostname}
Each stage is available for client applications to call via
{protocol}://{hostname}/{stage}
, orhttps://{api-id}.execute-api.{region}.amazonaws.com/{stage}
(for REST API Gateway in our case).To call a deployed API, the client submits a request against
{protocol}://{hostname}/{stage}{resourcePath}
, orhttps://{api-id}.execute-api.{region}.amazonaws.com/{stage}{resourcePath}
(for REST API Gateway in our case).For example:
dev
of a REST API is available at the Invoke URL: https://{api-id}.execute-api.{region}.amazonaws.com/dev
/
of stage dev
of the same REST API is available at the Invoke URL: https://{api-id}.execute-api.{region}.amazonaws.com/dev/
users
of stage dev
of the same REST API is available at the Invoke URL: https://{api-id}.execute-api.{region}.amazonaws.com/dev/users