silicon icon indicating copy to clipboard operation
silicon copied to clipboard

Handling db connection at run time and documenting rest api example

Open bnlambert opened this issue 8 years ago • 2 comments

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

bnlambert avatar Aug 18 '17 12:08 bnlambert

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.

matt-42 avatar Sep 18 '17 07:09 matt-42

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.

bnlambert avatar Sep 18 '17 09:09 bnlambert