REST Api for QT app
-
Thank's you.
So, i take a look to QTService and try to run the example of http server.
But i get an error : "The service Qt HTTP Daemon could not start ..."
I'm newbie in C++ and QT, so i take a look at qtservice.cpp but i still incapable to identify my problem ..Any idea ?
-
No sorry, I've never used that module. There is a plan to add a new QApplication-like class for creating daemons, but I think it's not integrated yet.
-
Ok thanks.
Finally, i use "qhttpserver": https://github.com/nikhilm/qhttpserver to create my server HTTP .
Is it a library in QT for create REST API ? or did i have to create ressources(REST) myself ? -
There is no build-in support for REST in Qt. Maybe there is some in QHttpServer, I don't know.
-
QttpServer
https://github.com/supamii/QttpServerTry QttpServer for an RESTish API server:
- Qt provides support for JSON, logging
- URL routing
- libuv performance
- MongoDB friendly
- Redis friendly
-
Hi!
Please see to my rest client implementation https://forum.qt.io/topic/64999/qt-rest-client-beta
-
-
If anyone is looking for a way to connect to a REST api, we've written a tutorial with an open-source example app, that connects to a weather REST service: https://v-play.net/cross-platform-app-development/access-rest-services-qt-v-play-weather-service-example-app-open-source
-
@h00bs
the OP was asking for a REST API server/provider, rather than a REST client.