summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Helma <helma@in-silico.de>2010-02-01 19:09:39 +0100
committerChristoph Helma <helma@in-silico.de>2010-02-01 19:09:39 +0100
commit5ddaec2bc75ad2fe3830d0def940b34e38461baf (patch)
tree5261c68e96b8c683e7aba07ca869dcd9aab6751e
parent012e0913f1caf04721b281305dfeac60a19945ad (diff)
README updated
-rw-r--r--README8
1 files changed, 6 insertions, 2 deletions
diff --git a/README b/README
index f8320e8..9eb993f 100644
--- a/README
+++ b/README
@@ -8,13 +8,17 @@ REST operations:
Get a list of all tasks GET / - Task URIs 200
Get the status of a task GET /{id}/status - created|started|completed|cancelled 200,404
+Get the PID of a task GET /{id}/pid - Task PID 200,404
Create a new task POST / - Task URI 200
-Start a task PUT /{id}/started - - 200,404
+Start a task PUT /{id}/started "" - 200,404
Complete a task PUT /{id}/completed resource={resource_uri} - 200,404
-Cancel a task PUT /{id}/cancelled - - 200, 404
+Set the PID of a task PUT /{id}/pid pid={PID} - 200,404
+Cancel a task PUT /{id}/cancelled "" - 200, 404
Delete a task DELETE /{id} - - 200, 404
Delete all tasks DELETE / - - 200
+IMPORTANT NOTE: My framework does not accept empty PUT requests. Please send an empty parameter (e.g. with -d '' for curl) or you will receive a "411 Length Required" error.
+
More documentation: Source code (application.rb)
Copyright (c) 2009 Christoph Helma. See LICENSE for details.