2016-07-01 07:40:40 +08:00
|
|
|
<?xml version="1.0" encoding="ISO-8859-1"?>
|
|
|
|
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
|
|
|
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
|
|
|
<!ENTITY % general-entities SYSTEM "../../general.ent">
|
|
|
|
%general-entities;
|
|
|
|
|
|
|
|
<!ENTITY rest-download-http "&gnome-download-http;/rest/0.8/rest-&rest-version;.tar.xz">
|
|
|
|
<!ENTITY rest-download-ftp "&gnome-download-ftp;/rest/0.8/rest-&rest-version;.tar.xz">
|
2017-10-23 11:53:25 +08:00
|
|
|
<!ENTITY rest-md5sum "ece4547298a81105f307369d73c21b9d">
|
|
|
|
<!ENTITY rest-size "332 KB">
|
2018-08-18 07:59:52 +08:00
|
|
|
<!ENTITY rest-buildsize "12.5 MB (with tests)">
|
|
|
|
<!ENTITY rest-time "0.2 SBU (with tests)">
|
2016-07-01 07:40:40 +08:00
|
|
|
]>
|
|
|
|
|
2019-06-28 04:55:17 +08:00
|
|
|
<sect1 id="rest" xreflabel="rest-&rest-version;">
|
2016-07-01 07:40:40 +08:00
|
|
|
<?dbhtml filename="rest.html"?>
|
|
|
|
|
|
|
|
<sect1info>
|
|
|
|
<date>$Date$</date>
|
|
|
|
</sect1info>
|
|
|
|
|
|
|
|
<title>rest-&rest-version;</title>
|
|
|
|
|
|
|
|
<indexterm zone="rest">
|
|
|
|
<primary sortas="a-rest">rest</primary>
|
|
|
|
</indexterm>
|
|
|
|
|
|
|
|
<sect2 role="package">
|
|
|
|
<title>Introduction to rest</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The <application>rest</application> 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.
|
|
|
|
</para>
|
|
|
|
|
2021-02-23 14:41:44 +08:00
|
|
|
&lfs101_checked;
|
2016-07-01 07:40:40 +08:00
|
|
|
|
|
|
|
<bridgehead renderas="sect3">Package Information</bridgehead>
|
|
|
|
<itemizedlist spacing="compact">
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (HTTP): <ulink url="&rest-download-http;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download (FTP): <ulink url="&rest-download-ftp;"/>
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download MD5 sum: &rest-md5sum;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Download size: &rest-size;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated disk space required: &rest-buildsize;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
|
|
|
Estimated build time: &rest-time;
|
|
|
|
</para>
|
|
|
|
</listitem>
|
|
|
|
</itemizedlist>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect3">rest Dependencies</bridgehead>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Required</bridgehead>
|
|
|
|
<para role="required">
|
2018-02-25 07:05:35 +08:00
|
|
|
<xref linkend="make-ca"/> and
|
2016-07-01 07:40:40 +08:00
|
|
|
<xref linkend="libsoup"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Recommended</bridgehead>
|
|
|
|
<para role="recommended">
|
|
|
|
<xref linkend="gobject-introspection"/>
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<bridgehead renderas="sect4">Optional</bridgehead>
|
|
|
|
<para role="optional">
|
2016-09-23 12:15:38 +08:00
|
|
|
<xref linkend="gtk-doc"/> and
|
|
|
|
<ulink url="http://ltp.sourceforge.net/coverage/lcov.php">LCOV</ulink>
|
2016-07-01 07:40:40 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para condition="html" role="usernotes">User Notes:
|
|
|
|
<ulink url="&blfs-wiki;/rest"/>
|
|
|
|
</para>
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
<sect2 role="installation">
|
|
|
|
<title>Installation of rest</title>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Install <application>rest</application> by running the following
|
|
|
|
commands:
|
|
|
|
</para>
|
|
|
|
|
2016-12-17 14:42:45 +08:00
|
|
|
<screen><userinput>./configure --prefix=/usr \
|
2018-12-02 10:50:58 +08:00
|
|
|
--with-ca-certificates=/etc/pki/tls/certs/ca-bundle.crt &&
|
2016-07-01 07:40:40 +08:00
|
|
|
make</userinput></screen>
|
|
|
|
|
|
|
|
<para>
|
2016-09-23 12:15:38 +08:00
|
|
|
To test the results, issue: <command>make check</command>.
|
2019-02-17 06:03:30 +08:00
|
|
|
The flickr test will fail due to Public API changes on their site.
|
2019-08-20 13:59:27 +08:00
|
|
|
The OAuth tests will fail because the website that it uses to test
|
|
|
|
connectivity via OAuth no longer exists.
|
2016-07-01 07:40:40 +08:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<screen role="root"><userinput>make install</userinput></screen>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
2016-07-23 05:00:54 +08:00
|
|
|
<sect2 role="commands">
|
|
|
|
<title>Command Explanations</title>
|
|
|
|
|
2016-10-29 17:56:12 +08:00
|
|
|
<para>
|
2018-12-02 10:50:58 +08:00
|
|
|
<parameter>--with-ca-certificates=/etc/pki/tls/certs/ca-bundle.crt</parameter>:
|
|
|
|
This switch sets the location of the BLFS certificate authority bundle.
|
2016-10-29 17:56:12 +08:00
|
|
|
</para>
|
|
|
|
|
2016-09-23 12:15:38 +08:00
|
|
|
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
|
|
|
href="../../xincludes/gtk-doc-rebuild.xml"/>
|
|
|
|
|
2016-07-23 05:00:54 +08:00
|
|
|
</sect2>
|
|
|
|
|
2016-07-01 07:40:40 +08:00
|
|
|
<sect2 role="content">
|
|
|
|
<title>Contents</title>
|
|
|
|
|
|
|
|
<segmentedlist>
|
|
|
|
<segtitle>Installed Programs</segtitle>
|
|
|
|
<segtitle>Installed Libraries</segtitle>
|
|
|
|
<segtitle>Installed Directories</segtitle>
|
|
|
|
|
|
|
|
<seglistitem>
|
|
|
|
<seg>
|
|
|
|
None
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
librest-0.7.so and librest-extras-0.7.so
|
|
|
|
</seg>
|
|
|
|
<seg>
|
|
|
|
/usr/include/rest-0.7 and
|
|
|
|
/usr/share/gtk-doc/html/rest-0.7
|
|
|
|
</seg>
|
|
|
|
</seglistitem>
|
|
|
|
</segmentedlist>
|
|
|
|
|
|
|
|
<variablelist>
|
|
|
|
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
|
|
|
<?dbfo list-presentation="list"?>
|
|
|
|
<?dbhtml list-presentation="table"?>
|
|
|
|
|
|
|
|
<varlistentry id="librest-0.7">
|
|
|
|
<term><filename class="libraryfile">librest-0.7.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains the RESTful Web API Query functions
|
2016-07-01 07:40:40 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="rest librest-0.7">
|
|
|
|
<primary sortas="c-librest-0.7">librest-0.7.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry id="librest-extras-0.7">
|
|
|
|
<term><filename class="libraryfile">librest-extras-0.7.so</filename></term>
|
|
|
|
<listitem>
|
|
|
|
<para>
|
2021-02-19 23:20:16 +08:00
|
|
|
contains extra RESTful Web API Query functions
|
2016-07-01 07:40:40 +08:00
|
|
|
</para>
|
|
|
|
<indexterm zone="rest librest-extras-0.7">
|
|
|
|
<primary sortas="c-librest-extras-0.7">librest-extras-0.7.so</primary>
|
|
|
|
</indexterm>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
|
|
|
|
|
|
|
</sect2>
|
|
|
|
|
|
|
|
</sect1>
|