0

I have a Rest Web Service class that exposing Get Function. I am trying to get the entire URL of the request to save it in logs.

According to the Salesforce Documentation I could get it, without beginning of the URL, with :

req.requestURI

But when I use it, I only get 'Account/' if I take as example the Get function in the documentation, without base URL and without parameters.

So the question is how I can get the entire URL of the Request including base URL and Parameters?

for example: https://myDev.my.salesforce.com/services/apexrest/GetAccountInfo?IdNumber=1561&AddressId=53812245&Apartment=8

3