Transformers
Test a transformer with input data
Changed onRuns a configured transformer (standard or custom, by id) with the given options against the provided input data, returning both the wrapped input and the transformed output. Used to test a north/history transformer with its configured options.
post/api/transformers/{transformerId}/test
Request
- Base URL: http://localhost:2223
- URL: http://localhost:2223/api/transformers/{transformerId}/test
- Auth: none required
Path parameters
transformerIdstring required
Request body
Example request
{
"inputData": "[{\"timestamp\":\"2024-01-01T00:00:00.000Z\",\"pointId\":\"sensor1\",\"value\":\"42.0\"}]",
"options": {
"precision": 2
}
}Response
The wrapped input and transformed output
Example response
{
"raw": {
"type": "time-values",
"content": [
{
"pointId": "point1",
"timestamp": "2023-10-31T12:34:56.789Z"
}
]
},
"transformed": {
"type": "time-values",
"content": [
{
"pointId": "point1",
"timestamp": "2023-10-31T12:34:56.789Z"
}
]
}
}Changes
- info
added to the
response propertyanyOflist for the response status - info
added to the
////response propertyanyOflist for the response status
- info
- info
removed from the
response propertyanyOflist for the response status - info
removed from the
////response propertyanyOflist for the response status
- info