summaryrefslogtreecommitdiff
path: root/README
blob: 9eb993ff0e85ec9c32863e0f6f6412db6a5047d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
OpenTox Task
============

* An OpenTox REST Webservice (http://www.opentox.org)
* Does _not_ comply to the (incomplete) OpenTox API

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
Complete a  task            PUT     /{id}/completed   resource={resource_uri} -                                     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.