Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to omit stage name from url in AWS Api gateway?

How can i omit stage name in API endpoint url for Amazon API Gateway.

For example instead of api.domain.com/stagename/resource/ I would like to have api.domain.com/resource.

like image 466
mko Avatar asked Dec 05 '25 00:12

mko


1 Answers

You cannot change stage from API URL, which is the implementation of API gateway but you can give the custom domain to your API URL if you want.

If you are using custom domain name then stage is optional - http://docs.aws.amazon.com/apigateway/latest/developerguide/how-to-custom-domains.html#how-to-custom-domains-console

or with CloudFormation template - http://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-resource-apigateway-basepathmapping.html

like image 158
Vijayanath Viswanathan Avatar answered Dec 07 '25 15:12

Vijayanath Viswanathan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!