File tree Expand file tree Collapse file tree 1 file changed +0
-53
lines changed Expand file tree Collapse file tree 1 file changed +0
-53
lines changed Original file line number Diff line number Diff line change @@ -202,59 +202,6 @@ curl -X POST \
202202```
203203
204204## Cost server - read-only graphql query
205- ``` bash
206- curl -X GET \
207- -H ' Content-Type: application/json' \
208- --data ' {"query": "{ costModel(deployment: \"Qmb5Ysp5oCUXhLA8NmxmYKDAX2nCMnh7Vvb5uffb9n5vss\") { deployment model variables }} "}' \
209- http://localhost:7300/cost
210- ```
211- ``` json
212- {
213- "data" : {
214- "costModel" : {
215- "deployment" : " 0xbd499f7673ca32ef4a642207a8bebdd0fb03888cf2678b298438e3a1ae5206ea" ,
216- "model" : " default => 0.00025;" ,
217- "variables" : null
218- }
219- }
220- }
221- ```
222-
223- ``` bash
224- curl -X GET \
225- -H ' Content-Type: application/json' \
226- --data ' {"query": "{ costModel(deployment: \"Qmb5Ysp5oCUXhLA8NmxmYKDAX2nCMnh7Vvb5uffb9n5vas\") { deployment model variables }} "}' \
227- http://localhost:7300/cost
228- ```
229- ``` json
230- {
231- "data" : {
232- "costModel" : null
233- }
234- }
235- ```
236-
237- ``` bash
238- curl -X GET \
239- -H ' Content-Type: application/json' \
240- --data ' {"query": "{ costModel(deployment: \"Qmb5Ysp5oCUXhLA8NmxmYKDAX2nCMnh7Vvb5uffb9n5vss\") { deployment odel variables }} "}' \
241- http://localhost:7300/cost
242- ```
243- ``` json
244- {
245- "errors" : [
246- {
247- "message" : " Cannot query field \" odel\" on type \" CostModel\" . Did you mean \" model\" ?" ,
248- "locations" : [
249- {
250- "line" : 1 ,
251- "column" : 88
252- }
253- ]
254- }
255- ]
256- }
257- ```
258205
259206``` bash
260207curl -X GET \
You can’t perform that action at this time.
0 commit comments