I want to create a proxy endpoint eg "/my_endpoint" (that does not have a corresponding endpoint with the same name in the system beneath) which performs multiple rest calls, creates an object based on the different calls and returns it to the user. I was recommended to read about callout flow but cannot find the solution to my problem. Anyone who can point me to the right direction? I would just like to see a piece of code/xml describing how i can hit an endpoint and execute the logic described above.
Best Regards J