Skip to content

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

License

Notifications You must be signed in to change notification settings

commontk/qRestAPI

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:

Interface RESTful API
qRestAPI any
qGirderAPI Girder
qMidasAPI Midas

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:

Test Server
qGirderAPITest https://data.kitware.com/api/v1
qMidasAPITest https://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

License

Stars

Watchers

Forks