Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Handling db connection at run time and documenting rest api example #57

Open
bnlambert opened this issue Aug 18, 2017 · 2 comments
Open

Comments

@bnlambert
Copy link

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

@matt-42
Copy link
Owner

matt-42 commented Sep 18, 2017

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.

@bnlambert
Copy link
Author

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants