|
► Read Client curl –H 'X-api_key: {value}' http://companyid.seasoo.net/api/Client/205 -> Return one JSON object of client. ► Query Clients curl –H 'X-api_key: {value}' http://companyid.seasoo.net/api/Client?organizationName.matches(".*ABC Company.*") -> Return array of JSON object of client, its organization name contains "ABC Company". organizationName is filter-parameter. Following filter-parameters are supported:
► Insert Client POST/PUT http://companyid.seasoo.net/api/Client with api_key and following request body: {"organizationName":"ABC Company", "postalAddress":"Römerstr 23 \n70794 Filderstadt", "contactPersons":[{"title":"Dr.","firstName":"Alex","lastName":"Vogt", "email":" This e-mail address is being protected from spambots. You need JavaScript enabled to view it "}, {"firstName":"Maria","lastName":"Schneider", "email":" This e-mail address is being protected from spambots. You need JavaScript enabled to view it "}] } -> Response has http status code = 201 if successfully. Otherwise it returns status code 500. Following field-names for contactPerson are supported:
► Update Client Like insert client, only URL is different: POST/PUT http://companyid.seasoo.net/api/Client/{id} with request body is content of client. ► Delete Client DELETE http://companyid.seasoo.net/api/Client/{id} -> Response has status code = 204 in case of success and 404 in case of not success. |