added api proxy and a test file