Charts

This chapter focuses on services for the charts.

get Get chart

A GET to /charts/{id} returns the chart with the given id.

Path parameters

Table 1. /api/rest/latest/charts/{id}
Parameter Description

id

the id of the chart

HTTP request

GET /api/rest/latest/charts/44 HTTP/1.1
Accept: application/json
Host: localhost:8080

Request parameters

Parameter Description

fields

which fields of the elements should be returned (optional)

HTTP response

HTTP/1.1 200 OK
Content-Type: application/json
Content-Length: 68

{
  "entity_type" : "CHART",
  "id" : 44,
  "name" : "First chart"
}

Response fields

Path Type Description

entity_type

String

the type of the entity

id

Number

the id of the chart

name

String

the name of the chart

Snippet links not found for operation::RestReportingControllerIT/get-chart

delete Delete charts

A DELETE to /charts/{ids} deletes one or several chart(s) with the given id(s).

Path parameters

Table 1. /api/rest/latest/charts/{ids}
Parameter Description

ids

the list of ids of the charts

HTTP request

DELETE /api/rest/latest/charts/169,189 HTTP/1.1
Content-Type: application/json
Accept: application/json
Host: localhost:8080