You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: rest/doc.go
+70-74
Original file line number
Diff line number
Diff line change
@@ -15,7 +15,6 @@ Package rest provides a REST API to access the features of the PromQL language s
15
15
16
16
The returned datastructures are taken from the Language Server Protocol Specification (https://microsoft.github.io/language-server-protocol/specifications/specification-current/)
17
17
18
-
19
18
Supported endpoints:
20
19
21
20
/diagnostics
@@ -25,89 +24,86 @@ Supported endpoints:
25
24
26
25
All endpoints are only available through the HTTP method POST. For each request, you have to provide the following JSON:
27
26
28
-
{
29
-
"expr": "a PromQL expression" # Mandatory for all available endpoints
30
-
"limit": 45 # Optional. It will be used only for the endpoints /diagnostics and /completion. It's the maximum number of results returned.
31
-
"positionLine": 0 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The line (0 based) for which the metadata is queried.
32
-
"positionChar": 2 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The column (0 based) for which the metadata is queried. Characters are counted as UTF-16 code points.
33
-
}
34
-
27
+
{
28
+
"expr": "a PromQL expression" # Mandatory for all available endpoints
29
+
"limit": 45 # Optional. It will be used only for the endpoints /diagnostics and /completion. It's the maximum number of results returned.
30
+
"positionLine": 0 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The line (0 based) for which the metadata is queried.
31
+
"positionChar": 2 # Mandatory for the endpoints /signatureHelp, /hover and /completion. The column (0 based) for which the metadata is queried. Characters are counted as UTF-16 code points.
0 commit comments