API to Test Database and Live  Topic is solved

Discussions relating to the REST API of Jiwa 7.

API to Test Database and Live

Postby Ernst » Mon May 06, 2024 5:53 pm

Hi We have a web company using the API, They have put a few customers on the Live Web API, but have now asked if they could also have a Test API to continue development.
Is it possible to point the API service at Live and Test?
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12

Re: API to Test Database and Live  Topic is solved

Postby Mike.Sheen » Mon May 06, 2024 5:58 pm

Ernst wrote:Hi We have a web company using the API, They have put a few customers on the Live Web API, but have now asked if they could also have a Test API to continue development.
Is it possible to point the API service at Live and Test?


Typically you would setup a second instance of the API service configured to point to the test database - this can be on the same machine, as long as the port is different.

See Running the Jiwa API windows service multiple times on the same machine

If you're sophisticated, you can stand up a proxy and have it forward the traffic to either the live or test API instance based on hostname.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2445
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 757

Re: API to Test Database and Live

Postby Ernst » Tue May 07, 2024 8:52 am

Thanks Mike, that link looks like a good solution
User avatar
Ernst
Kohai
Kohai
 
Posts: 221
Joined: Tue Feb 19, 2008 3:43 pm
Topics Solved: 12


Return to REST API

Who is online

Users browsing this forum: No registered users and 1 guest

cron