drasi-project / drasi-platform

Apache License 2.0
997 stars 30 forks source link

Review result reaction #111

Open ruokun-niu opened 1 week ago

ruokun-niu commented 1 week ago

Description

The result reaction is used to retrieve the current result set, or the result set at a given timestamp.

To retrieve the current result set, send a GET request to the endpoint /{query_id}, where query_id is the query you are interested in.

For example:

curl -X GET "localhost:8080/hello-world-from"

To retrieve the result set at a given timestamp, send a GET request to the endpoint /{query_id}/{timestamp}, where query_id is the query you are interested in, and timestamp is the timestamp you are interested in. (This requires the retentionPolicy of the continuous query to be set to all or expire For example:

curl -X GET "localhost:8080/hello-world-from/123456789"

Sample output can be found here: https://gist.github.com/ruokun-niu/f5be829bdc6c82e332e99725c923a5e2

Type of change

Fixes: #issue_number