rest api mockup