Skip to content
This repository has been archived by the owner on Mar 14, 2024. It is now read-only.

Commit

Permalink
possible flow
Browse files Browse the repository at this point in the history
  • Loading branch information
sleidig authored Feb 7, 2024
1 parent 17bd196 commit f45680e
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,4 +54,11 @@ This returns a JWT access token required to provided as Bearer Token for any req
2. Request the all available reports: `GET /reports` (see OpenAPI specs for details)
3. Trigger the calculation of a reports data: `POST /report-calculation/<report-id>`
4. Get status of the report calculation: `GET /report-calculation/<calculation-id>`
5. Once the status shows the calculation is completed, get the actual result data: `GET /report-calculation/<calculation-id>/data`
5. Once the status shows the calculation is completed, get the actual result data: `GET /report-calculation/<calculation-id>/data`


## Subscribe to continous changes of a report
1. Create an initial webhook (if not already registered): `POST /webhook`
2. Register for events of the selected report: `POST /webhook/<your-webhook-id>/events/NEW_REPORT_DATA_AVAILABLE/<report-id>`
3. You will receive Event objects to your webhook
4. Use the report-calculation-id in the event to fetch actual data from /report-calculation endpoint

0 comments on commit f45680e

Please sign in to comment.