Report templates endpoint

A GET to /api/open/report_templates allows you to get a list of all the report templates.

Requirements and Restrictions

  1. A user having the permission to execute api.
  2. The result contains the list of all the report templates.
  3. It's possible to use pagination adding page and count params
  4. The page param is the number of the page to return, the count is the dimension of the page.
  5. If count is nil or 0 the default value will be 100, if page is nil or 0 the request will not be paginated.
Figure 1. Example of reports all request

Example of reports all request

A GET to /api/open/report_templates/:id allows you to get the report template having the id passed as path parameter.

Requirements and Restrictions

  1. A user having the permission to execute api.
  2. As last parameter of the path you need to specify the id of the report template.
  3. The result will contain the report template.
  4. In case the report with that id is not found you'll get a 404.
Figure 2. Example of reports/:id request

Example of reports/:id request