rest-0.9.1

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.

This package is known to build and work properly using an LFS 11.3 platform.

Package Information

rest Dependencies

Required

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

Recommended

Optional

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

User Notes: https://wiki.linuxfromscratch.org/blfs/wiki/rest

Installation of rest

Install rest by running the following commands:

mkdir build &&
cd    build &&

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

If you have Gi-DocGen-2023.1 installed and wish to build the API documentation for this package, issue:

sed "/output/s/librest-1.0/rest-0.9.1/" -i ../docs/meson.build &&
meson configure -Dgtk_doc=true                                 &&
ninja

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: Allow building this package without Gi-DocGen-2023.1 installed. If you have Gi-DocGen-2023.1 installed and you wish to rebuild and install the API documentation, a meson configure command will reset this option.

-Dexamples=false: Remove this option if libadwaita-1.2.2 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.4 is installed and you wish to build the Vala bindings provided by this package.

Contents

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

Short Descriptions

librest-demo

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

librest-1.0.so

contains the RESTful Web API Query functions

librest-extras-1.0.so

contains extra RESTful Web API Query functions