]> andersk Git - zcommit.git/commitdiff
Added some documentation about zcommit
authorGreg Brockman <gdb@mit.edu>
Wed, 24 Mar 2010 00:18:29 +0000 (20:18 -0400)
committerGreg Brockman <gdb@mit.edu>
Wed, 24 Mar 2010 00:18:29 +0000 (20:18 -0400)
zcommit.py

index e56aedb259d864b1b0c8446910d382e264652005..18f8d4deda94cdf4583c70ebf216b445dca9b5dc 100755 (executable)
@@ -41,7 +41,36 @@ class Application(object):
     @cherrypy.expose
     def index(self):
         logger.debug('Hello world app reached')
-        return 'Hello world!'
+        return """
+<p> <i>Welcome to zcommit.</i> </p>
+
+<p> zcommit allows you to send zephyr notifications by sending an HTTP
+POST request to a URL.  Currently zcommit supports POST-backs from
+github.  If you would like it to support another form of POST-back,
+please let us know (zcommit@mit.edu). </p>
+
+<h1> URL structure </h1>
+
+The URL you post to is structured as follows:
+<tt>http://zcommit.mit.edu/$type/$key1/$value1/$key2/$value2/...</tt>.
+So for example, the URL
+<tt>http://zcommit.mit.edu/github/class/zcommit/instance/commit</tt>
+is parsed as having type <tt>github</tt>, class <tt>zcommit</tt>, and
+instance <tt>commit</tt>.  Using this information, zcommit figures out
+how to form a useful message which is then sends as a zephyr.
+
+<h1> Github </h1>
+
+Set your POST-back URL to
+<tt>http://zcommit.mit.edu/github/class/$classname</tt>, followed by
+any of the following optional key/value parameters:
+
+<ul>
+<li> <tt>/instance/$instance</tt> </li>
+<li> <tt>/zsig/$zsig</tt> </li>
+<li> <tt>/sender/$sender</tt> </li>
+</ul>
+"""
 
     class Github(object):
         @cherrypy.expose
This page took 0.256107 seconds and 5 git commands to generate.