Unsolved Rest API for mysql database on qt
-
Hello everyone,
I'm currently developing a mobile app. And I need to connect to a mysql database, and if I'm not mistaken it's 'not normal' to connect directly to database on mobile app and you should use a rest API.
Could anyone help me on the 'easiest' way I could make a rest API for the mysql server or if there is any other way without a rest API.
Thanks -
Hi,
What is a bad idea is to put your database directly on open access over internet hence the suggestion of using a REST API to access it.
As for the API implementation there are lots of possibilities.
If you want to stay with Qt, there's the Cutelyst project.
Otherwise it depends on your server side favorite programming language. You can use Django REST Framework, Flask, PHP Slim, etc.
-
@SGaist So this link will show me how to create an API using qt?
-
Go to the wiki page of the project and you can find a guide there.
-
@SGaist
Ok perfect thank you.
Also I managed to create an API using php. Do you know how I could go about hosting that?
Thanks again -
It depends on your needs and budget.