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 LFS or dependencies have been updated since the most recent stable versions of the books.
Download (HTTP): https://download.gnome.org/sources/rest/0.9/rest-0.9.1.tar.xz
Download MD5 sum: b997b83232be3814a1b78530c5700df9
Download size: 72 KB
Estimated disk space required: 3.2 MB (with tests)
Estimated build time: 0.1 SBU (with tests)
JSON-GLib-1.8.0, libsoup-3.4.4, and make-ca-1.13
Gi-DocGen-2023.3, libadwaita-1.4.0 and gtksourceview5-5.10.0 (to build the demo), and Vala-0.56.14
Install rest by running the following commands:
mkdir build && cd build && meson setup --prefix=/usr \ --buildtype=release \ -Dexamples=false \ -Dgtk_doc=false \ .. && ninja
If you have Gi-DocGen-2023.3 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
--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.3
installed. If you have Gi-DocGen-2023.3 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.4.0 and gtksourceview5-5.10.0 are
installed and you wish to build the demonstration application provided
by this package.
-Dvapi=true
: Use this switch if Vala-0.56.14
is installed and you wish to build the Vala bindings provided by this
package.