Introduction to rest

The rest package contains a library that was designed to make it easier to access web services that claim to be "RESTful". It includes convenience wrappers for libsoup and libxml to ease remote use of the RESTful API.



Development versions of BLFS may not build or run some packages properly if dependencies have been updated since the most recent stable versions of the book.

Package Information

rest Dependencies


JSON-GLib-1.6.6, libsoup-3.2.2, and make-ca-1.12



Gi-DocGen-2023.1, libadwaita-1.2.1 and gtksourceview5-5.6.2 (to build the demo), and Vala-0.56.3

User Notes:

Installation of rest

Install rest by running the following commands:

mkdir build &&
cd    build &&

meson --prefix=/usr        \
      --buildtype=release  \
      -Dexamples=false     \
      -Dgtk_doc=false      .. &&

To test the results, issue: ninja test.

Now, as the root user:

ninja install

Command Explanations

--buildtype=release: Specify a buildtype suitable for stable releases of the package, as the default may produce unoptimized binaries.

-Dgtk_doc=false: Remove this option if Gi-DocGen-2023.1 is installed and you wish to build and install the API documentation. If this option is removed, as the root user, fix the installed directory name with the mv /usr/share/doc/{librest-1.0,rest-0.9.1} command.

-Dexamples=false: Remove this option if libadwaita-1.2.1 and gtksourceview5-5.6.2 are installed and you wish to build the demonstration application provided by this package.

-Dvapi=true: Use this switch if Vala-0.56.3 is installed and you wish to build the Vala bindings provided by this package.


Installed Programs: librest-demo (optional)
Installed Libraries: and
Installed Directories: /usr/include/rest-1.0 and /usr/share/gtk-doc/html/rest-1.0

Short Descriptions


provides an example of how to use the RESTful Web API Query functions

contains the RESTful Web API Query functions

contains extra RESTful Web API Query functions