reference implementation to backend REST API.