Skip to content

Investigation Notes

montgolfiere edited this page Jun 13, 2018 · 1 revision

Investigation Notes

Record notes from Investigations into enhancements and bug fixes

ApexRest

Issue #7

I am trying to hit a custom endpoint created by a third party company. As I use spring-social-salesforce for SObject Operations and that has already produced an OAuth access token, I would like to use this the same token to call the custom End Point. However, I can't find a way to easily add a CustomTemplate or expose the RestTemplate from SalesforceTemplate.

I think this should be achievable. We would need a new API operation possibly called apexRestOperations. The methods could be HTTP verbs (get, post, put, patch delete) that match the annotations available for Apex Rest methods.

The parameters to the methods would be the path from the REST resource. The other method parameters could be a map for the parameters that need to be passed and one for content.

We should look at the response being a map or a boolean.

Clone this wiki locally