step 2: simulate receive data from server, corresponds to https://bitbucket.org/atlassianlabs/flux-step-by-step/pull-request/3/simulate-receiving-data-from-a-rest-api/diff