RESTful interface for C ++ / Qt?

I want to integrate the RESTful-API into my Qt project.
I already read the example on this page , but this is only for receiving data from the RESTful interface, and not for sending new data to the server. In Java, I can use RESTlet, for example, is it possible to use something similar for Qt too?
Or is there even an easy way to send data from Qt to RESTful, for example, when I create XML before?

+4
source share
1 answer

Since REST is just normal access to the URL, there is no reason why you cannot use the Qt HttpClient interfaces to talk to your Java REST interface. You just need to make the choice to use XML or JSON - both have very accessible libraries, and both are just text interfaces.

It’s strange that you ask, I’m doing this myself today - I’m implementing a JSON-based REST interface in Java, and in the near future I will connect plumbing to my Qt application.

I will try to update this answer as I progress.

+3
source

Source: https://habr.com/ru/post/1309911/


All Articles