ODataAngularResources
ODataAngularResources copied to clipboard
What's the correct way to get the final URL that will be made to the server?
I found the following approach to get the final URL (after applying all filters, sorting, expansions, etc) that will be made to the server, using the undocumented "execute" method on the ODataResource:
let Resource = $odataresource(baseUrl, {}, {}, { odatakey: 'id', isodatav4: true });
let myRecords = Resource.odata();
let finalUrl = `${baseUrl}?${myRecords .execute()}`;
I am able to get the final URL, but I am not sure if this approach is the best practice. Given the fact the I am using an undocumented method, I am not sure if I'm doing the right thing.
Can anyone help?