Anhang | API Communication with Controller (Version 0.7.1)
A 3.5
A 3.5.1
- Collections (arrays and lists) can be queried with GET.
- Optional: Some collections allow POST requests to create additional collection elements.
- Optional: Some collections support deletion of elements.
- Individual entries can be queried via GET.
- Optional: Some types of entries can be modified with PUT requests.
- Optional: Some types of entries can be deleted with DELETE requests.
- All properties of GET requests for collections also apply for their POST requests.
- All properties of GET requests for entries also apply for their PUT requests.
colorSENSOR CFO
API
General
Filtering operations using defined attributes as query parameters are possible.
If required, attributes for the new collection entries deviating from their standard values can be overwrit-
ten using query parameters.
Errors when creating objects are signaled with the HTTP status code 400 (Bad Request).
The collection is emptied when a filter is not specified.
Filter rules correspond to those of GET Requests for this collection.
A DELETE request is always successful, regardless of the number of objects actually deleted.
Typically the path corresponds to the following scheme: /COLLECTION_PATH/UNIQUE_ID.
Requests for IDs not present are acknowledged by the HTTP status code 404 (Not Found).
Filtering operations using defined attributes as query parameters are possible.
The data set to be changed is transferred as a JSON data set in the body of the request.
Attributes missing in the data set remain unchanged.
The values for read-only attributes must not differ from the previous state - otherwise an HTTP status
code 400 (Bad Request) is returned.
As a matter of principle it is not possible to change the unique ID for an entry (typically the key uuid).
A successful request is acknowledged with the new entry state in the body of the response.
Page 97
Need help?
Do you have a question about the colorSENSOR CFO Series and is the answer not in the manual?
Questions and answers