Tracker TruthMeter RESTful API Design
Summary | HTTP Request Type | Endpoint | Request Body
| Description | Sample Response Body |
---|---|---|---|---|---|
Get the Truth for a list of datasets | POST | v1/truth-meter | Object with two lists--datasets and streams--of EntityName (String) as fields. { "datasets": ["ds1", "ds2", "ds3", "ds4"], "streams": ["strm1", "strm2", "strm3", "strm4"] }
| entity-type
Note: Can't get truth-values for both datasets and streams in a single request
| Object with two maps datasets and streams. Map key is EntityName and value is the score for the entity. { "datasets": [ {"ds1", 80}, {"ds2", 90}, {"ds3", 70}, {"ds4", 90} ], "streams": [ {"strm1", 80}, {"strm2", 90}, {"strm3", 70}, {"strm4", 90} ] } |