GET /v2/dashes/graph(/on/:field(/by/:interval))
Return grouped temporal data on dashes
Count all occurences on a particular field (default on created_at) by a particular period, starting from the first occurence to now.
settings Params
| Param name | Description |
|---|---|
| field |
optional
. Must be one of: created_at, updated_at.
The date field to graph on. Default to |
| interval |
optional
. Must be one of: day, week, month, quarter, year, hour_of_day, day_of_week, day_of_month, month_of_year.
The interval to graph by. Default to |
| sort |
optional
. Must be one of: id, name, description, cursus_id, skill_id, nbr_xp, slug, begin_at, duration, created_at, updated_at, campus_id.
The sort field. Sorted by id desc by default. MoreExample:To sort on dashes on the fields updated_at on a descending order and campus_id on a ascending order: ...&sort=-updated_at,campus_id |
| filter |
optional
. Must be one of: id, name, description, cursus_id, skill_id, nbr_xp, slug, begin_at, duration, created_at, updated_at, campus_id, future.
Filtering on one or more fields MoreExample:
To filter on dashes with the
...&filter[id]=a_value,another_value Filterable fields:
|
| range |
optional
. Must be one of: id, name, description, cursus_id, skill_id, nbr_xp, slug, begin_at, duration, created_at, updated_at, campus_id.
Select on a particular range MoreExample:
To range on dashes with the
...&range[campus_id]=min_value,max_value Rangeable fields:
|