Skip to content

Commit 548fa83

Browse files
authored
Properly parse quotes for GraphQl query's session id (#941) [deploy site]
1 parent a5c7b8a commit 548fa83

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

website_and_docs/content/documentation/grid/advanced_features/graphql_support.en.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -107,11 +107,11 @@ The structure of grid schema is as follows:
107107

108108
## Querying GraphQL
109109

110-
The best way to query GraphQL is by using `curl` requests. GraphQL allows you to
111-
fetch only the data that you want, nothing more nothing less.
110+
The best way to query GraphQL is by using `curl` requests. The query is interpreted as JSON. Ensure double quotes are properly escaped to avoid unexpected errors.
111+
GraphQL allows you to fetch only the data that you want, nothing more nothing less.
112112

113113
Some of the example GraphQL queries are given below. You can build your own
114-
queries as you like.
114+
queries as you like.
115115

116116
### Querying the number of `maxSession` and `sessionCount` in the grid :
117117

@@ -154,7 +154,7 @@ curl -X POST -H "Content-Type: application/json" --data '{"query":"{ sessionsInf
154154
### Query to get session information for a given session:
155155

156156
```shell
157-
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: "<session-id>") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
157+
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: \"<session-id>\") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
158158
```
159159

160160
### Querying the capabilities of each node in the grid :

website_and_docs/content/documentation/grid/advanced_features/graphql_support.ja.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -130,13 +130,13 @@ curl -X POST -H "Content-Type: application/json" --data '{"query":"{ grid { uri,
130130
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ grid { sessionCount } }"}' -s <LINK_TO_GRAPHQL_ENDPOINT>
131131
```
132132

133-
### グリッドで最大セッション数を取得するためのクエリ
133+
### グリッドで最大セッション数を取得するためのクエリ
134134

135135
```shell
136136
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ grid { maxSession } }"}' -s <LINK_TO_GRAPHQL_ENDPOINT>
137137
```
138138

139-
### グリッド内のすべてのノードのすべてのセッションの詳細を取得するためのクエリ
139+
### グリッド内のすべてのノードのすべてのセッションの詳細を取得するためのクエリ
140140

141141
```shell
142142
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ sessionsInfo { sessions { id, capabilities, startTime, uri, nodeId, nodeId, sessionDurationMillis } } }"}' -s <LINK_TO_GRAPHQL_ENDPOINT>
@@ -151,7 +151,7 @@ curl -X POST -H "Content-Type: application/json" --data '{"query":"{ sessionsInf
151151
### 特定のセッションのセッション情報を取得するためのクエリ
152152

153153
```shell
154-
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: "<session-id>") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
154+
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: \"<session-id>\") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
155155
```
156156

157157
### グリッド内の各ノードのcapabilityを照会する

website_and_docs/content/documentation/grid/advanced_features/graphql_support.pt-br.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ curl -X POST -H "Content-Type: application/json" --data '{"query":"{ sessionsInf
150150
### Buscando informação da sessão para uma sessão específica:
151151

152152
```shell
153-
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: "<session-id>") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
153+
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: \"<session-id>\") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
154154
```
155155

156156
### Buscando os recursos de cada nó na Grid:

website_and_docs/content/documentation/grid/advanced_features/graphql_support.zh-cn.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ curl -X POST -H "Content-Type: application/json" --data '{"query":"{ sessionsInf
151151
### 查询以获取给定会话的会话信息查询以获取给定会话的会话信息 :
152152

153153
```shell
154-
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: "<session-id>") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
154+
curl -X POST -H "Content-Type: application/json" --data '{"query":"{ session (id: \"<session-id>\") { id, capabilities, startTime, uri, nodeId, nodeUri, sessionDurationMillis, slot { id, stereotype, lastStarted } } } "}' -s <LINK_TO_GRAPHQL_ENDPOINT>
155155
```
156156

157157
### 查询网格中每个节点的功能 :

0 commit comments

Comments
 (0)