Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Rest API for mysql database on qt
Forum Updated to NodeBB v4.3 + New Features

Rest API for mysql database on qt

Scheduled Pinned Locked Moved Unsolved General and Desktop
6 Posts 2 Posters 563 Views 2 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alfie Anil
    wrote on 12 Oct 2020, 15:08 last edited by
    #1

    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

    1 Reply Last reply
    0
    • S Offline
      S Offline
      SGaist
      Lifetime Qt Champion
      wrote on 12 Oct 2020, 18:34 last edited by
      #2

      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.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2
      • A Offline
        A Offline
        Alfie Anil
        wrote on 12 Oct 2020, 20:47 last edited by
        #3

        @SGaist So this link will show me how to create an API using qt?

        1 Reply Last reply
        0
        • S Offline
          S Offline
          SGaist
          Lifetime Qt Champion
          wrote on 12 Oct 2020, 20:50 last edited by
          #4

          Go to the wiki page of the project and you can find a guide there.

          Interested in AI ? www.idiap.ch
          Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • A Offline
            A Offline
            Alfie Anil
            wrote on 12 Oct 2020, 21:24 last edited by
            #5

            @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

            1 Reply Last reply
            0
            • S Offline
              S Offline
              SGaist
              Lifetime Qt Champion
              wrote on 13 Oct 2020, 19:07 last edited by
              #6

              It depends on your needs and budget.

              Interested in AI ? www.idiap.ch
              Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              0

              1/6

              12 Oct 2020, 15:08

              • Login

              • Login or register to search.
              1 out of 6
              • First post
                1/6
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • Users
              • Groups
              • Search
              • Get Qt Extensions
              • Unsolved