I have a PasteWSGI server running.
Here is the sample curl request,
curl -vX POST http://127.0.0.1:5000/save_topology --data '{"topo" : {"A": "asdasdasd"}, "house_id" : "2"}'
server side code snippet is,
def save_topology(self):
from plotwatt.topology import save
print request.POST
topo = request.params.get('topo')
house_id = request.params.get('house_id')
return 'OK'
logs,
MultiDict([(u'{"topo" : {"A": "asdasdasd"}, "house_id" : "2"}', u'')])
My question is how can i access passed json as it is in server?
Server details :
Server: PasteWSGIServer/0.5 Python/2.7.3