The function.json file contains function configuration settings. The runtime uses function.json to determine which types of events to listen to, and how to pass data in and out of the function:
{ "bindings": [ { "authLevel": "anonymous", "name": "req", "type": "httpTrigger", "direction": "in" }, { "name": "$return", "type": "http", "direction": "out" } ], "disabled": false }
As you can see in the preceding code, the configuration generated by the template we chose contains two bindings, which are an HTTP trigger input binding and an HTTP output binding. You may notice that the authorization type is defined on the input binding. We will elaborate on different types of bindings in Chapter 4, Configuring Endpoints, ...