The Spring 2012 season of CACAO has started!

Help:Web Services

From GONUTS
Jump to: navigation, search

GONUTS web services are designed to help monitor the content of GONUTS without having to log in

Contents

Recent changes RSS feed

GONUTS has the standard mediawiki Recent Changes rss and atom feeds. How useful these are is not clear.

is_edited.php

The is_edited service allows remote sites to monitor whether a page on the wiki has been revised by a user. It excludes bot edits.

parameters

A valid query uses either id or page. The date parameter is optional.

examples

Query a GO id

http://gowiki.tamu.edu/rest/is_edited.php?id=GO:0000332&date=20080301

Returns <xml><?xml version="1.0" encoding="UTF-8"?>

<message status="ok" description="normal">
   <metadata>
      <provider_name>GONUTS</provider_name>
      <service_name>wiki_revisions</service_name>
      <query>id=GO:0000332</query>
      <elapsed_time>0.18</elapsed_time>
  </metadata>
  <revision_data>
       <url>http://gowiki.tamu.edu/wiki/index.php/GO:0000332_!_template_for_synthesis_of_G-rich_strand_of_telomere_DNA_activity</url>
       <page_title>GO:0000332_!_template_for_synthesis_of_G-rich_strand_of_telomere_DNA_activity</page_title>
       <revisions>
           <total>9</total>
           <after>
                  <date>20080301</date> 
                  <count>8</count>
           </after>
       </revisions>
  </revision_data>
</message></xml>

Query a group of pages

http://gowiki.tamu.edu/rest/is_edited.php?page=SGD:GCN%

Returns: <xml><?xml version="1.0" encoding="UTF-8"?> <message status="ok" description="normal">

    <metadata>
         <provider_name>GONUTS</provider_name>
         <service_name>wiki_revisions</service_name>
         <query>page=SGD:GCN%</query>
         <elapsed_time>0.38</elapsed_time>
    </metadata>
    <revision_data>
         <url>http://gowiki.tamu.edu/wiki/index.php/SGD:GCN1</url>
         <page_title>SGD:GCN1</page_title>
         <revisions>
              <total>0</total>
              <after>
                   <date></date>
                   <count>0</count>
              </after>
         </revisions>
    </revision_data>

... more records...

    <revision_data>
         <url>http://gowiki.tamu.edu/wiki/index.php/SGD:GCN5</url>
         <page_title>SGD:GCN5</page_title>
         <revisions>
              <total>0</total>
              <after>
                   <date></date>
                   <count>0</count>
              </after>
         </revisions>
    </revision_data>

</message></xml>

Personal tools
Namespaces
Variants
Actions
Navigation
Cacao
Journal Clubs
page contributors
Toolbox