Page 1 of 1

API to Test Database and Live

PostPosted: Mon May 06, 2024 5:53 pm
by Ernst
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?

Re: API to Test Database and Live  Topic is solved

PostPosted: Mon May 06, 2024 5:58 pm
by Mike.Sheen
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.

Re: API to Test Database and Live

PostPosted: Tue May 07, 2024 8:52 am
by Ernst
Thanks Mike, that link looks like a good solution