fake api with promised based response