Endpoints
A function endpoint is the publicly available URL on which you can access the function.
In Azure serverless computing (unlike in some serverless offers provided by other vendors), HTTP(s) endpoints are assigned automatically to all the functions that have an HTTP or a Webhook trigger, without a need for an API Gateway. By default, the function is assigned an endpoint constructed in the following manner, based on your application and function name:
http://<YourAppName>.azurewebsites.net/api/<FunctionName>
Custom routes
To change the domain part of the URL (http://<YourAppName>.azurewebsites.net
), you can configure a custom domain for your Function App, which we will describe in more detail in Chapter 10, Securing Your Application. This change will apply to all the functions defined under the Function App.
To customize the default api
route prefix, you can add the following code to the host.json
file (main project tree):
{ "http": { "routePrefix...