-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathquery.json
164 lines (164 loc) · 4.01 KB
/
query.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "The query definition",
"description": "The query definition",
"QueryDetails": {
"type": "object",
"description": "The page with content.",
"properties": {
"content": {
"description": "The rows of the page.",
"type": "array",
"items": {
"$ref": "#/ResultsetContent"
}
},
"totalRecords": {
"description": "The total number of records in this resultset.",
"type": "integer"
},
"queryId": {
"description": "ID of the query",
"type": "string",
"format": "UUID"
},
"fqlQuery": {
"description": "FQL query",
"type": "string"
},
"entityTypeId": {
"description": "ID of the entity type",
"type": "string",
"format": "UUID"
},
"fields": {
"description": "Fields to be included in query results",
"type": "array",
"items": {
"type": "string"
}
},
"status": {
"description": "Status of the resultset",
"type": "string",
"enum": ["IN_PROGRESS", "SUCCESS", "FAILED", "CANCELLED"]
},
"failureReason": {
"description": "Reason for query execution failure (if execution failed)",
"type": "string"
},
"startDate": {
"description": "Date and time when the query execution was started",
"type": "string",
"format": "date-time"
},
"endDate": {
"description": "Date and time when the query execution was completed",
"type": "string",
"format": "date-time"
},
"crossTenant": {
"description": "Indicates whether a query is cross-tenant",
"type": "boolean",
"default": false
}
},
"required": [
"entityTypeId",
"status",
"startDate",
"queryId",
"fqlQuery"
],
"additionalProperties": false
},
"ResultsetContent": {
"description": "The content row represented as a map.",
"type": "object",
"additionalProperties": {
"type": "object"
}
},
"QueryIdentifier": {
"description": "The identifier of the query.",
"type": "object",
"properties": {
"queryId": {
"$ref": "common.json#/UUID"
}
},
"additionalProperties": false
},
"SubmitQuery": {
"description": "Request to submit query",
"type": "object",
"properties": {
"fqlQuery": {
"type": "string"
},
"entityTypeId": {
"$ref": "common.json#/UUID"
},
"fields": {
"description": "Fields to be included in query results",
"type": "array",
"items": {
"type": "string"
}
},
"sortResults": {
"description": "Whether to sort results based on entity type's sort criteria",
"type": "boolean"
},
"maxSize": {
"description": "Maximum number of results to retrieve for the query",
"type": "integer"
}
},
"required": [
"entityTypeId",
"fqlQuery"
],
"additionalProperties": false
},
"ContentsRequest": {
"description": "Request for a set of contents",
"type": "object",
"properties": {
"entityTypeId": {
"$ref": "common.json#/UUID"
},
"fields": {
"description": "Fields to be included in results",
"type": "array",
"items": {
"type": "string"
}
},
"ids": {
"description": "Ids to retrieve results for",
"type": "array",
"items": {
"type": "array",
"items": {
"type": "string"
}
}
},
"localize": {
"description": "Whether to localize dates in content response",
"type": "boolean",
"default": false
},
"userId": {
"$ref": "common.json#/UUID"
}
},
"required": [
"entityTypeId",
"fields",
"ids"
],
"additionalProperties": false
}
}