cvs: peardoc / global.ent /en/core rest.xml /en/core/rest directorystructure.xml history.xml /en/core/rest/fileformats
c-category-packagesinfoxml.xml p-package-infoxml.xml r-package-012xml.xml r-package-allreleases2xml.xml r-package-allreleasesxml.xml
r-package-v2012xml.xml

From: Date: Fri, 22 Feb 2008 22:07:34 +0000
Subject: cvs: peardoc / global.ent /en/core rest.xml /en/core/rest directorystructure.xml history.xml /en/core/rest/fileformats
c-category-packagesinfoxml.xml p-package-infoxml.xml r-package-012xml.xml r-package-allreleases2xml.xml r-package-allreleasesxml.xml
r-package-v2012xml.xml
Groups: php.pear.doc 
Request: Send a blank email to pear-doc+get-10527@lists.php.net to get a copy of this message
cweiske Fri Feb 22 22:07:34 2008 UTC Modified files: /peardoc global.ent /peardoc/en/core rest.xml /peardoc/en/core/rest directorystructure.xml history.xml /peardoc/en/core/rest/fileformats c-category-packagesinfoxml.xml p-package-infoxml.xml r-package-012xml.xml r-package-allreleases2xml.xml r-package-allreleasesxml.xml r-package-v2012xml.xml Log: Add use cases and nearly complete REST docs.

