Skip to content

Commit c968fff

Browse files
committed
Add example for twingraph/query endpoint
1 parent c3b7b19 commit c968fff

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

twingraph/src/main/openapi/twingraph.yaml

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,9 +112,15 @@ paths:
112112
application/json:
113113
schema:
114114
$ref: '#/components/schemas/TwinGraphQuery'
115+
examples:
116+
GetAllNodes:
117+
$ref: '#/components/examples/GetAllNodes'
115118
application/yaml:
116119
schema:
117120
$ref: '#/components/schemas/TwinGraphQuery'
121+
examples:
122+
GetAllNodes:
123+
$ref: '#/components/examples/GetAllNodes'
118124
responses:
119125
'200':
120126
description: Successful response
@@ -237,4 +243,9 @@ components:
237243
location: "my-container-name"
238244
path: "my-data-folder"
239245
type: "Storage"
240-
graphId: "my-graph-id"
246+
graphId: "my-graph-id"
247+
GetAllNodes:
248+
summary: Get all nodes query
249+
description: Get all nodes query (be careful if you want to query large graph)
250+
value:
251+
query: "MATCH(n) RETURN n"

0 commit comments

Comments
 (0)