Hello everyone!
Im using the trial of SAP BTP for testing the functionality of this environment. I decided to try something: A custom HTML report and CAP service.
So, while testing, I noticed that the calls to the service didn't work. So, digging up, people said that I should use the API Management for that part of the project.
So I did. And with the first step of this tutorial, could get the GET calls working. But the POST calls still not working.
The project is saved in this repository. (Please ignore the app folder, alongside the index.html. It was a fast page that I didn't give too much attention, and is still in WIP stage. If you want to test it, just write the calls in the console)
This call gave me a "502 bad Gateway" error.

This call gave me a "400 bad request" error.

Using a ajax call still gave me the '400 bad request' error.

Did I miss something to config in API Management or in the service? Do I have to try something else?
Thank you in advance