Call setData in the apiParser middleware for functional test_api.js demo.