Fix Weight taken API call
There were strings used to declare objects in the post request body. I also reformatted the code to make it more readable.
This should also not be a post since it's getting information. Seems the post was only done to pass a request body. But that will be a new issue.