Skip to content

Commit 076a624

Browse files
committed
docs: generate API reference for 2.10.3
1 parent 138e340 commit 076a624

68 files changed

Lines changed: 4955 additions & 327 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl '{backend_url}/admin/views/{entity}/columns' \
2+
-H 'Authorization: Bearer {access_token}'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl '{backend_url}/admin/views/{entity}/configurations' \
2+
-H 'Authorization: Bearer {access_token}'
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
curl -X POST '{backend_url}/admin/views/{entity}/configurations' \
2+
-H 'Authorization: Bearer {access_token}' \
3+
-H 'Content-Type: application/json' \
4+
-d '{
5+
"is_system_default": true,
6+
"name": "Custom View",
7+
}'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl '{backend_url}/admin/views/{entity}/configurations/active' \
2+
-H 'Authorization: Bearer {access_token}'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl -X POST '{backend_url}/admin/views/{entity}/configurations/active' \
2+
-H 'Authorization: Bearer {access_token}' \
3+
-H 'Content-Type: application/json' \
4+
--data-raw '{
5+
"view_configuration_id": "{value}"
6+
}'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl -X DELETE '{backend_url}/admin/views/{entity}/configurations/{id}' \
2+
-H 'Authorization: Bearer {access_token}'
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
curl '{backend_url}/admin/views/{entity}/configurations/{id}' \
2+
-H 'Authorization: Bearer {access_token}'
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
curl -X POST '{backend_url}/admin/views/{entity}/configurations/{id}' \
2+
-H 'Authorization: Bearer {access_token}' \
3+
-H 'Content-Type: application/json' \
4+
-d '{
5+
"is_system_default": true
6+
}'
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
type: object
2+
description: The details of a column in a view configuration.
3+
x-schemaName: AdminColumn
4+
required:
5+
- id
6+
- name
7+
- field
8+
- sortable
9+
- hideable
10+
- default_visible
11+
- data_type
12+
properties:
13+
id:
14+
type: string
15+
title: id
16+
description: The column's ID.
17+
name:
18+
type: string
19+
title: name
20+
description: The column's name. This is displayed in the view header.
21+
description:
22+
type: string
23+
title: description
24+
description: The column's description.
25+
field:
26+
type: string
27+
title: field
28+
description: The column's field in the entity.
29+
sortable:
30+
type: boolean
31+
title: sortable
32+
description: Whether the column is sortable.
33+
hideable:
34+
type: boolean
35+
title: hideable
36+
description: Whether the column is hideable.
37+
default_visible:
38+
type: boolean
39+
title: default_visible
40+
description: Whether the column is visible by default.
41+
data_type:
42+
type: string
43+
description: The data type of the column's value.
44+
enum:
45+
- string
46+
- number
47+
- boolean
48+
- object
49+
- date
50+
- currency
51+
- enum
52+
semantic_type:
53+
type: string
54+
title: semantic_type
55+
description: >-
56+
The column's semantic type. It can be `computed`, or other primitive
57+
types.
58+
context:
59+
type: string
60+
title: context
61+
description: The column's context. It can be `display` or `generic`.
62+
computed:
63+
type: object
64+
description: >-
65+
A computed column's details. Only available if the column's
66+
`semantic_type` is `computed`.
67+
required:
68+
- type
69+
- required_fields
70+
- optional_fields
71+
properties:
72+
type:
73+
type: string
74+
title: type
75+
description: The computed's type for rendering.
76+
required_fields:
77+
type: array
78+
description: The required fields in the computed column.
79+
items:
80+
type: string
81+
title: required_fields
82+
description: A required field in the computed column.
83+
optional_fields:
84+
type: array
85+
description: The optional fields in the computed column.
86+
items:
87+
type: string
88+
title: optional_fields
89+
description: An optional field in the computed column.
90+
relationship:
91+
type: object
92+
description: The relationship details. Only available for relationship columns.
93+
required:
94+
- entity
95+
- field
96+
properties:
97+
entity:
98+
type: string
99+
title: entity
100+
description: The related entity.
101+
field:
102+
type: string
103+
title: field
104+
description: The field in the related entity.
105+
default_order:
106+
type: number
107+
title: default_order
108+
description: The column's sort order in the default view configuration.
109+
category:
110+
type: string
111+
description: The column's category.
112+
enum:
113+
- status
114+
- metadata
115+
- identifier
116+
- timestamp
117+
- metric
118+
- relationship
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
type: object
2+
description: The details of a view configuration to create.
3+
x-schemaName: AdminCreateViewConfiguration
4+
properties:
5+
is_system_default:
6+
type: boolean
7+
title: is_system_default
8+
description: >-
9+
Whether the view is the system default. If so, it will be used as the
10+
default view for all users that don't have a custom active view set.
11+
set_active:
12+
type: boolean
13+
title: set_active
14+
description: Whether the view is set as active.
15+
configuration:
16+
type: object
17+
description: The view's configuration.
18+
required:
19+
- visible_columns
20+
- column_order
21+
properties:
22+
visible_columns:
23+
type: array
24+
description: The configuration's visible columns.
25+
items:
26+
type: string
27+
title: visible_columns
28+
description: The visible column's name.
29+
column_order:
30+
type: array
31+
description: The columns in the order they should be displayed.
32+
items:
33+
type: string
34+
title: column_order
35+
description: The column's name.
36+
search:
37+
type: string
38+
title: search
39+
description: The search query used in the view.
40+
column_widths:
41+
type: object
42+
description: The column widths in the view.
43+
filters:
44+
type: object
45+
description: The filters applied to the view.
46+
sorting:
47+
type: object
48+
description: The sorting applied to the view.
49+
required:
50+
- id
51+
- desc
52+
properties:
53+
id:
54+
type: string
55+
title: id
56+
description: The ID of the sorting column.
57+
desc:
58+
type: boolean
59+
title: desc
60+
description: Whether the sorting is descending.
61+
name:
62+
type: string
63+
title: name
64+
description: The view's name.

0 commit comments

Comments
 (0)