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
QtWS25 Last Chance

REST API client

Scheduled Pinned Locked Moved Solved QML and Qt Quick
restapirestfulqmlrestful api
12 Posts 5 Posters 19.1k Views
  • 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.
  • S Offline
    S Offline
    SGaist
    Lifetime Qt Champion
    wrote on 31 Mar 2018, 21:12 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
    • T tansgumus
      31 Mar 2018, 18:00

      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?

      T Offline
      T Offline
      timday
      wrote on 31 Mar 2018, 21:15 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).

      T 1 Reply Last reply 1 Apr 2018, 01:03
      2
      • T timday
        31 Mar 2018, 21:15

        @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).

        T Offline
        T Offline
        tansgumus
        wrote on 1 Apr 2018, 01:03 last edited by
        #5

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

        1 Reply Last reply
        0
        • T Offline
          T Offline
          tansgumus
          wrote on 1 Apr 2018, 01:06 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
          • S Offline
            S Offline
            SGaist
            Lifetime Qt Champion
            wrote on 1 Apr 2018, 07:33 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

            T 1 Reply Last reply 1 Apr 2018, 11:11
            4
            • S SGaist
              1 Apr 2018, 07:33

              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.

              T Offline
              T Offline
              tansgumus
              wrote on 1 Apr 2018, 11:11 last edited by tansgumus 4 Jan 2018, 11:20
              #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.

              T 1 Reply Last reply 2 Apr 2018, 08:51
              0
              • T tansgumus
                1 Apr 2018, 11:11

                @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.

                T Offline
                T Offline
                timday
                wrote on 2 Apr 2018, 08:51 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.

                T 1 Reply Last reply 2 Apr 2018, 14:02
                0
                • T timday
                  2 Apr 2018, 08:51

                  @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.

                  T Offline
                  T Offline
                  tansgumus
                  wrote on 2 Apr 2018, 14:02 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 29 Sept 2018, 08:42 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 12 May 2021, 12:14 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