Reports endpoint
A GET to /api/open/reports
allows you to get a list of all the
reports generated.
Requirements and Restrictions
- A user having the permission to execute api.
- The result contains the list of all the reports.
- It's possible to use pagination adding
page
andcount
params - The
page
param is the number of the page to return, thecount
is the dimension of the page. - If count is nil or 0 the default value will be 100, if page is nil or 0 the request will not be paginated.
- You can filter the result passing a
template_name
as query param having value the report templates name you want filtering on.
A GET to /api/open/reports/:id
allows you to get the report having
the id passed as path parameter.
Requirements and Restrictions
- A user having the permission to execute api.
- As last parameter of the path you need to specify the id of the report.
- The result will contain the report.
- In case the report with that id is not found you'll get a 404.
A GET to /api/open/reports/:id/files
allows you to download the
report having the id passed as path parameter.
Requirements and Restrictions
- A user having the permission to execute api.
- As middle parameter of the path you need to specify the id of the report.
- The report download will be triggered.
- In case the report with that id is not found you'll get a 404.
A POST to /api/open/reports
allows you to create a new report.
Requirements and Restrictions
- A user having the permission to execute api.
- You need to pass as query param the
report_template_id
you want to create. - In case the request is well formed return a 202 response with the id of the job is taking care of teh request.
A GET to api/open/reports/jobs/1/status
allows you to get the create
report job result.
Requirements and Restrictions
- A user having the permission to execute api.
- As parameter of the path you need to specify the id of the job.
- The result will contain the job status