http://cvs.php.net/viewvc.cgi/peardoc/global.ent?r1=1.94&r2=1.95&diff_format=u Index: peardoc/global.ent diff -u peardoc/global.ent:1.94 peardoc/global.ent:1.95 --- peardoc/global.ent:1.94 Tue Jan 15 19:09:17 2008 +++ peardoc/global.ent Fri Feb 22 22:07:34 2008 @@ -1,6 +1,6 @@ <!-- -*- SGML -*- - $Id: global.ent,v 1.94 2008/01/15 19:09:17 farell Exp $ + $Id: global.ent,v 1.95 2008/02/22 22:07:34 cweiske Exp $ Contains global "macros" for all the XML documents. @@ -122,6 +122,7 @@ <!ENTITY url.phpform 'http://sourceforge.net/projects/phpform-ext/'> <!ENTITY url.phpunit 'http://phpunit.de/'> <!ENTITY url.phpunit.get 'http://pear.phpunit.de/get/'> +<!ENTITY url.rest.chanservongooglecode 'http://docs.google.com/Present?docid=dgstxrxv_6f48xbz'> <!ENTITY url.rss.info 'http://tech.groups.yahoo.com/group/rss-dev/files/specification.html'> <!ENTITY url.sourceforge 'http://sourceforge.net/'> <!ENTITY url.subversion 'http://subversion.tigris.org/'> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/core/rest.xml diff -u peardoc/en/core/rest.xml:1.1 peardoc/en/core/rest.xml:1.2 --- peardoc/en/core/rest.xml:1.1 Mon Feb 18 20:34:04 2008 +++ peardoc/en/core/rest.xml Fri Feb 22 22:07:34 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <chapter id="core.rest"> <title>PEAR channel server REST interface</title> @@ -15,6 +15,26 @@ &core.rest.directorystructure; &core.rest.fileformats; &core.rest.history; + &core.rest.usecases; + + <!-- FIXME: faq +- how do I find the latest version of a package? (incl. stable/beta/..) +- where do I get the download URL from? +- URL calculation +- can a package have multiple categories? + +<bbieber> cweiske: the only thing I can think of off-hand is omission of the /get/ directories - and including both .tar/.tgz (are both necessary anymore?) +<cweiske> i think they are +<cweiske> since you need to decide if you can work with compression or not +<cweiske> if you got no gzip lib, you need the tar only +<cweiske> otherwise you can save bandwith and load the gz +<bbieber> slide 16 has some info on the archive file... which could have the info. +<bbieber> cweiske: ah yes. +<cweiske> btw, I found no docs where the /get/ dirs are located +<cweiske> they are referenced in the package xyz info +<cweiske> but nothing more + --> + </chapter> <!-- Keep this comment at the end of the file Local variables: http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/directorystructure.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/core/rest/directorystructure.xml diff -u peardoc/en/core/rest/directorystructure.xml:1.3 peardoc/en/core/rest/directorystructure.xml:1.4 --- peardoc/en/core/rest/directorystructure.xml:1.3 Thu Feb 21 13:40:07 2008 +++ peardoc/en/core/rest/directorystructure.xml Fri Feb 22 22:07:34 2008 @@ -1,18 +1,28 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.3 $ --> -<!-- $Id: directorystructure.xml,v 1.3 2008/02/21 13:40:07 cweiske Exp $ --> +<!-- $Revision: 1.4 $ --> +<!-- $Id: directorystructure.xml,v 1.4 2008/02/22 22:07:34 cweiske Exp $ --> <sect1 id="core.rest.directorystructure"> <title>Directory structure</title> - <titleabbrev>Which files a channel server provides</titleabbrev> - <para>A REST channel server simply delivers files in a certain directory - structure. The content of those files is static. Their location is relative - to the URLs given in the <filename>channel.xml</filename> - <literal>baseurl</literal> tags.</para> - - <para>The following table lists all known files, a tiny description as well - as the version they appeared in first.</para> + <para> + A REST channel server simply delivers files in a certain directory + structure. The content of those files is static. Their location is relative + to the URLs given in the <filename>channel.xml</filename> + <literal>baseurl</literal> tags. + </para> + + <note> + <para> + All files are static - you do <emphasis>not</emphasis> need a scripting + language installed on your server. + </para> + </note> + + <para> + The following table lists all known files, a tiny description as well + as the version they appeared in first. + </para> <table> <title>Directory- and file structure</title> @@ -316,7 +326,7 @@ <entry><filename><link linkend="core.rest.fileformats.r-package-allreleases2xml">allreleases2.xml</link></filename></entry> - <entry>FIXME</entry> + <entry>List of all releases including minimum PHP version</entry> <entry>1.3</entry> </row> @@ -394,7 +404,7 @@ <entry><link linkend="core.rest.fileformats.r-package-012xml"><filename>0.1.2.xml</filename></link></entry> - <entry>Package info for version 0.1.2</entry> + <entry>Short package info for version 0.1.2</entry> <entry>1.0</entry> </row> @@ -407,9 +417,9 @@ <entry><link linkend="core.rest.fileformats.r-package-v2012xml"><filename>v2.0.1.2.xml</filename></link></entry> - <entry>FIXME</entry> + <entry>Short version of package.xml, version 2</entry> - <entry>FIXME</entry> + <entry>1.3</entry> </row> <row> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/history.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/core/rest/history.xml diff -u peardoc/en/core/rest/history.xml:1.2 peardoc/en/core/rest/history.xml:1.3 --- peardoc/en/core/rest/history.xml:1.2 Thu Feb 21 13:26:27 2008 +++ peardoc/en/core/rest/history.xml Fri Feb 22 22:07:34 2008 @@ -1,6 +1,6 @@ <?xml version="1.0" encoding="utf-8"?> -<!-- $Revision: 1.2 $ --> -<!-- $Id: history.xml,v 1.2 2008/02/21 13:26:27 cweiske Exp $ --> +<!-- $Revision: 1.3 $ --> +<!-- $Id: history.xml,v 1.3 2008/02/22 22:07:34 cweiske Exp $ --> <sect1 id="core.rest.history"> <title>REST version history</title> <titleabbrev>Changes between PEAR REST interface versions</titleabbrev> @@ -30,13 +30,27 @@ <itemizedlist> <listitem> - <para><filename>c/categories.xml</filename></para> + <para> + <link linkend="core.rest.fileformats.c-categoriesxml"> + <filename>c/categories.xml</filename> + </link> + </para> </listitem> + <listitem> - <para><filename>c/$categoryname/packagesinfo.xml</filename></para> + <para> + <link linkend="core.rest.fileformats.c-category-packagesinfoxml"> + <filename>c/$categoryname/packagesinfo.xml</filename> + </link> + </para> </listitem> + <listitem> - <para><filename>m/allmaintainers.xml</filename></para> + <para> + <link linkend="core.rest.fileformats.m-allmaintainersxml"> + <filename>m/allmaintainers.xml</filename> + </link> + </para> </listitem> </itemizedlist> </sect2> @@ -46,19 +60,16 @@ <title>REST 1.2</title> <para> - FIXME + Now the developer's roles are listed in the package's + maintainer list. </para> -<!-- -implement REST1.2 (maintainer role information in p/maintainers2.xml) -implement REST1.2, listing maintainer roles in REST ---> - <itemizedlist> <listitem> - <para><filename>p/maintainers2.xml</filename></para> - </listitem> - <listitem> - <para>FIXME</para> + <para> + <link linkend="core.rest.fileformats.p-package-maintainers2xml"> + <filename>p/${packagename}/maintainers2.xml</filename> + </link> + </para> </listitem> </itemizedlist> </sect2> @@ -68,29 +79,30 @@ <title>REST 1.3</title> <para> - FIXME -<!-- -http://cvs.php.net/viewvc.cgi/pear-core/PEAR/REST/13.php?view=log - add resolution of PHP dependency prior to download - -http://pear.php.net/bugs/bug.php?id=10197 - By adding php version dependency information to channel.xml (REST1.3), -it will be possible to maintain incompatible PHP versions of the same -package in parallel, avoiding the need to rename a package simply for -upgrading the minimum PHP version. - - -* implement Request #10197: add PHP version and API version to release REST ---> + This version makes it possible to resolve PHP version incompatibilities + by downloading the releases list only. + <filename>allreleases2.xml</filename> lists the minimum PHP version + for each package release, thus the package name does not need to be + changed when upgrading the package's minimun PHP version. </para> <itemizedlist> <listitem> - <para><filename>r/${packagename}/allreleases2.xml</filename></para> + <para> + <link linkend="core.rest.fileformats.r-package-allreleases2xml"> + <filename>r/${packagename}/allreleases2.xml</filename> + </link> + </para> </listitem> + <listitem> - <para>FIXME</para> + <para> + <link linkend="core.rest.fileformats.r-package-v2012xml"> + <filename>r/${packagename}/v2.0.1.2.xml</filename> + </link> + </para> </listitem> + </itemizedlist> </sect2> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml?r1=1.3&r2=1.4&diff_format=u Index: peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml diff -u peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml:1.3 peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml:1.4 --- peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml:1.3 Tue Feb 19 21:37:13 2008 +++ peardoc/en/core/rest/fileformats/c-category-packagesinfoxml.xml Fri Feb 22 22:07:34 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.3 $ --> +<!-- $Revision: 1.4 $ --> <sect2 id="core.rest.fileformats.c-category-packagesinfoxml"> <title>packagesinfo.xml</title> <synopsis>Extendet information about all packages</synopsis> @@ -33,6 +33,15 @@ </sect3> + <sect3 id="core.rest.fileformats.c-category-packagesinfoxml.usage"> + <title>Usage</title> + <para> + <!-- FIXME: check that --> + Provides "summary" information in the <command>list-all</command> commmand. + </para> + </sect3> + + <sect3 id="core.rest.fileformats.c-category-packagesinfoxml.example"> <title>Example</title> <programlisting role="xml"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/p-package-infoxml.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/core/rest/fileformats/p-package-infoxml.xml diff -u peardoc/en/core/rest/fileformats/p-package-infoxml.xml:1.1 peardoc/en/core/rest/fileformats/p-package-infoxml.xml:1.2 --- peardoc/en/core/rest/fileformats/p-package-infoxml.xml:1.1 Mon Feb 18 20:34:04 2008 +++ peardoc/en/core/rest/fileformats/p-package-infoxml.xml Fri Feb 22 22:07:34 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect2 id="core.rest.fileformats.p-package-infoxml"> <title>info.xml (package)</title> <synopsis>Information about a package</synopsis> @@ -24,6 +24,15 @@ </sect3> + <sect3 id="core.rest.fileformats.p-package-infoxml.usage"> + <title>Usage</title> + <para> + <command>remote-info</command> fetches this file and displays + its information. + </para> + </sect3> + + <sect3 id="core.rest.fileformats.p-package-infoxml.example"> <title>Example</title> <programlisting role="xml"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/r-package-012xml.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/core/rest/fileformats/r-package-012xml.xml diff -u peardoc/en/core/rest/fileformats/r-package-012xml.xml:1.1 peardoc/en/core/rest/fileformats/r-package-012xml.xml:1.2 --- peardoc/en/core/rest/fileformats/r-package-012xml.xml:1.1 Mon Feb 18 20:34:04 2008 +++ peardoc/en/core/rest/fileformats/r-package-012xml.xml Fri Feb 22 22:07:34 2008 @@ -1,18 +1,24 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect2 id="core.rest.fileformats.r-package-012xml"> - <title>package-0.1.2.xml</title> - <synopsis>FIXME</synopsis> + <title>0.1.2.xml (release)</title> + <synopsis>Short xml file about the release</synopsis> <para> - FIXME + This file is a special size-optimized version of + the full <filename>package.xml</filename> with only necessary information. + </para> + + <para> + As in <filename>package.xml</filename>, the tag order is important + and may not be shuffled. </para> <sect3 id="core.rest.fileformats.r-package-012xml.location"> <title>Location</title> <para> - <filename>r/${packagename}/package.0.1.2.xml</filename> + <filename>r/${packagename}/0.1.2.xml</filename> </para> <note> <para> @@ -24,9 +30,123 @@ <sect3 id="core.rest.fileformats.r-package-012xml.example"> <title>Example</title> - <programlisting role="xml"><![CDATA[ + <programlisting role="xml"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> +<r xmlns="http://pear.php.net/dtd/rest.release" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xlink="http://www.w3.org/1999/xlink" + xsi:schemaLocation="http://pear.php.net/dtd/rest.release + http://pear.php.net/dtd/rest.release.xsd" +> + <p xlink:href="/rest/p/worlddominator">WorldDominator</p> + <c>pear.example.org</c> + <v>0.1.2</v> + <st>beta</st> + <l>Dictatoric License</l> + <m>thebrain</m> + <s>Tool to dominate the world</s> + <d>Helps you dominating the world by fulfilling various tasks: + - Feed the cats + - Lock the doors after 23:42</d> + <da>2007-12-24 23:42:00</da> + <n>* Fix atomic X-mas bug [thebrain]</n> + <f>19588</f> + <g>http://pear.example/get/WorldDominator-0.1.2</g> + <x xlink:href="package.0.1.2.xml"/> +</r>]]></programlisting> + </sect3> + -]]></programlisting> + <sect3 id="core.rest.fileformats.r-package-012xml.tags"> + <title>Tags</title> + <table> + <title>Tag description</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Tag name</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + <row> + <entry><literal>&lt;p&gt;</literal></entry> + <entry> + Package name inclusive absolute path to the package directory + </entry> + </row> + + <row> + <entry><literal>&lt;c&gt;</literal></entry> + <entry>Channel server name</entry> + </row> + + <row> + <entry><literal>&lt;v&gt;</literal></entry> + <entry>Release version</entry> + </row> + + <row> + <entry><literal>&lt;st&gt;</literal></entry> + <entry> + Stability state + (e.g. <literal>stable</literal>, <literal>beta</literal> etc.) + </entry> + </row> + + <row> + <entry><literal>&lt;l&gt;</literal></entry> + <entry>License name</entry> + </row> + + <row> + <entry><literal>&lt;m&gt;</literal></entry> + <entry>Maintainer handle (FIXME: multiple, uploader?)</entry> + </row> + + <row> + <entry><literal>&lt;s&gt;</literal></entry> + <entry>Summary</entry> + </row> + + <row> + <entry><literal>&lt;d&gt;</literal></entry> + <entry>Description, multiline</entry> + </row> + + <row> + <entry><literal>&lt;da&gt;</literal></entry> + <entry>Date and time of release</entry> + </row> + + <row> + <entry><literal>&lt;n&gt;</literal></entry> + <entry>Release notes</entry> + </row> + + <row> + <entry><literal>&lt;f&gt;</literal></entry> + <entry>File size in bytes (FIXME: tar or tgz?)</entry> + </row> + + <row> + <entry><literal>&lt;g&gt;</literal></entry> + <entry>Full URL to the release archive</entry> + </row> + + <row> + <entry><literal>&lt;x&gt;</literal></entry> + <entry> + Link to the version's + <link linkend="core.rest.fileformats.r-package-package012xml"> + <filename>package.xml</filename> + </link> + file. + </entry> + </row> + + </tbody> + </tgroup> + </table> </sect3> </sect2> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml diff -u peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml:1.1 peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml:1.2 --- peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml:1.1 Mon Feb 18 20:34:04 2008 +++ peardoc/en/core/rest/fileformats/r-package-allreleases2xml.xml Fri Feb 22 22:07:34 2008 @@ -1,11 +1,12 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect2 id="core.rest.fileformats.r-package-allreleases2xml"> <title>allreleases2.xml</title> - <synopsis>FIXME</synopsis> + <synopsis>List of all package versions with PHP version</synopsis> <para> - FIXME + Same as <filename>allreleases.xml</filename>, but with information + about the minimum version of PHP required. </para> @@ -24,9 +25,18 @@ <sect3 id="core.rest.fileformats.r-package-allreleases2xml.example"> <title>Example</title> - <programlisting role="xml"><![CDATA[ - -]]></programlisting> + <programlisting role="xml"><![CDATA[<?xml version="1.0" encoding="utf-8" ?> +<a xmlns="http://pear.php.net/dtd/rest.allreleases2" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xmlns:xlink="http://www.w3.org/1999/xlink" + xsi:schemaLocation="http://pear.php.net/dtd/rest.allreleases2 + http://pear.php.net/dtd/rest.allreleases2.xsd" +> + <p>WorldDominator</p> + <c>pear.example.org</c> + <r><v>0.8.1</v><s>beta</s><m>4.4.2</m></r> + <r><v>0.0.2</v><s>alpha</s><m>5.2.3</m></r> +</a>]]></programlisting> </sect3> </sect2> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml?r1=1.1&r2=1.2&diff_format=u Index: peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml diff -u peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml:1.1 peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml:1.2 --- peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml:1.1 Mon Feb 18 20:34:04 2008 +++ peardoc/en/core/rest/fileformats/r-package-allreleasesxml.xml Fri Feb 22 22:07:34 2008 @@ -1,5 +1,5 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.1 $ --> +<!-- $Revision: 1.2 $ --> <sect2 id="core.rest.fileformats.r-package-allreleasesxml"> <title>allreleases.xml</title> <synopsis>List of all package versions</synopsis> @@ -9,6 +9,9 @@ its stability. </para> + <para> + Releases in this file are ordered, the latest version has to be first. + </para> <sect3 id="core.rest.fileformats.r-package-allreleasesxml.location"> <title>Location</title> http://cvs.php.net/viewvc.cgi/peardoc/en/core/rest/fileformats/r-package-v2012xml.xml?r1=1.2&r2=1.3&diff_format=u Index: peardoc/en/core/rest/fileformats/r-package-v2012xml.xml diff -u peardoc/en/core/rest/fileformats/r-package-v2012xml.xml:1.2 peardoc/en/core/rest/fileformats/r-package-v2012xml.xml:1.3 --- peardoc/en/core/rest/fileformats/r-package-v2012xml.xml:1.2 Tue Feb 19 21:37:13 2008 +++ peardoc/en/core/rest/fileformats/r-package-v2012xml.xml Fri Feb 22 22:07:34 2008 @@ -1,11 +1,15 @@ <?xml version="1.0" encoding="UTF-8"?> -<!-- $Revision: 1.2 $ --> +<!-- $Revision: 1.3 $ --> <sect2 id="core.rest.fileformats.r-package-v2012xml"> <title>v2.0.1.2.xml</title> - <synopsis>Special short xml file about the release</synopsis> + <synopsis>Short xml file about the release, version 2</synopsis> <para> - FIXME: what it's good for, what the tags mean + Same as + <link linkend="core.rest.fileformats.r-package-012xml"> + <filename>0.1.2.xml</filename> + </link>, + but with additional API and minimum PHP version. </para> @@ -51,6 +55,40 @@ </r>]]></programlisting> </sect3> + + <sect3 id="core.rest.fileformats.r-package-v2012xml.tags"> + <title>Tags</title> + + <para> + New tags compared to <filename>0.1.2.xml</filename>. + </para> + + <table> + <title>Tag description</title> + <tgroup cols="2"> + <thead> + <row> + <entry>Tag name</entry> + <entry>Description</entry> + </row> + </thead> + <tbody> + + <row> + <entry><literal>&lt;a&gt;</literal></entry> + <entry>API version</entry> + </row> + + <row> + <entry><literal>&lt;mp&gt;</literal></entry> + <entry>Minimum PHP version</entry> + </row> + + </tbody> + </tgroup> + </table> + </sect3> + </sect2> <!-- Keep this comment at the end of the file Local variables:
« previous php.pear.doc (#10527) next »