https://<subdomain>.p.nadles.com/
), users access your API by the domain name owned by you.
In order to successfully complete the setup, you must be able to edit DNS records of the domain name.
p.nadles.com
.
api.myfirstapi.com
, so the two records to add to myfirstapi.com
are:
Type | Name | Value |
---|---|---|
TXT | @ | nadles_verification_8KcfbFwYGieHpqTY8… |
CNAME | api | p.nadles.com |
api.myapi.com
.You have to set different path prefixes for them in the “Custom domain name” section.For Weather API:api.myapi.com
/weather/
https://api.myapi.com/weather/*
, the request is forwarded to Weather API.For currency API:api.myapi.com
/currency/
https://api.myapi.com/currency/*
, the request is proxied to Currency API.https://weather.execute-api.eu-central.amazonaws.com/
then the requestGET https://api.myapi.com/weather/current.json
is actually proxied to your API backend asGET https://weather.execute-api.eu-central.amazonaws.com/current.json
Note that the /weather
part was removed from the request URL.