#!/usr/bin/env python # coding: utf-8 # In[1]: import json # In[2]: REQUEST = json.dumps({ 'path' : {}, 'args' : {} }) # In[ ]: # GET / print("It's alive...") # In[ ]: # GET /hello/:name request = json.loads(REQUEST) name = request['path'].get('name') print('Hello there, {}'.format(name))