url:
    total:
        pattern: /$YAMLURL/total                    # /total
        handler: FunctionHandler                    # runs a function
        kwargs:
            function: calculations.total(100, 200)  # total() from calculations.py
            headers:
                Content-Type: application/json      # Display as JSON

    add:
        pattern: /$YAMLURL/add
        handler: FunctionHandler                    # runs a function
        kwargs:
            function: calculations.add              # add() from calculations.py
            headers:
                Content-Type: application/json      # Display as JSON

    slow:
        pattern: /$YAMLURL/slow
        handler: FunctionHandler
        kwargs:
            function: calculations.slow             # Show the slow calculations
            headers:
                Content-Type: application/json

    fetch:
        pattern: /$YAMLURL/fetch
        handler: FunctionHandler
        kwargs:
            function: calculations.fetch            # Fetch URLs one after another
            headers:
                Content-Type: application/json

    path:
        pattern: /$YAMLURL/path/(.*?)/(.*?)
        handler: FunctionHandler
        kwargs:
            function: json.dumps(handler.path_args)
            headers:
                Content-Type: application/json      # Display as JSON
