REST API client
-
wrote on 31 Mar 2018, 17:52 last edited by
Hi,
I've created a small website using Laravel supports RESTful API.
Does Qt Quick supports REST API?
If yes; I want to create a very basic Qt REST API client app for Android. From where I've to startup?
-
wrote on 31 Mar 2018, 18:00 last edited by
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 wheelIMPORTANT:
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? -
Hi,
Are you thinking about using XMLHttpRequest in your application ?
-
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 wheelIMPORTANT:
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?wrote on 31 Mar 2018, 21:15 last edited by@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).
-
@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).
wrote on 1 Apr 2018, 01:03 last edited byThank you guys specially @timday. I thought XMLHttpRequest works only for xml.
-
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.
-
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.
wrote on 1 Apr 2018, 11:11 last edited by tansgumus 4 Jan 2018, 11:20@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.
-
@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.
wrote on 2 Apr 2018, 08:51 last edited by@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.
-
@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.
wrote on 2 Apr 2018, 14:02 last edited by@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!
-
wrote on 29 Sept 2018, 08:42 last edited by
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.
-
wrote on 12 May 2021, 12:14 last edited by
@tansgumus said in REST API client:
RESTful API
Hello, how did you solve it, I also want to use RESTful API in QT.