You need to sign in to do that
Don't have an account?
riffindus
Best practices for providing endpoint for HTTP rest services
Hi,
I did a successfull HTTP Post to an endpoint. i know it is not a good practise to hardcode the endpoint URL in the code itself. Is there anyway i can keep it globally and change it whenever we want. Please let me know. how others use it, so that i can implement the same.
please provide your inputs
Most REST services have an established API, including discovery services, so your question may be irrelevant for those services (e.g. salesforce.com's REST API). For others, though, you might just use a "custom setting" (Setup > Develop > Custom Settings) to store this information.
All Answers
Most REST services have an established API, including discovery services, so your question may be irrelevant for those services (e.g. salesforce.com's REST API). For others, though, you might just use a "custom setting" (Setup > Develop > Custom Settings) to store this information.
Hi
Thanks for the reply. I will create a field to set URL in it.
But just wondering, how to provide value in it?
I figured out providing values for the fields and using the same.
Thanks once again.