function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sujit KarandeSujit Karande 

Host local API's

Hello I am trying to integrate my local PostgreSQL database with salesforce. I have written a Restful web service in java which will fetch the data from Employee Table and return the data in JSON format. 

So the base URL of my REST API is 
localhost:8080/RESTfulExample/rest/json/metallica/get
So I wanted to call this web service from salesforce. But I think we cannot achieve because this service is running on my local machine. So I would like to know that is there any way I can host my local API using some providers(for just eg www.hotapiprovider.com/RESTfulExample/rest/json/metallica/get)  and then I can call it from Salesforce. 

Could anyone help me out to solve my issue.
pconpcon
Correct.  You will either need to get your public IP address and make the service available outside of localhost.  Or you will need to have it hosted somewhere (such as Heroku or Openshift) and then use the publicly available IP address or hostname.