[Rt-commit] [svn] r938 - in RTx-Atom: . lib/RT
autrijus at pallas.eruditorum.org
autrijus at pallas.eruditorum.org
Fri May 21 14:22:12 EDT 2004
Author: autrijus
Date: Fri May 21 14:22:11 2004
New Revision: 938
Modified:
RTx-Atom/ (props changed)
RTx-Atom/lib/RT/Atom.pod
Log:
----------------------------------------------------------------------
r5140 at not: autrijus | 2004-05-21T18:21:51.731943Z
* Abhijit pointed out my typo.
----------------------------------------------------------------------
Modified: RTx-Atom/lib/RT/Atom.pod
==============================================================================
--- RTx-Atom/lib/RT/Atom.pod (original)
+++ RTx-Atom/lib/RT/Atom.pod Fri May 21 14:22:11 2004
@@ -109,14 +109,28 @@
</content>
</entry>
-Another one is a form post:
+Another one is a form post. Clients should use C<multipart/form-data>:
+
+ POST /Atom/0.3/Users
+ Content-type: multipart/form-data; boundary=---
+
+ ---
+ Content-Disposition: form-data; name="Name"
+
+ autrijus
+ ---
+ Content-Disposition: form-data; name="EmailAddress"
+
+ autrijus at example.com
+
+However, the server may also support C<application/x-www-form-urlencoded>:
POST /Atom/0.3/Users
Content-Type: application/x-www-form-urlencoded
- Name=autrijus&EmailAddress=autrijus at example.com
+ Name=autrijus&EmailAddress=autrijus%4dexample.com
-In both cases, the server will return:
+In all cases above, the server will return:
303 See Other
Location: /Atom/0.3/RT-Users/20
@@ -280,11 +294,13 @@
The MIME type for both operations is C<text/plain>, with a mandatory
extra newline at the end. For example:
- % lwp-request -m GET /Atom/0.3/RT-Tickets/15.Subject
+ % lwp-request -m GET .../Tickets/15.Status
new
- % echo resolved | lwp-request -m PUT /Atom/0.3/RT-Tickets/15.Subject
+ % echo resolved | lwp-request -m PUT .../Tickets/15.Status
resolved
+The C<...> above stands for something like C<http://example.com/Atom/0.3/>.
+
=head1 OPERATIONS
Here is a list of all operations supported by this API, including their
More information about the Rt-commit
mailing list