silicon
silicon copied to clipboard
Handling db connection at run time and documenting rest api example
Silicon is a great work and bravo to the creator and contributors.
I wish to know
- how to connect to many mysql databases at run time.
- if database connection in Silicon done asynchronously
- any recommended api documentation tools for documenting REST APIs created with Silicon
Thanks
Hi @bnlambert ,
how to connect to many mysql databases at run time.It's not possible, but I try to make it possible if you need it.
if database connection in Silicon done asynchronously
Silicon uses the mysqlclient driver, it does not provide a asynchronous API.
any recommended api documentation tools for documenting REST APIs created with Silicon
What do you mean by documentation tools ? I usually use simple a txt file documenting all the routes, their parameters and what they return.
An example of api documentation tool is swagger. I am more concern in changing database configuration at run base on incoming request or active user.. Thank you very much for your feedback.