Rails async api exercise