Call REST API through AWS Amplify JavaScript Library