create mock api