|
► Read Project curl –H 'X-api_key: {value}' http://companyid.seasoo.net/api/Project/105 -> Return one JSON object of project. ► Query Project curl –H 'X-api_key: {value}' http://companyid.seasoo.net/api/Project?name.matches(".*mo.*") -> Return array of JSON object of project, its name contains "mo" word. name is filter-parameter. Following filter-parameters are supported:
► Insert Project POST/PUT http://companyid.seasoo.net/api/Project with api_key and following request body: {"name":"Migration project", "description":"some description", "rate":30.75, "currency":"EUR", "clientId":28 } -> Response has http status code = 201 if successfully. Otherwise it returns status code 500. ► Update Project Like insert project, only URL is different: POST/PUT http://companyid.seasoo.net/api/Project/{id} with request body is JSON content of project. ► Delete Project DELETE http://companyid.seasoo.net/api/Project/{id} -> Response has status code = 204 in case of success and 404 in case of not success. |