TaskResource Resource

GET /tasks

Response Codes
code condition
200 Task definitions returned
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom)

Example

Request
GET /tasks
Content-Type: */*
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

POST /tasks

Queues a task.

Request Body
media type data type description
application/xml string (XML) the SerialLongRunningTask which is to be created.
Response Codes
code condition
200 The notification was received.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the created SerialIssue.

Example

Request
POST /tasks
Content-Type: application/xml
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...
                
              

GET /tasks/{taskId}

Returns a task.

Request Parameters
name type description
taskId path a UUID holding the id for the task which is to be returned.
Response Codes
code condition
200 The task was returned.
500 An error occured.
Response Body
media type data type description
application/xml;charset=utf-8 (custom) the SerialTask which corresponds to the provided id.

Example

Request
GET /tasks/{taskId}
Content-Type: */*
Accept: application/xml;charset=utf-8

                
...
                
              
Response
HTTP/1.1 200 OK
Content-Type: application/xml;charset=utf-8

                
...