► Read Task

curl –H  'X-api_key: {value}'  http://companyid.seasoo.net/api/Task/105

-> Return one JSON object of task.

► Query Task

curl –H  'X-api_key: {value}'  http://companyid.seasoo.net/api/Task?name.matches(".*mo.*")

-> Return array of JSON object of task, its name contains  "mo" word.

name is filter-parameter. Following filter-parameters are supported:

Parameter

Type

Description

name

String

Name of task.

description

String

Description for task.

rate

Double

 

currency

String

ISO-currency code e.g. "EUR","USD"

► Insert Task

POST/PUT   http://companyid.seasoo.net/api/Task

with api_key and following request body:

{"name":"Java coding",

  "description":"programming with java language",

  "rate":30.75,

  "currency":"EUR",

  }

-> Response has http status code = 201 if successfully. Otherwise it returns status code 500.

►  Update Task

Like insert task, only URL is different:

POST/PUT http://companyid.seasoo.net/api/Task/{id}

with request body is JSON content of task.

► Delete Task

DELETE http://companyid.seasoo.net/api/Task/{id}

-> Response has status code = 204 in case of success and 404 in case of not success.