I have a button with id=\'download\' and when clicked, I want it to go to an API endpoint (I am new. I think that\'s what that\'s called) that serves JSON data. I tried to m