Skip to content

Repository files navigation

OVERVIEW

qRestAPI is a cross-platform Qt-based library allowing to easily query any RESTful web services.

It provides the following interfaces:

InterfaceRESTful API
qRestAPIany
qGirderAPIGirder
qMidasAPIMidas

Prerequisites

How to build using Qt 4.x

git clone git://github.com/commontk/qRestAPI.git
mkdir qRestAPI-build
cd qRestAPI-build
cmake -DQT_QMAKE_EXECUTABLE:FILEPATH=/path/to/qmake ../qRestAPI
make -j4

How to build using Qt 5.x

git clone git://github.com/commontk/qRestAPI.git
mkdir qRestAPI-build
cd qRestAPI-build
cmake -DQt5_DIR:PATH=/path/to/QtX.Y.Z/X.Y.Z/gcc_64/lib/cmake/Qt5 ../qRestAPI
make -j4

How to build using Qt 6.x

git clone git://github.com/commontk/qRestAPI.git
mkdir qRestAPI-build
cd qRestAPI-build
cmake -DQT6_INSTALL_PREFIX:PATH=/path/to/QtX.Y.Z/X.Y.Z/gcc_64 ../qRestAPI
make -j4

Testing

To run tests checking that queries can successfully be executed.

cd qRestAPI-build
ctest

List of tests expecting servers to be reachable:

TestServer
qGirderAPITesthttps://data.kitware.com/api/v1
qMidasAPITesthttps://slicer.kitware.com/midas3

Contribute

Contributions are welcome, and they are greatly appreciated! Every little bit helps, and credit will always be given.

See CONTRIBUTING.md for more details.

About

Simple Qt library allowing to synchronously or asynchronously query a REST server.

Resources

Contributing

Stars

33 stars

Watchers

27 watching

Forks

Contributors

Languages