Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Rest API for mysql database on qt
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.
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.
Ok perfect thank you.
Also I managed to create an API using php. Do you know how I could go about hosting that?
It depends on your needs and budget.