[Rt-commit] [svn] r821 - in RTx-Atom: . html/Atom/0.3 lib/RTx

autrijus at pallas.eruditorum.org autrijus at pallas.eruditorum.org
Mon May 3 17:42:41 EDT 2004


Author: autrijus
Date: Mon May  3 17:42:40 2004
New Revision: 821

Modified:
   RTx-Atom/   (props changed)
   RTx-Atom/html/Atom/0.3/dhandler
   RTx-Atom/lib/RTx/Atom.pm
Log:
 ----------------------------------------------------------------------
 r4432 at not:  autrijus | 2004-05-03T19:46:31.867099Z
 
 * Even more syntax cleanups.
 ----------------------------------------------------------------------
 r4433 at not:  autrijus | 2004-05-03T21:42:17.929357Z
 
 * remove spurious slash and spurious typo.
 ----------------------------------------------------------------------


Modified: RTx-Atom/html/Atom/0.3/dhandler
==============================================================================
--- RTx-Atom/html/Atom/0.3/dhandler	(original)
+++ RTx-Atom/html/Atom/0.3/dhandler	Mon May  3 17:42:40 2004
@@ -174,7 +174,7 @@
     last;
 }
 
-my $BaseURI = "$RT::WebURL/Atom/0.3";
+my $BaseURI = $RT::WebURL."Atom/0.3";
 
 if (!$class and $type) {
     $map = $m->comp('Elements/Introspect', Want => 'RecordToCollection');

Modified: RTx-Atom/lib/RTx/Atom.pm
==============================================================================
--- RTx-Atom/lib/RTx/Atom.pm	(original)
+++ RTx-Atom/lib/RTx/Atom.pm	Mon May  3 17:42:40 2004
@@ -40,7 +40,7 @@
 
 =head2 The RT-Atom URI space
 
-XXX - Describe the principal of odd/even depth, verbs and adverbs here.
+XXX - Describe the principle of odd/even depth, verbs and adverbs here.
 
 Some example canonical URIs are:
 
@@ -113,14 +113,14 @@
     HEAD /Atom/0.3/Groups?query=HasMember%3D'root'&rows=all
 
 	200 OK
-	Location: /Atom/0.3/RT-Groups/(1,2,3,5,8,13)
+	Location: /Atom/0.3/RT-Groups/1,2,3,5,8,13
 
-    OPTIONS /Atom/0.3/RT-Groups/(1,2,3,5,8,13)!update
+    OPTIONS /Atom/0.3/RT-Groups/1,2,3,5,8,13
 
 	200 OK
 	...schema data...
 
-    POST /Atom/0.3/RT-Groups/(1,2,3,5,8,13)!update
+    POST /Atom/0.3/RT-Groups/1,2,3,5,8,13!update
     ...<Members><add href="rt-fsck.com://some-id"/></Members>...
 	
 	207 Multiple Status
@@ -135,23 +135,23 @@
 
 Search for objects within an container.
 
-Possible query parameters: rows, page, query, columns.
+Possible query parameters: I<rows>, I<page>, I<query>, I<columns>.
 
-If entries are found, the 'Location:' header is set to a URL pointing
+If entries are found, the C<Location> header is set to a URL pointing
 to the ResultSet.
 
     200: Success.  Body is the result serialized as an AtomFeed.
-    400: Request failed.  Body is error message in text/plain.
+    400: Request failed.  Body is the error message.
     404: There is no container matching the specified URI.
 
 =head2 Get - I<GET EditURI>
 
 Retrieve a representation of an object or property.
 
-Possible query parameters: expand
+Possible query parameters: I<expand>.
 
     200: Success.  Body is the serialized item.
-    400: Request failed.  Body is error message in text/plain.
+    400: Request failed.  Body is the error message.
     404: There is no object matching the specified URI.
 
 =head2 Put - I<PUT EditURI>
@@ -159,7 +159,7 @@
 Modifies an object or property with the serialization in the request body.
 
     200: Success.  Body is the serialized item again.
-    400: Request failed.  Body is error message in text/plain.
+    400: Request failed.  Body is the error message.
     404: There is no object matching the specified URI.
 
 Clients without I<PUT> support may use I<POST EditURI> instead.
@@ -168,8 +168,8 @@
 
 Remove the specified object.
 
-    200: Successfully deleted.  Body is success message in text/plain.
-    400: Request failed.  Body is error message in text/plain.
+    200: Successfully deleted.  Body is success message.
+    400: Request failed.  Body is the error message.
     404: There is no object matching the specified URI.
 
 Clients without I<DELETE> support may use I<POST EditURI> instead, with an
@@ -179,10 +179,10 @@
 
 On a container, returns the schema of objects acceptable by this container.
 
-On an object, returns the schema acceptable by the specified 'adverb'.
+On an object, returns the schema acceptable by the specified I<adverb>.
 
     200: Success.  Body is the requested schema.
-    400: Request failed.  Body is error message in text/plain.
+    400: Request failed.  Body is the error message.
     404: There is no container matching the specified URI.
 
 Clients without I<OPTIONS> support may use I<GET PostURI> instead.
@@ -191,17 +191,17 @@
 
 Create a new object from the AtomEntry in the request's body.
 
-    303: Created.  The 'Location:' header is set to the new object's
+    303: Created.  The 'Location' header is set to the new object's
          EditURI (for subsequent Get/Update).  Body is success message.
-    400: Request failed.  Body is error message.
+    400: Request failed.  Body is the error message.
     404: There is no container matching the specified URI.
 
 =head2 Update - I<POST PostURI> (Object)
 
-Updates an object, using an 'adverb' acceptable to that object's class.
+Updates an object, using an I<adverb> acceptable to that object's class.
 
     207: Updated.  Body is the status code and messages for each update.
-    400: Request failed.  Body is error message.
+    400: Request failed.  Body is the error message.
     404: The specific object is not found, or supports no such adverb.
 
 =cut


More information about the Rt-commit mailing list