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: handler.path_args headers: Content-Type: application/json # Display as JSON combinations: pattern: /$YAMLURL/combinations handler: FunctionHandler kwargs: function: calculations.combinations headers: Content-Type: application/json multiply: pattern: /$YAMLURL/multiply handler: FunctionHandler kwargs: function: calculations.multiply headers: Content-Type: application/json