how to create fake rest api for testing