Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. QML and Qt Quick
  4. REST API client
Forum Updated to NodeBB v4.3 + New Features

REST API client

Scheduled Pinned Locked Moved Solved QML and Qt Quick
restapirestfulqmlrestful api
12 Posts 5 Posters 19.2k 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.
  • tansgumusT Offline
    tansgumusT Offline
    tansgumus
    wrote on last edited by
    #2

    I googled about this issue and I found this project which suppose to work as a REST API client but I noticed that it build everything from the scratch!
    https://www.qpm.io/packages/com.github.kafeg.qtrest/index.html
    Do I need to do the same thing? I thought I can do it whiteout the need to code in C++. I don't want to invent the wheel

    IMPORTANT:
    My friend created an Android client using Android Studio within 30 min for my website!
    He said Android Studio ready to help the developers for creating REST API clients easily. Does this happen in Qt Quick?

    timdayT 1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #3

      Hi,

      Are you thinking about using XMLHttpRequest in your application ?

      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
      1
      • tansgumusT tansgumus

        I googled about this issue and I found this project which suppose to work as a REST API client but I noticed that it build everything from the scratch!
        https://www.qpm.io/packages/com.github.kafeg.qtrest/index.html
        Do I need to do the same thing? I thought I can do it whiteout the need to code in C++. I don't want to invent the wheel

        IMPORTANT:
        My friend created an Android client using Android Studio within 30 min for my website!
        He said Android Studio ready to help the developers for creating REST API clients easily. Does this happen in Qt Quick?

        timdayT Offline
        timdayT Offline
        timday
        wrote on last edited by
        #4

        @tansgumus Shouldn't be any need to use C++... have seen plenty of examples of RESTful services being pinged from QML javascript using XMLHttpRequest (here's one).

        tansgumusT 1 Reply Last reply
        2
        • timdayT timday

          @tansgumus Shouldn't be any need to use C++... have seen plenty of examples of RESTful services being pinged from QML javascript using XMLHttpRequest (here's one).

          tansgumusT Offline
          tansgumusT Offline
          tansgumus
          wrote on last edited by
          #5

          Thank you guys specially @timday. I thought XMLHttpRequest works only for xml.

          1 Reply Last reply
          0
          • tansgumusT Offline
            tansgumusT Offline
            tansgumus
            wrote on last edited by
            #6

            A side discussion.

            I wonder Why this guy wrote QtRest while it's already supported in QML by default?!

            1 Reply Last reply
            0
            • SGaistS Offline
              SGaistS Offline
              SGaist
              Lifetime Qt Champion
              wrote on last edited by
              #7

              From a quick look, his library allows you to define exactly what your backend does and provides tighter integration with your application on different levels.

              Another project worth taking a look at is Cutelyst which provides a full web development framework for backend/frontend application combo with Qt.

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

              tansgumusT 1 Reply Last reply
              4
              • SGaistS SGaist

                From a quick look, his library allows you to define exactly what your backend does and provides tighter integration with your application on different levels.

                Another project worth taking a look at is Cutelyst which provides a full web development framework for backend/frontend application combo with Qt.

                tansgumusT Offline
                tansgumusT Offline
                tansgumus
                wrote on last edited by tansgumus
                #8

                @SGaist Cutelyst is a fabulous framework but unfortunately it doesn't work in shared hosting environment (very cheap hosting) so I've to use PHP based solution because its deployment compatible with this kind of hosting.

                timdayT 1 Reply Last reply
                0
                • tansgumusT tansgumus

                  @SGaist Cutelyst is a fabulous framework but unfortunately it doesn't work in shared hosting environment (very cheap hosting) so I've to use PHP based solution because its deployment compatible with this kind of hosting.

                  timdayT Offline
                  timdayT Offline
                  timday
                  wrote on last edited by
                  #9

                  @tansgumus What counts as "very cheap hosting" these days? I've looked at those sort of environments before (typically things admined via "cpanel"?) but ended up going for a micro instance on AWS' EC2 instead which gives you a lot more control and flexibility and was as cheap as any of the shared hosting options at the time (if you signed up for a 3-year "reserved instance" on EC2 anyway). Suspect the shared hosting might be able to scale up under load better though.

                  tansgumusT 1 Reply Last reply
                  0
                  • timdayT timday

                    @tansgumus What counts as "very cheap hosting" these days? I've looked at those sort of environments before (typically things admined via "cpanel"?) but ended up going for a micro instance on AWS' EC2 instead which gives you a lot more control and flexibility and was as cheap as any of the shared hosting options at the time (if you signed up for a 3-year "reserved instance" on EC2 anyway). Suspect the shared hosting might be able to scale up under load better though.

                    tansgumusT Offline
                    tansgumusT Offline
                    tansgumus
                    wrote on last edited by
                    #10

                    @timday said in REST API client:

                    @tansgumus What counts as "very cheap hosting" these days? I've looked at those sort of environments before (typically things admined via "cpanel"?)

                    I pay 32$ per year with unlimited databases and bandwidth %99.9 Uptime. AWS' EC2 more expensive with less performance!

                    1 Reply Last reply
                    1
                    • D Offline
                      D Offline
                      Devstar
                      wrote on last edited by
                      #11

                      If you want to host your Laravel based rest api, then I would recommend doing it on a cloud server. If you don't know how to setup a server on your own, then you can use Cloudways or some other PaaS where server are automatically configured.

                      1 Reply Last reply
                      0
                      • S Offline
                        S Offline
                        shiyu
                        wrote on last edited by
                        #12

                        @tansgumus said in REST API client:

                        RESTful API

                        Hello, how did you solve it, I also want to use RESTful API in QT.

                        1 Reply Last reply
                        0

                        • Login

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