Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 675 Bytes

apps.md

File metadata and controls

30 lines (22 loc) · 675 Bytes

Applications

Applications are the top level object that groups routes together to create an API.

App level configuration

When creating or updating an app, you can pass in a map of config variables.

config is a map of values passed to the route runtime in the form of environment variables.

Note: Route level configuration overrides app level configuration.

fnctl apps create --config k1=v1 --config k2=v2 myapp

Or using a cURL:

curl -H "Content-Type: application/json" -X POST -d '{
    "app": {
        "name":"myapp-curl",
        "config": {
            "k1": "v1",
            "k2": "v2"
        }
    }
}' http://localhost:8080/v1/apps